diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim new file mode 100644 index 0000000..431871b --- /dev/null +++ b/.vim/ftplugin/python.vim @@ -0,0 +1,7 @@ +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set textwidth=79 +set expandtab +set autoindent +set fileformat=unix diff --git a/.vimrc b/.vimrc index 03b6f66..1062a9f 100644 --- a/.vimrc +++ b/.vimrc @@ -38,9 +38,6 @@ Plugin 'scrooloose/nerdtree' " git Plugin 'tpope/vim-fugitive' -" easy escape -Plugin 'zhou13/vim-easyescape' - " powerline Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' @@ -86,16 +83,6 @@ nnoremap za " see docstrings for folded code let g:SimpylFold_docstring_preview=1 -" pep 8 indents -au BufNewFile,BufRead *.py - \ set tabstop=4 | - \ set softtabstop=4 | - \ set shiftwidth=4 | - \ set textwidth=79 | - \ set expandtab | - \ set autoindent | - \ set fileformat=unix - " html css js indents au BufNewFile,BufRead *.js, *.html, *.css \ set tabstop=2 | @@ -110,12 +97,6 @@ map g :YcmCompleter GoToDefinitionElseDeclaration let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree map :NERDTreeToggle -" easyescape setup -let g:easyescape_chars = { "j": 1, "k": 1 } -let g:easyescape_timeout = 100 -cnoremap jk -cnoremap kj - " airline tabs let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#formatter = 'unique_tail_improved'