Vim automatically removes indentation on Python comments
https://stackoverflow.com/questions/2360249/vim-automatically-removes-indentation-on-python-comments
This commit is contained in:
parent
92c9100a45
commit
879cd3da25
|
@ -380,3 +380,9 @@ function! VisualSelection(direction, extra_filter) range
|
||||||
let @/ = l:pattern
|
let @/ = l:pattern
|
||||||
let @" = l:saved_reg
|
let @" = l:saved_reg
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => Python
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
autocmd BufRead *.py inoremap # X<c-h>#<space>
|
||||||
|
|
Loading…
Reference in a new issue