vimrc: add ctrlP settings

This commit is contained in:
surtur 2022-07-14 15:37:41 +02:00
parent 07760ea060
commit 2185271ce9
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -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')