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