diff --git a/.vimrc b/.vimrc index 5b35be7..008ea77 100644 --- a/.vimrc +++ b/.vimrc @@ -199,27 +199,27 @@ set statusline+=%2*0x%-8B\ " current char set statusline+=%-14.(%l,%c%V%)\ %<%P " offset " special statusbar for special windows -if has("autocmd") - au FileType qf - \ if &buftype == "quickfix" | - \ setlocal statusline=%2*%-3.3n%0* | - \ setlocal statusline+=\ \[Compiler\ Messages\] | - \ setlocal statusline+=%=%2*\ %<%P | - \ endif - - fun! FixMiniBufExplorerTitle() - if "-MiniBufExplorer-" == bufname("%") - setlocal statusline=%2*%-3.3n%0* - setlocal statusline+=\[Buffers\] - setlocal statusline+=%=%2*\ %<%P - endif - endfun - - au BufWinEnter * - \ let oldwinnr=winnr() | - \ windo call FixMiniBufExplorerTitle() | - \ exec oldwinnr . " wincmd w" -endif +"if has("autocmd") +" au FileType qf +" \ if &buftype == "quickfix" | +" \ setlocal statusline=%2*%-3.3n%0* | +" \ setlocal statusline+=\ \[Compiler\ Messages\] | +" \ setlocal statusline+=%=%2*\ %<%P | +" \ endif +" +" fun! FixMiniBufExplorerTitle() +" if "-MiniBufExplorer-" == bufname("%") +" setlocal statusline=%2*%-3.3n%0* +" setlocal statusline+=\[Buffers\] +" setlocal statusline+=%=%2*\ %<%P +" endif +" endfun +" +" au BufWinEnter * +" \ let oldwinnr=winnr() | +" \ windo call FixMiniBufExplorerTitle() | +" \ exec oldwinnr . " wincmd w" +"endif " Nice window title if has('title') && (has('gui_running') || &title) @@ -259,7 +259,7 @@ if has("file_in_path") endif " Better include path -set path+=src/ +set path+=src/,include/ let &inc.=' ["<]' " Show tabs and trailing whitespace visually @@ -294,10 +294,10 @@ set dictionary=/usr/share/dict/words "----------------------------------------------------------------------- " miniBufExpl "----------------------------------------------------------------------- -let g:miniBufExplMapWindowNavVim = 1 -let g:miniBufExplMapWindowNavArrows = 1 -let g:miniBufExplMapCTabSwitchBufs = 1 -let g:miniBufExplModSelTarget = 1 +"let g:miniBufExplMapWindowNavVim = 1 +"let g:miniBufExplMapWindowNavArrows = 1 +"let g:miniBufExplMapCTabSwitchBufs = 1 +"let g:miniBufExplModSelTarget = 1 "----------------------------------------------------------------------- @@ -534,8 +534,16 @@ nmap :bprev nmap :bnext nmap , :bprev nmap . :bnext -nmap gT :bprev -nmap gt :bnext + +" Movement between windows +nmap h +nmap j +nmap k +nmap l + +" Move through buffers instead of tabs +"nmap gT :bprev +"nmap gt :bnext " v_K is really really annoying vmap K k @@ -577,9 +585,6 @@ noremap noremap noremap -" Scroll only one line with ^U an ^D -set scroll=1 - " Useful things from inside imode inoremap w :w inoremap q gq}k$ @@ -611,8 +616,8 @@ noremap J :s/\%#\(.*\)\n\(.*\)/\2\1 inoremap jj inoremap jl -" Kill line -noremap "_dd +" Kill line like emacs +"noremap "_dd " Select everything noremap gg ggVG @@ -627,7 +632,7 @@ noremap gp gqap noremap clr :s/^.*$//:nohls " Delete blank lines -noremap dbl :g/^$/d:nohls +"noremap dbl :g/^$/d:nohls " Enclose each selected line with markers noremap enc :execute @@ -924,9 +929,9 @@ if has("eval") "nnoremap :Tlist " Settings minibufexpl.vim - let g:miniBufExplModSelTarget = 1 - let g:miniBufExplWinFixHeight = 1 - let g:miniBufExplWinMaxSize = 1 + "let g:miniBufExplModSelTarget = 1 + "let g:miniBufExplWinFixHeight = 1 + "let g:miniBufExplWinMaxSize = 1 " let g:miniBufExplForceSyntaxEnable = 1 " Settings for showmarks.vim @@ -1002,7 +1007,7 @@ au Filetype html,xml,xsl,sgml ",docbook " explorador vertical let g:explVertical=1 " define leader como = -let mapleader = "=" +"let mapleader = "=" " Terminal companability map @@ -1040,7 +1045,7 @@ map :set encoding=iso8859-15 | :set fenc=iso8859-15 "map :let spell_language_list = "english,spanish" "nnoremap :Tlist "nnoremap :TlistSync -nnoremap :noh +nnoremap :noh map !!date map :TC nmap :X :x @@ -1049,7 +1054,9 @@ nmap :Q :q nmap :B :b noremap rg :color relaxedgreen noremap ip :color inkpot +noremap ir :color ir_black map t :FufFile +map d :FufDir noremap :syntax sync fromstart inoremap :syntax sync fromstart syntax sync minlines=200 @@ -1061,14 +1068,6 @@ nmap :NERDTreeToggle "set makeprg=javac\ % "set errorformat=%A%f:%l:\ %m,%-Z%p^,%-C%.%# -" CVS -nmap cadd CVSAdd -nmap cci CVSCommit -nmap clog CVSLog -map cre CVSRevert -nmap cup CVSUpdate -nmap cdiff CVSDiff - " Spell "let spell_executable = "aspell" "let spell_language_list = "spanish,english"