|
|
@ -62,17 +62,7 @@ set t_Co=256 " force more colors |
|
|
|
|
|
|
|
|
|
|
|
"" highlight the current line and column |
|
|
|
"" highlight the current line and column |
|
|
|
set cul |
|
|
|
set cul |
|
|
|
hi CursorLine cterm=NONE ctermbg=234 |
|
|
|
|
|
|
|
set cuc |
|
|
|
set cuc |
|
|
|
hi CursorColumn cterm=NONE ctermbg=234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"" coloring of linenumbers |
|
|
|
|
|
|
|
hi CursorLineNr cterm=bold ctermfg=red |
|
|
|
|
|
|
|
hi LineNr ctermfg=blue |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"" highlight same words, taken from https://github.com/adimit |
|
|
|
|
|
|
|
hi flicker cterm=bold ctermbg=234 |
|
|
|
|
|
|
|
au CursorMoved <buffer> exe 'match flicker /\V\<'.escape(expand('<cword>'), '/').'\>/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"" statusbar |
|
|
|
"" statusbar |
|
|
|
set cmdheight=2 |
|
|
|
set cmdheight=2 |
|
|
@ -82,10 +72,10 @@ set showcmd |
|
|
|
"" linenumbers |
|
|
|
"" linenumbers |
|
|
|
set relativenumber |
|
|
|
set relativenumber |
|
|
|
set ruler |
|
|
|
set ruler |
|
|
|
set nu |
|
|
|
" set number |
|
|
|
set rnu |
|
|
|
" set relativenumber |
|
|
|
autocmd InsertEnter * :setlocal nu | setlocal nornu |
|
|
|
" autocmd InsertEnter * :setlocal norelativenumber |
|
|
|
autocmd InsertLeave * :setlocal rnu |
|
|
|
" autocmd InsertLeave * if flexnu | :setlocal relativenumber |
|
|
|
"" }}} |
|
|
|
"" }}} |
|
|
|
|
|
|
|
|
|
|
|
"#################################################################### |
|
|
|
"#################################################################### |
|
|
@ -121,6 +111,9 @@ map Y y$ |
|
|
|
" remove search hl |
|
|
|
" remove search hl |
|
|
|
nnoremap <silent><C-C> :nohl<CR> |
|
|
|
nnoremap <silent><C-C> :nohl<CR> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" nerdcommenter toggle |
|
|
|
|
|
|
|
nnoremap <silent><leader>c :nohl<CR> |
|
|
|
|
|
|
|
|
|
|
|
" NERDtree |
|
|
|
" NERDtree |
|
|
|
nnoremap <silent><leader>f :NERDTreeToggle<Cr> |
|
|
|
nnoremap <silent><leader>f :NERDTreeToggle<Cr> |
|
|
|
|
|
|
|
|
|
|
@ -131,6 +124,10 @@ nnoremap <silent><leader>t :TlistToggle<Cr> |
|
|
|
let notabs = 1 |
|
|
|
let notabs = 1 |
|
|
|
nnoremap <silent> <F8> :let notabs=!notabs<Bar>:if notabs<Bar>:tabo<Bar>:else<Bar>:tab ball<Bar>:tabn<Bar>:endif<CR> |
|
|
|
nnoremap <silent> <F8> :let notabs=!notabs<Bar>:if notabs<Bar>:tabo<Bar>:else<Bar>:tab ball<Bar>:tabn<Bar>:endif<CR> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" toggle linenumber switching |
|
|
|
|
|
|
|
" let flexnu = 1 |
|
|
|
|
|
|
|
" nnoremap <silent> <F9> :let flexnu=!flexnu<Bar>:if flexnu<Bar>:setlocal rnu<Bar>:else<Bar>:setlocal nornu<Bar>:endif<CR> |
|
|
|
|
|
|
|
|
|
|
|
" switch buffers |
|
|
|
" switch buffers |
|
|
|
nnoremap <silent><Tab> :bn<Cr> |
|
|
|
nnoremap <silent><Tab> :bn<Cr> |
|
|
|
nnoremap <silent><S-Tab> :bp<Cr> |
|
|
|
nnoremap <silent><S-Tab> :bp<Cr> |
|
|
@ -179,7 +176,7 @@ let NERDTreeQuitOnOpen=1 |
|
|
|
let NERDTreeMouseMode=2 |
|
|
|
let NERDTreeMouseMode=2 |
|
|
|
let NERDTreeShowHidden=1 |
|
|
|
let NERDTreeShowHidden=1 |
|
|
|
let NERDTreeKeepTreeInNewTab=1 |
|
|
|
let NERDTreeKeepTreeInNewTab=1 |
|
|
|
Bundle 'scrooloose/nerdcommenter' |
|
|
|
Bundle 'tomtom/tcomment_vim' |
|
|
|
Bundle 'vim-scripts/taglist.vim' |
|
|
|
Bundle 'vim-scripts/taglist.vim' |
|
|
|
let Tlist_Use_Right_Window=1 |
|
|
|
let Tlist_Use_Right_Window=1 |
|
|
|
let Tlist_GainFocus_On_ToggleOpen = 1 |
|
|
|
let Tlist_GainFocus_On_ToggleOpen = 1 |
|
|
|