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