How do you save a file in a vim script? I have a script that modify a file and
I want to save it. After that send it to an external command. The last two
lines are the important ones. Any help would be greatly appreciate it.
exe normal! :%j\r
while search(div class=\vpc_bcc_cell\,Wc) != 0
exe normal! :%j\r
Hello Michael.
vim script can be thought of as a series of ex commands (colon
commands), therefore the first line of your script could be rewritten:
%j
which should give a clue as to how you might want to *write* your file.
also, you probably don't need the exe command all