From 879cd3da256a837971cedbcd3473d68d2df43a9a Mon Sep 17 00:00:00 2001 From: 15751064254 <15751064254@users.noreply.github.com> Date: Sun, 1 Apr 2018 21:01:57 +0800 Subject: [PATCH] Vim automatically removes indentation on Python comments https://stackoverflow.com/questions/2360249/vim-automatically-removes-indentation-on-python-comments --- vimrcs/basic.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index 11d1ed81..d7a109d8 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -380,3 +380,9 @@ function! VisualSelection(direction, extra_filter) range let @/ = l:pattern let @" = l:saved_reg endfunction + + +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" => Python +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +autocmd BufRead *.py inoremap # X#