This commit is contained in:
Vasili Svirydau
2022-04-28 17:05:59 +00:00
parent 4a9f7be2ef
commit 8c68a09b15
14 changed files with 59 additions and 15 deletions

View File

@@ -0,0 +1 @@
set commentstring=//%s

4
after/plugin/fzf.vim Normal file
View File

@@ -0,0 +1,4 @@
" fzf file fuzzy search that respects .gitignore
" If in git directory, show only files that are committed, staged, or unstaged
" else use regular :Files
nnoremap <expr> <C-p> (len(system('git rev-parse')) ? ':Files' : ':GFiles --exclude-standard --others --cached')."\<cr>"

9
after/plugin/grep.vim Normal file
View File

@@ -0,0 +1,9 @@
" Remap ctrl+p to fzf
if exists('g:loaded_fzf')
" nmap <C-P> :FZF<CR>
" fzf file fuzzy search that respects .gitignore
" If in git directory, show only files that are committed, staged, or unstaged
" else use regular :Files
nnoremap <expr> <C-p> (len(system('git rev-parse')) ? ':Files' : ':GFiles --exclude-standard --others --cached')."\<cr>"
endif