mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 21:45:10 +01:00
Only use nerdcommenter
This commit is contained in:
27
.vimrc
27
.vimrc
@@ -79,7 +79,7 @@ Plug 'tpope/vim-sensible'
|
|||||||
Plug 'kristijanhusak/vim-hybrid-material'
|
Plug 'kristijanhusak/vim-hybrid-material'
|
||||||
|
|
||||||
" Quick file system tree, mapped to Ctrl+n for quick toggle
|
" Quick file system tree, mapped to Ctrl+n for quick toggle
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'preservim/nerdtree'
|
||||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
let NERDTreeIgnore = ['\.pyc$', 'tags']
|
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.
|
" .pgp or .asc suffix.
|
||||||
Plug 'jamessan/vim-gnupg'
|
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
|
" Typescript syntax file and more
|
||||||
Plug 'leafgarland/typescript-vim'
|
Plug 'leafgarland/typescript-vim'
|
||||||
autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript
|
autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript
|
||||||
@@ -434,7 +430,14 @@ nmap <leader>V :Goyo <bar> :Limelight!! <bar> :TogglePencil <CR>
|
|||||||
|
|
||||||
" The NERD Commenter: A plugin that allows for easy commenting of code for
|
" The NERD Commenter: A plugin that allows for easy commenting of code for
|
||||||
" many filetypes.
|
" 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
|
" Highlight colours in CSS (and html) files
|
||||||
Plug 'ap/vim-css-color'
|
Plug 'ap/vim-css-color'
|
||||||
@@ -452,18 +455,6 @@ Plug 'chr4/nginx.vim'
|
|||||||
Plug 'Glench/Vim-Jinja2-Syntax'
|
Plug 'Glench/Vim-Jinja2-Syntax'
|
||||||
au BufNewFile,BufRead *.j2,*.jinja2 set ft=jinja
|
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)
|
" Automatic generation of tags file (ctags: Exhuberant Ctags)
|
||||||
Plug 'ludovicchabant/vim-gutentags'
|
Plug 'ludovicchabant/vim-gutentags'
|
||||||
" know when Gutentags is generating tags (prints 'TAGS' in status-line)
|
" know when Gutentags is generating tags (prints 'TAGS' in status-line)
|
||||||
|
|||||||
Reference in New Issue
Block a user