vimrc: add ctrlP settings
This commit is contained in:
parent
07760ea060
commit
2185271ce9
28
.vim/vimrc
28
.vim/vimrc
@ -312,6 +312,34 @@ let g:terraform_align=1
|
||||
let g:terraform_fold_sections=1
|
||||
let g:terraform_fmt_on_save=1
|
||||
|
||||
|
||||
" ctrlp
|
||||
" Setup some default ignores
|
||||
let g:ctrlp_custom_ignore = {
|
||||
\ 'dir':'\v[\/](\.(git\/(branches|hooks|info|logs|modules|objects|rebase-merge|refs)|hg|svn)|\_site)$',
|
||||
\ 'file':'\v\.(exe|so|dll|class|png|jpg|jpeg)|(\.(git\/(description|index|packed-refs|COMMIT_EDITMSG|HEAD|FETCH_HEAD|ORIG_HEAD|REBASE_HEAD)))$',
|
||||
\}
|
||||
|
||||
" Use the nearest .git directory as the cwd
|
||||
" This makes a lot of sense if you are working on a project that is in version
|
||||
" control. It also supports works with .svn, .hg, .bzr.
|
||||
" let g:ctrlp_working_path_mode = 'r'
|
||||
let g:ctrlp_working_path_mode = 'raw'
|
||||
|
||||
nnoremap '<c-p>' :<CtrlP><cr>
|
||||
|
||||
let g:ctrlp_map = '<c-p>'
|
||||
let g:ctrlp_show_hidden = 1
|
||||
" Use a leader instead of the actual named binding
|
||||
nmap <leader>p :CtrlP<cr>
|
||||
|
||||
" ctrlp buffers
|
||||
" Easy bindings for its various modes
|
||||
nmap <leader>bb :CtrlPBuffer<cr>
|
||||
nmap <leader>bm :CtrlPMixed<cr>
|
||||
nmap <leader>bs :CtrlPMRU<cr>
|
||||
|
||||
|
||||
" change cursor shape for different editing modes, neovim does this by default
|
||||
if !has('nvim')
|
||||
if exists('$TMUX')
|
||||
|
Loading…
Reference in New Issue
Block a user