1
0
Fork 0
mirror of synced 2024-06-01 15:01:10 -04:00

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

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>