i wanted to search and replace, implement after the thread here, unfortunately it does not work. gVim find/replace with counter
Can anyone help me?
Working
:let n=[0] | %s/|-\n|/\=map(n,'v:val+1')/g
Not working
:let n=[0] | %s/|-\n|/BLABLA\=map(n,'v:val+1')/g
Why? how do I mask the functionon?
Example
{| class="wikitable"
! Number
! Name
! Type
! Default Value
! Duration
! Activation
! Status
! EDIT
|-
|
| Adobe-Dummy-Cart-Total
| Custom Script
|
| Pageview
| Active
| Approved
| Edit
|-
|
| basePrice
I wana replace
|-
|
with
|-
| 1
|-
| 2