Hello, Everybody,
How to generate auto increased number lines in vim?
For example,
a[0]
a[1]
a[2]
a[3]
..
Thanks!
--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http
Harvey Li lihuawe...@gmail.com [11-09-18 09:28]:
Hello, Everybody,
How to generate auto increased number lines in vim?
For example,
a[0]
a[1]
a[2]
a[3]
..
Thanks!
--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text
vim script,i happened to ask such a question not long before and someone had
solve it for me.
let i =0
g/^$s//\=a[.i.]/g | let i+=1
you can check my post here if you could read chinese,
http://www.zfanw.com/blog/vim-substitute-script-function.html
2011/09/18 15:25 Harvey Li lihuawe...@gmail.com:
there should be a / before the s,sorry.
2011/09/18 17:56 Chen San chenx...@gmail.com:
vim script,i happened to ask such a question not long before and someone
had
solve it for me.
let i =0
g/^$s//\=a[.i.]/g | let i+=1
you can check my post here if you could read chinese,
On 09/18/2011 08:47 AM, Harvey Li wrote:
Hello, Everybody,
How to generate auto increased number lines in vim?
For example,
a[0]
a[1]
a[2]
a[3]
..
One method of doing so would be:
ia[0]EscqqyypC-aq@q@q@q
That is:
i: go to insert mode
a[0]: type the first line
Esc: go to normal mode
qq
On 09/18/2011 08:47 AM, Harvey Li wrote:
How to generate auto increased number lines in vim?
For example,
a[0]
a[1]
a[2]
a[3]
You might be interested in this common tip:
http://vim.wikia.com/wiki/Generating_a_column_of_increasing_numbers
-tim
--
You received this message from the vim_use
On Sunday, September 18, 2011 02:42:28 meino.cra...@gmx.de wrote:
To execute the macro type
AltGr-q
AltGr? my keyboard doesn't have one of those -- wikipedia
says Windows started allowing the Alt-Ctrl combination to
emulate AltGr -- anybody know a way to map that for vim on
linux? it
sc tooth...@swbell.net [11-09-19 04:52]:
On Sunday, September 18, 2011 02:42:28 meino.cra...@gmx.de wrote:
To execute the macro type
AltGr-q
AltGr? my keyboard doesn't have one of those -- wikipedia
says Windows started allowing the Alt-Ctrl combination to
emulate AltGr --