diff --git a/.vimrc b/.vimrc index 0101d9f..4436af2 100644 --- a/.vimrc +++ b/.vimrc @@ -79,7 +79,7 @@ Plug 'tpope/vim-sensible' Plug 'kristijanhusak/vim-hybrid-material' " Quick file system tree, mapped to Ctrl+n for quick toggle -Plug 'scrooloose/nerdtree' +Plug 'preservim/nerdtree' Plug 'Xuyuanp/nerdtree-git-plugin' map :NERDTreeToggle let NERDTreeIgnore = ['\.pyc$', 'tags'] @@ -209,10 +209,6 @@ let g:undotree_SetFocusWhenToggle=1 " if undotree is opened, it is likely one " .pgp or .asc suffix. Plug 'jamessan/vim-gnupg' -" tcomment provides easy to use, file-type sensible comments for Vim. It -" can handle embedded syntax. -Plug 'tomtom/tcomment_vim' - " Typescript syntax file and more Plug 'leafgarland/typescript-vim' autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript @@ -434,7 +430,14 @@ nmap V :Goyo :Limelight!! :TogglePencil " The NERD Commenter: A plugin that allows for easy commenting of code for " many filetypes. -Plug 'scrooloose/nerdcommenter' +Plug 'preservim/nerdcommenter' +" Align line-wise comment delimiters flush left instead of following code +" indentation +let g:NERDDefaultAlign = 'left' +" Allow commenting and inverting empty lines (useful when commenting a region) +let g:NERDCommentEmptyLines = 1 +" Enable trimming of trailing whitespace when uncommenting +let g:NERDTrimTrailingWhitespace = 1 " Highlight colours in CSS (and html) files Plug 'ap/vim-css-color' @@ -452,18 +455,6 @@ Plug 'chr4/nginx.vim' Plug 'Glench/Vim-Jinja2-Syntax' au BufNewFile,BufRead *.j2,*.jinja2 set ft=jinja -" Highlight special comments better -"Plug 'jbgutierrez/vim-better-comments' - -" CSV filetype plugin -"Plug 'chrisbra/csv.vim' " apparently doesn't work this way ;) - -" Automatic generation of tags file (ctags), in a central place (~/.vimtags) -"Plug 'xolox/vim-misc' -"Plug 'xolox/vim-easytags' -" easytags highlighting is slow -"let g:easytags_auto_highlight = 0 - " Automatic generation of tags file (ctags: Exhuberant Ctags) Plug 'ludovicchabant/vim-gutentags' " know when Gutentags is generating tags (prints 'TAGS' in status-line)