Hi All, This is what I want to do using GVIM 7.3:
- open a file in new tab (first tab)
- get all lines which contain a pattern -> insert them to a register/clipboard
- open a new tab (second tab)
- paste the code from clipboard
- do some regex replace process in the second tab.
I can manually execute commands one by one successfully.
I even can do commands in sequence using this sample :
:let @b="This Value should be pasted in second tab" | :set dir=$TEMP | :tabe tabname | "bp | :%s/tab/tab and replaced in second tab/gi
but when I record them into a macro; The macro stops at step 3
Is there special technique dealing with function/macro that access multiple tabs
Thank you.
this is the commands sample
:let @b="This Value should be pasted in second tab"
:set dir=$TEMP
":tabe tabName
"bp
:%s/tab/tab and replaced in second tab/gi