From 000e33c40d1e12537b4219838a536e5d986f6594 Mon Sep 17 00:00:00 2001 From: gryf Date: Tue, 17 May 2016 13:25:05 +0200 Subject: [PATCH] Fix annoying 2 spaces after comment sign --- ftplugin/python/common.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ftplugin/python/common.vim b/ftplugin/python/common.vim index 2b786c9..a156a09 100644 --- a/ftplugin/python/common.vim +++ b/ftplugin/python/common.vim @@ -33,6 +33,11 @@ let g:pyflakes_use_quickfix = 0 autocmd BufWinLeave *.py mkview autocmd BufWinEnter *.py silent loadview +"Something bad happens for python comments - it places 2 spaces instead of 1 +"after the # sign. Workaround: +let g:NERDCustomDelimiters = {'python': {'left': '#'}} +let g:NERDSpaceDelims = 0 + finish "end here. all below is just for the record. " Pylint function, which can be optionally mapped to some keys. Currently