From 000e33c40d1e12537b4219838a536e5d986f6594 Mon Sep 17 00:00:00 2001 From: gryf Date: Tue, 17 May 2016 13:25:05 +0200 Subject: [PATCH 1/2] 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 From 44f9e28ebdc52f48b68b2a5707916ae3a0136493 Mon Sep 17 00:00:00 2001 From: gryf Date: Tue, 17 May 2016 13:28:21 +0200 Subject: [PATCH 2/2] Added rust plugin, added my own fork for pythonhelper --- vimrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 817a62b..76d7525 100644 --- a/vimrc +++ b/vimrc @@ -5,7 +5,6 @@ set nocompatible "VIM over VI call plug#begin('~/.vim/bundle') -Plug 'Finkregh/pythonhelper' Plug 'Rykka/riv.vim' Plug 'SirVer/ultisnips' Plug 'Valloric/MatchTagAlways' @@ -13,6 +12,8 @@ Plug 'davidhalter/jedi-vim' Plug 'ervandew/taglisttoo' Plug 'fs111/pydoc.vim' Plug 'gryf/mark' +Plug 'gryf/pythonhelper' +Plug 'gryf/tagbar', {'branch': 'show_tag_kind2'} Plug 'gryf/zoom.vim' Plug 'hallison/vim-markdown' Plug 'honza/vim-snippets' @@ -21,7 +22,6 @@ Plug 'kazuyukitanimura/jsbeautify' Plug 'kevinw/pyflakes-vim' Plug 'kien/ctrlp.vim' " Plug 'majutsushi/tagbar' -Plug 'gryf/tagbar', {'branch': 'show_tag_kind2'} Plug 'mattn/calendar-vim' Plug 'mduan/python.vim' Plug 'mikeage/occur.vim' @@ -30,6 +30,7 @@ Plug 'myhere/vim-nodejs-complete' Plug 'othree/html5.vim' Plug 'pangloss/vim-javascript' Plug 'pcaro90/jpythonfold.vim' +Plug 'rust-lang/rust.vim' Plug 'scrooloose/nerdcommenter' Plug 'scrooloose/nerdtree' Plug 'scrooloose/syntastic'