vikramc98406
Full Member level 1
Hi,
I want to execute vim commands from shell script
Below are two examples i can work in exec mode of gvim/vim and can edit a file
:%s/text1/text2/g
:r <filename>
Is there a way to execute the above commands without opening the file either on unix command line or embeded in sh script.
I am also trying to replace a path in file and expand full contents of that.
I am trying to embed in a shell script, can anyone help me
Thanks
vikram
I want to execute vim commands from shell script
Below are two examples i can work in exec mode of gvim/vim and can edit a file
:%s/text1/text2/g
:r <filename>
Is there a way to execute the above commands without opening the file either on unix command line or embeded in sh script.
I am also trying to replace a path in file and expand full contents of that.
I am trying to embed in a shell script, can anyone help me
Thanks
vikram