remove easyescape, move python settings to fttype file
This commit is contained in:
parent
79fa37b318
commit
1e0c79df40
2 changed files with 7 additions and 19 deletions
7
.vim/ftplugin/python.vim
Normal file
7
.vim/ftplugin/python.vim
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
set tabstop=4
|
||||||
|
set softtabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
set textwidth=79
|
||||||
|
set expandtab
|
||||||
|
set autoindent
|
||||||
|
set fileformat=unix
|
19
.vimrc
19
.vimrc
|
@ -38,9 +38,6 @@ Plugin 'scrooloose/nerdtree'
|
||||||
" git
|
" git
|
||||||
Plugin 'tpope/vim-fugitive'
|
Plugin 'tpope/vim-fugitive'
|
||||||
|
|
||||||
" easy escape
|
|
||||||
Plugin 'zhou13/vim-easyescape'
|
|
||||||
|
|
||||||
" powerline
|
" powerline
|
||||||
Plugin 'vim-airline/vim-airline'
|
Plugin 'vim-airline/vim-airline'
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
|
@ -86,16 +83,6 @@ nnoremap <space> za
|
||||||
" see docstrings for folded code
|
" see docstrings for folded code
|
||||||
let g:SimpylFold_docstring_preview=1
|
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
|
" html css js indents
|
||||||
au BufNewFile,BufRead *.js, *.html, *.css
|
au BufNewFile,BufRead *.js, *.html, *.css
|
||||||
\ set tabstop=2 |
|
\ set tabstop=2 |
|
||||||
|
@ -110,12 +97,6 @@ map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
|
||||||
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
|
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
" easyescape setup
|
|
||||||
let g:easyescape_chars = { "j": 1, "k": 1 }
|
|
||||||
let g:easyescape_timeout = 100
|
|
||||||
cnoremap jk <ESC>
|
|
||||||
cnoremap kj <ESC>
|
|
||||||
|
|
||||||
" airline tabs
|
" airline tabs
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
|
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
|
||||||
|
|
Loading…
Add table
Reference in a new issue