I have been mixing the use of
emacs
and vi
(vim
) for a long time. Each of them has its advantage. I parse error output from a compilation like process and get a line and column number but I can only use emacs
to directly go to a line and column:
emacs +15:25 myfile.xml
with vi
I only have the line number (according to the man page)
vi +15 myfile.xml
There is an option to go position cursor on a pattern (vi +/pattern myfile.xml
) which i never got to work. But that would not help me as the pattern is not always the first occurrence in the file.
How can I start vi
so it goes to column 25 on line 15 of my file? Can I do something with -c
option?
Asked by Dominique
(305 rep)
Dec 18, 2014, 04:21 PM
Last activity: Jun 4, 2025, 12:13 PM
Last activity: Jun 4, 2025, 12:13 PM