Improved auto indenting for regular langs and for Python
This commit is contained in:
parent
23ba938b6d
commit
183ca1cfc5
2 changed files with 5 additions and 3 deletions
|
@ -189,9 +189,8 @@ set tabstop=4
|
||||||
set lbr
|
set lbr
|
||||||
set tw=500
|
set tw=500
|
||||||
|
|
||||||
set cindent
|
set ai "Auto indent
|
||||||
set cinkeys-=0#
|
set si "Smart indent
|
||||||
set indentkeys-=0#
|
|
||||||
set wrap "Wrap lines
|
set wrap "Wrap lines
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,9 @@ au FileType python map <buffer> <leader>1 /class
|
||||||
au FileType python map <buffer> <leader>2 /def
|
au FileType python map <buffer> <leader>2 /def
|
||||||
au FileType python map <buffer> <leader>C ?class
|
au FileType python map <buffer> <leader>C ?class
|
||||||
au FileType python map <buffer> <leader>D ?def
|
au FileType python map <buffer> <leader>D ?def
|
||||||
|
au FileType python set cindent
|
||||||
|
au FileType python set cinkeys-=0#
|
||||||
|
au FileType python set indentkeys-=0#
|
||||||
|
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""
|
||||||
|
|
Loading…
Reference in a new issue