From c9e356a5845975c92922e2b7db217f2c5d9b2943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 26 Jun 2023 22:06:05 +0200 Subject: [PATCH] Added custom function --- .config/nvim/init.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 037375d..44d7bb4 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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(), 1, 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('')), 1, 0) set grepprg=rg\ --vimgrep + +" Custom functions " +function! RemoveForti() + :%g/set uuid .*/d + :%g/set comments .*/d + :%s/edit .*/edit 0/g + :%s/ \+//g +endfunction