mirror of
1
0
Fork 0

Vim automatically removes indentation on Python comments

https://stackoverflow.com/questions/2360249/vim-automatically-removes-indentation-on-python-comments
This commit is contained in:
15751064254 2018-04-01 21:01:57 +08:00 committed by GitHub
parent 92c9100a45
commit 879cd3da25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -380,3 +380,9 @@ function! VisualSelection(direction, extra_filter) range
let @/ = l:pattern
let @" = l:saved_reg
endfunction
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Python
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
autocmd BufRead *.py inoremap # X<c-h>#<space>