vimrc: replace ctrlp with unite
This commit is contained in:
parent
fbb1cf5089
commit
a4b148f854
31
vimrc
31
vimrc
@ -23,10 +23,13 @@ NeoBundle 'Shougo/vimproc.vim' , {
|
||||
\ },
|
||||
\ }
|
||||
|
||||
NeoBundle 'Shougo/unite.vim'
|
||||
NeoBundle 'tsukkee/unite-tag'
|
||||
NeoBundle 'Shougo/neomru.vim'
|
||||
|
||||
NeoBundle 'nanotech/jellybeans.vim'
|
||||
NeoBundle 'majutsushi/tagbar'
|
||||
NeoBundle 'bling/vim-airline'
|
||||
NeoBundle 'kien/ctrlp.vim'
|
||||
NeoBundle 'scrooloose/syntastic'
|
||||
NeoBundle 'tomtom/tcomment_vim'
|
||||
"NeoBundle 'Raimondi/delimitMate'
|
||||
@ -99,3 +102,29 @@ if &term == "screen" || &term == "screen-bce"
|
||||
set t_fs=\
|
||||
endif
|
||||
set title
|
||||
|
||||
" unite bindings
|
||||
if executable('ag')
|
||||
let g:unite_source_grep_command = 'ag'
|
||||
let g:unite_source_grep_default_opts = '--noheading --nocolor'
|
||||
endif
|
||||
" The prefix key
|
||||
nnoremap [unite] <Nop>
|
||||
nmap <space> [unite]
|
||||
" General purpose
|
||||
nnoremap [unite]<space> :Unite -start-insert source<cr>
|
||||
" Files
|
||||
nnoremap [unite]f :Unite -start-insert file_rec/async<cr>
|
||||
" Grepping
|
||||
nnoremap [unite]g :Unite grep:.<cr>
|
||||
nnoremap [unite]d :Unite grep:.:-s:\(TODO\|FIXME\)<cr>
|
||||
" Content
|
||||
nnoremap [unite]o :Unite -start-insert -auto-preview outline<cr>
|
||||
nnoremap [unite]l :Unite -start-insert line<cr>
|
||||
nnoremap [unite]t :Unite -auto-preview -start-insert tag<cr>
|
||||
" Quickly switch between recent things
|
||||
nnoremap [unite]F :Unite buffer tab file_mru directory_mru<cr>
|
||||
nnoremap [unite]b :Unite buffer<cr>
|
||||
nnoremap [unite]m :Unite file_mru<cr>
|
||||
" Yank history
|
||||
nnoremap [unite]y :Unite history/yank<cr>
|
||||
|
Loading…
Reference in New Issue
Block a user