diff options
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,10 +1,11 @@ syntax on -colo industry +colo simple-dark set number set mouse-=a set backspace=indent,eol,start set wildmode=longest:full,full filetype plugin indent on +set background=dark set tabstop=4 set shiftwidth=4 set expandtab @@ -12,8 +13,10 @@ set autoindent set breakindent set formatoptions=t1 set lbr + "set viminfo='100,<1000,s100,h set viminfo='20,<100000 +xnoremap p pgvy " highlight stray spaces and tabs when out of insert mode highlight ExtraWhitespace ctermbg=red guibg=red @@ -22,7 +25,7 @@ autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ autocmd InsertLeave * match ExtraWhitespace /\s\+$/ autocmd BufWinLeave * call clearmatches() -autocmd FileType go setlocal noet ts=4 sw=4 +autocmd FileType go setlocal noet ts=4 sw=4 tw=80 autocmd FileType markdown setlocal tw=80 et ts=2 sw=2 autocmd FileType python setlocal et ts=4 sw=4 autocmd FileType text setlocal tw=80 @@ -30,3 +33,7 @@ autocmd FileType html setlocal et ts=2 sw=2 autocmd FileType c setlocal noet ts=8 sw=8 tw=80 autocmd FileType h setlocal noet ts=8 sw=8 tw=80 autocmd FileType cpp setlocal noet ts=8 sw=8 tw=80 + +"tags +map <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR> +map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR> |