Added custom function
This commit is contained in:
parent
c1afe43ec1
commit
c9e356a584
@ -655,3 +655,11 @@ let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/
|
|||||||
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
||||||
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
|
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
|
||||||
set grepprg=rg\ --vimgrep
|
set grepprg=rg\ --vimgrep
|
||||||
|
|
||||||
|
" Custom functions "
|
||||||
|
function! RemoveForti()
|
||||||
|
:%g/set uuid .*/d
|
||||||
|
:%g/set comments .*/d
|
||||||
|
:%s/edit .*/edit 0/g
|
||||||
|
:%s/ \+//g
|
||||||
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user