Mercurial > dotfiles.old
comparison vimrc @ 200:a91590ba2b32
Replace tcomment with commentary
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 19 Nov 2014 08:29:00 +0100 |
parents | 1665f80ff713 |
children | 6de3103d47f4 |
comparison
equal
deleted
inserted
replaced
199:b4999d36b3d2 | 200:a91590ba2b32 |
---|---|
3 let g:plug_window='topleft new' | 3 let g:plug_window='topleft new' |
4 call plug#begin('~/.vim/plugged') | 4 call plug#begin('~/.vim/plugged') |
5 " General Plugins | 5 " General Plugins |
6 Plug 'tpope/vim-sensible' | 6 Plug 'tpope/vim-sensible' |
7 Plug 'tpope/vim-abolish' | 7 Plug 'tpope/vim-abolish' |
8 Plug 'tomtom/tcomment_vim' | |
9 Plug 'tpope/vim-fugitive' | 8 Plug 'tpope/vim-fugitive' |
10 Plug 'godlygeek/tabular' | 9 Plug 'godlygeek/tabular' |
11 Plug 'tpope/vim-endwise' | 10 Plug 'tpope/vim-endwise' |
12 Plug 'tpope/vim-surround' | 11 Plug 'tpope/vim-surround' |
13 Plug 'jiangmiao/auto-pairs' | 12 Plug 'jiangmiao/auto-pairs' |
15 Plug 'tpope/vim-repeat' | 14 Plug 'tpope/vim-repeat' |
16 Plug 't9md/vim-smalls' | 15 Plug 't9md/vim-smalls' |
17 Plug 'xolox/vim-session' | 16 Plug 'xolox/vim-session' |
18 Plug 'tpope/vim-eunuch' | 17 Plug 'tpope/vim-eunuch' |
19 Plug 'scrooloose/syntastic' | 18 Plug 'scrooloose/syntastic' |
19 Plug 'tpope/vim-commentary' | |
20 " Undo | 20 " Undo |
21 Plug 'sjl/gundo.vim', { 'on': 'GundoToggle' } | 21 Plug 'sjl/gundo.vim', { 'on': 'GundoToggle' } |
22 | 22 |
23 " Tmux | 23 " Tmux |
24 Plug 'benmills/vimux', { 'on': 'VimuxRunCommand' } | 24 Plug 'benmills/vimux', { 'on': 'VimuxRunCommand' } |
63 | 63 |
64 call plug#end() | 64 call plug#end() |
65 " }}} | 65 " }}} |
66 " General Settings {{{ | 66 " General Settings {{{ |
67 set nocompatible | 67 set nocompatible |
68 set laststatus=2 | |
69 | 68 |
70 set backspace=2 | 69 set backspace=2 |
71 set autowrite | 70 set autowrite |
72 | 71 |
73 set vb | 72 set vb |
165 " set listchars=tab:▸\ ,eol:¬ | 164 " set listchars=tab:▸\ ,eol:¬ |
166 " }}} | 165 " }}} |
167 " Status line {{{ | 166 " Status line {{{ |
168 function! Status() | 167 function! Status() |
169 let statusline = '' | 168 let statusline = '' |
170 let statusline .= "»\ " | 169 let statusline .= "%n\ " |
171 let statusline .= "%f" | 170 let statusline .= "%f" |
172 let statusline .= "%1*%m%0*" | 171 let statusline .= "%1*%m%0*" |
173 let statusline .= "\ [%{strlen(&ft)?&ft:'unknown'}]" | 172 let statusline .= "\ [%{strlen(&ft)?&ft:'unknown'}]" |
174 let statusline .= "%=" | 173 let statusline .= "%=" |
175 let statusline .= "%P\ " | 174 let statusline .= "%P\ " |
176 return statusline | 175 return statusline |
177 endfunction | 176 endfunction |
178 | 177 set laststatus=2 |
179 set statusline=%!Status() | 178 set statusline=%!Status() |
180 " }}} | 179 " }}} |
181 " Custom remaps and tricks {{{ | 180 " Custom remaps and tricks {{{ |
182 " Enable spelling only for latex and text | 181 " Enable spelling only for latex and text |
183 au BufNewFile,BufRead,BufEnter *.tex setlocal spell spelllang=en_gb | 182 au BufNewFile,BufRead,BufEnter *.tex setlocal spell spelllang=en_gb |
420 " map <leader>k :call RunCurrentFeature()<CR> | 419 " map <leader>k :call RunCurrentFeature()<CR> |
421 " }}} | 420 " }}} |
422 " Markdown {{{ | 421 " Markdown {{{ |
423 let g:vim_markdown_folding_disabled=1 | 422 let g:vim_markdown_folding_disabled=1 |
424 " }}} | 423 " }}} |
425 " tComment {{{ | |
426 nmap <leader>c <C-_><C-_> | |
427 " }}} | |
428 " Neo Complete {{{ | 424 " Neo Complete {{{ |
429 let g:neocomplete#enable_at_startup = 1 | 425 let g:neocomplete#enable_at_startup = 1 |
430 let g:neocomplet#enable_smart_case = 1 | 426 let g:neocomplet#enable_smart_case = 1 |
431 let g:marching_enable_neocomplete = 1 | 427 let g:marching_enable_neocomplete = 1 |
432 let g:neocomplete#enable_fuzzy_completion = 1 | 428 let g:neocomplete#enable_fuzzy_completion = 1 |