Last active
December 23, 2018 12:25
-
-
Save finomayato/fcd8799bbce6b89ff4e65ff552f6a551 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| filetype off | |
| set rtp+=~/.config/nvim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'vim-airline/vim-airline' | |
| Plugin 'vim-airline/vim-airline-themes' | |
| Plugin 'klen/python-mode' | |
| Plugin 'scrooloose/nerdtree' | |
| Plugin 'kien/ctrlp.vim' | |
| Plugin 'airblade/vim-gitgutter' | |
| Plugin 'tpope/vim-fugitive' | |
| " Plugin 'davidhalter/jedi-vim' | |
| Plugin 'szw/vim-tags' | |
| Plugin 'majutsushi/tagbar' | |
| Plugin 'mattn/emmet-vim' | |
| Plugin 'nvie/vim-flake8' | |
| Plugin 'tell-k/vim-autopep8' | |
| Plugin 'hynek/vim-python-pep8-indent' | |
| Plugin 'wting/rust.vim' | |
| Plugin 'valloric/YouCompleteMe' | |
| Plugin 'jmcantrell/vim-virtualenv' | |
| Plugin 'heavenshell/vim-pydocstring' | |
| Plugin 'hashivim/vim-terraform' | |
| " Plugin 'jiangxincode/vim-kite' | |
| call vundle#end() | |
| filetype plugin indent on | |
| let mapleader="," | |
| set laststatus=2 | |
| set t_Co=256 | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set expandtab | |
| set number | |
| set cc=80 | |
| set splitbelow | |
| set splitright | |
| set clipboard=unnamed | |
| set wildignore+=*.pyc | |
| set encoding=utf-8 | |
| set backupdir=~/.vim/backup// | |
| set directory=~/.vim/swap// | |
| set undodir=~/.vim/undo// | |
| set guioptions-=T | |
| " colorscheme molokai | |
| syntax enable | |
| set background=dark | |
| " colorscheme solarized | |
| " colorscheme desert | |
| " let g:pymode_rope = 0 | |
| let g:pymode_lint = 0 | |
| " let g:pymode_lint_checker = "pyflakes,pep8" | |
| " let g:pymode_lint_cwindow = 0 | |
| " let g:pymode_virtualenv = 1 | |
| " let g:pymode_syntax = 1 | |
| " let g:pymode_syntax_all = 1 | |
| " let g:pymode_syntax_indent_errors = g:pymode_syntax_all | |
| " let g:pymode_syntax_space_errors = g:pymode_syntax_all | |
| " let g:pymode_folding = 0 | |
| let g:airline_theme='badwolf' | |
| let g:ctrlp_custom_ignore = {'dir': '\.git$\|node_modules$\|dist$'} | |
| let g:jedi#popup_on_dot = 0 | |
| let g:jedi#show_call_signatures = 0 | |
| " let g:jedi#use_tabs_not_buffers = 0 | |
| let NERDTreeIgnore=['__pycache__'] | |
| let g:tagbar_autofocus = 1 | |
| " let g:pep8_ignore="E501" | |
| " let g:autopep8_ignore="E501" | |
| " let g:autopep8_disable_show_diff=1 | |
| let g:flake8_show_in_gutter=1 | |
| autocmd BufWritePost *.py call Flake8() | |
| let g:solarized_termcolors=256 | |
| let g:tagbar_autoclose = 1 | |
| let g:tagbar_sort = 0 | |
| let g:gitgutter_max_signs = 1000 | |
| " Neovim can find python hosts automatically | |
| " let g:python_host_prog = $HOME.'/.virtualenvs/neovim2/bin/python' | |
| " let g:python3_host_prog = $HOME.'/.virtualenvs/neovim3/bin/python' | |
| let g:ycm_python_binary_path = '/usr/local/bin/python3' | |
| " let g:ycm_python_binary_path = '/usr/local/bin/python' | |
| let g:pymode_options_max_line_length = 120 | |
| let g:pymode_lint_options_pep8 = {'max_line_length': g:pymode_options_max_line_length} | |
| let g:pymode_options_colorcolumn = 1 | |
| map <C-n> :NERDTreeToggle<CR> | |
| " map <C-S-F8> :PymodeLintAuto<CR> | |
| map <leader>d :YcmCompleter GoTo<CR> | |
| map <leader>sf yw:vimgrep "<C-R>"" **/*.py | |
| noremap <Leader>gs :Gstatus<CR> | |
| noremap <Leader>gb :Gblame<CR> | |
| noremap <Leader>gd :Gdiff<CR> | |
| noremap <Leader>y 'aV'b"+y | |
| " nnoremap <C-J> <C-W><C-J> | |
| " nnoremap <C-K> <C-W><C-K> | |
| " nnoremap <C-L> <C-W><C-L> | |
| " nnoremap <C-H> <C-W><C-H> | |
| " set wmw=0 | |
| map <C-J> <C-W>j | |
| " <C-W>_ | |
| map <C-K> <C-W>k | |
| " <C-W>_ | |
| nmap <c-h> <c-w>h | |
| " <c-w>_ | |
| nmap <c-l> <c-w>l | |
| " <c-w>_ | |
| nmap <silent> <leader>l <Plug>(pydocstring) | |
| nnoremap <Leader>c ^i# <ESC> | |
| nnoremap <Leader>C ^i<Del><Del><ESC><Right> | |
| nnoremap <leader>b oimport ipdb; ipdb.set_trace()<ESC> | |
| nnoremap <F4> :set hlsearch! hlsearch?<CR> | |
| " nnoremap <leader>hl :set hlsearch<CR> | |
| " nnoremap <leader>nh :set nohlsearch<CR> | |
| nnoremap <leader>f :vimgrep "" **/*.py<left><left><left><left><left><left><left><left><left> | |
| nnoremap <F3> :TagbarToggle<CR> | |
| nnoremap <leader>cw :cwindow<CR> | |
| vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left> | |
| vnoremap <leader>c I# <ESC><ESC> | |
| vnoremap <leader>C lx | |
| "python with virtualenv support | |
| py << EOF | |
| import os | |
| import sys | |
| if 'VIRTUAL_ENV' in os.environ: | |
| project_base_dir = os.environ['VIRTUAL_ENV'] | |
| activate_this = os.path.join(project_base_dir, 'bin/activate_this.py') | |
| execfile(activate_this, dict(__file__=activate_this)) | |
| EOF | |
| syntax on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment