mirror of
https://github.com/amix/vimrc
synced 2025-06-17 02:15:01 +08:00
Improved auto indenting for regular langs and for Python
This commit is contained in:
@ -189,9 +189,8 @@ set tabstop=4
|
||||
set lbr
|
||||
set tw=500
|
||||
|
||||
set cindent
|
||||
set cinkeys-=0#
|
||||
set indentkeys-=0#
|
||||
set ai "Auto indent
|
||||
set si "Smart indent
|
||||
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>C ?class
|
||||
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#
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""
|
||||
|
Reference in New Issue
Block a user