vim: ctrlp: suche in zeilen und im undo buffer aktiviert + ctrl+l

This commit is contained in:
Michael Grote 2021-11-11 09:38:56 +01:00
parent d15f7619b5
commit d17a3eabe7

6
.vimrc
View file

@ -77,8 +77,10 @@ if executable('rg')
else
let g:ctrlp_user_command = 'find %s -type f'
endif
" let g:ctrlp_map = '<c-f>' "aufruf mit strg+f
" strg+f sucht fuzzy nach dateien
nmap <C-f> :CtrlP<CR>
" strg+l sucht fuzzy in zeilen des aktuellen buffers
nmap <C-l> :CtrlPLine<CR>
" ignore files
" https://github.com/ctrlpvim/ctrlp.vim
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
@ -86,7 +88,7 @@ set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
" stelle standard keybinding um
let g:ctrlp_map = ''
let g:ctrlp_extensions = ['line', 'undo']
" ### Keybindings
" deaktiviere Ex-Mode keybinding
:nnoremap Q <Nop>