Added new custom function for fortigate
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
This commit is contained in:
parent
3577f799b7
commit
d0497495f6
@ -660,8 +660,20 @@ set grepprg=rg\ --vimgrep
|
|||||||
" Custom functions "
|
" Custom functions "
|
||||||
function! RemoveForti()
|
function! RemoveForti()
|
||||||
:%g/set uuid .*/d
|
:%g/set uuid .*/d
|
||||||
:%g/set comments .*/d
|
:%g/set comment .*/d
|
||||||
:%s/edit .*/edit 0/g
|
|
||||||
:%s/ \+//g
|
:%s/ \+//g
|
||||||
|
:%s/edit \(\d\{1,}\)/edit 0/g
|
||||||
:g/^$/d
|
:g/^$/d
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! RemoveFortiAddresses()
|
||||||
|
:e!
|
||||||
|
:%g/set uuid .*/d
|
||||||
|
:%g/set comment .*/d
|
||||||
|
:%s/ \+//g
|
||||||
|
:%s/edit \(\d\{1,}\)/edit 0/g
|
||||||
|
:%s/next\n/set allow-routing enable\rnext\r/g
|
||||||
|
:g/^$/d
|
||||||
|
:%!uniq
|
||||||
|
:w!
|
||||||
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user