MiniBufExplorer
git-svn-id: http://photonzero.com/dotfiles/trunk@28 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
parent
fc5eee4948
commit
a277233f26
2 changed files with 1870 additions and 6 deletions
1838
.vim/plugin/minibufexpl.vim
Normal file
1838
.vim/plugin/minibufexpl.vim
Normal file
File diff suppressed because it is too large
Load diff
38
.vimrc
38
.vimrc
|
|
@ -34,16 +34,29 @@ autocmd FileType python set omnifunc=pythoncomplete#Complete
|
|||
let python_highlight_all = 1
|
||||
au Filetype html,xml,xsl source ~/.vim/closetag.vim
|
||||
|
||||
|
||||
"MiniBufExplore Options
|
||||
let g:miniBufExplMapWindowNavVim = 1
|
||||
let g:miniBufExplMapWindowNavArrows = 1
|
||||
let g:miniBufExplMapCTabSwitchBufs = 1
|
||||
let g:miniBufExplModSelTarget = 1
|
||||
let g:miniBufExplForceSyntaxEnable = 1
|
||||
|
||||
|
||||
set t_Co=16
|
||||
set t_Sf=ESC[3%dm
|
||||
set t_Sb=ESC[4%dm
|
||||
"set t_kb=
|
||||
|
||||
"Remappings
|
||||
nnoremap gc :tabnew<CR>
|
||||
nnoremap gK :tabclose<CR>
|
||||
nnoremap gn gt
|
||||
nnoremap gp gT
|
||||
"Open in tabs...
|
||||
"nnoremap gc :tabnew<CR>
|
||||
"nnoremap gK :tabclose<CR>
|
||||
"nnoremap gn gt
|
||||
"nnoremap gp gT
|
||||
nnoremap gK :bdelete<CR>
|
||||
nnoremap gn :bn<CR>
|
||||
nnoremap gp :bp<CR>
|
||||
nnoremap gz :pclose<CR>
|
||||
nmap P o<Esc>p
|
||||
nnoremap j gj
|
||||
|
|
@ -56,7 +69,7 @@ vnoremap <Down> gj
|
|||
vnoremap <Up> gk
|
||||
inoremap <Down> <C-o>gj
|
||||
inoremap <Up> <C-o>gk
|
||||
nnoremap <C-i> <C-a>
|
||||
"nnoremap <C-i> <C-a>
|
||||
nnoremap <C-a> ^
|
||||
nnoremap <C-e> $
|
||||
vnoremap <C-a> ^
|
||||
|
|
@ -85,8 +98,19 @@ endif
|
|||
|
||||
command SaveSession :mksession! ~/.vim_last_session
|
||||
command LoadSession :source ~/.vim_last_session
|
||||
command ScratchOpen :e scp://barak@barakmich.com//home/barak/notes/scratch
|
||||
|
||||
function! s:DiffWithSaved()
|
||||
let filetype=&ft
|
||||
diffthis
|
||||
vnew | r # | normal! 1Gdd
|
||||
diffthis
|
||||
exe "setlocal bt=nofile bh=wipe nobl noswf ro ft=" . filetype
|
||||
endfunction
|
||||
com! DiffSaved call s:DiffWithSaved()
|
||||
|
||||
"cd ~/work/gd/trunk
|
||||
|
||||
source ~/.vim/opt/*.vim
|
||||
"if has("cscope")
|
||||
" set csto=0
|
||||
" set cst
|
||||
|
|
@ -104,3 +128,5 @@ source ~/.vim/opt/*.vim
|
|||
"endif
|
||||
|
||||
"inoremap ;a <esc>
|
||||
|
||||
"cd /mw/barak/gd-es-bug
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue