Re: How to specific the line to go to from the command line?

2021-03-24 Thread Eli the Bearded
Tony Mechelynck wrote: > Yes, and as icing on the cake, a variation on this one: how to go to a > specific line and column: > > " Go to line and column > function GoTo(line, column) > exe min([line("$"), a:line]) "| normal" a:column . "|" > endfunction You don't need a vim function to do

Re: How to specific the line to go to from the command line?

2021-03-24 Thread Eli the Bearded
Sven Guckes wrote: > * Peng Yu [2021-03-24 01:51]: >> I want to specify the line number to go to at the command line. >> Could anybody let me know how to do it with vim? Thanks. > > how to go to line #23: > > jump to line 23 on startup: > vim +23 filename That's a good answer. The more

Re: How to specific the line to go to from the command line?

2021-03-23 Thread Tony Mechelynck
On Wed, Mar 24, 2021 at 2:02 AM Sven Guckes wrote: > > * Peng Yu [2021-03-24 01:51]: > > I want to specify the line number to go to at the command line. > > Could anybody let me know how to do it with vim? Thanks. > > how to go to line #23: > > jump to line 23 on startup: > vim +23 filename

Re: How to specific the line to go to from the command line?

2021-03-23 Thread Sven Guckes
* Peng Yu [2021-03-24 01:51]: > I want to specify the line number to go to at the command line. > Could anybody let me know how to do it with vim? Thanks. how to go to line #23: jump to line 23 on startup: vim +23 filename jump to line 23 in command mode: 23G 23gg jump to line 23

How to specific the line to go to from the command line?

2021-03-23 Thread Peng Yu
Hi, I want to specify the line number to go to at the command line. Could anybody let me know how to do it with vim? Thanks. -- Regards, Peng -- -- 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