Sample Header Ad - 728x90

Vim: Is it possible to open multiple files and jump to specific lines?

0 votes
1 answer
70 views
Regularly, one may open one file "foobar" and jump directly to line M as such: vim +M foobar Now, I have a whole list of files "foobar1", "foobar2", ..., "foobarN", all with different lines of interest M1, M2, ..., MN. Is it possible to tell Vim to open all of them in a new tab and then also jump directly to specified lines? Prototype: vim -p +M1 foobar1 +M2 foobar2 ... +MN foobarN
Asked by gustafbstrom (127 rep)
Mar 3, 2023, 02:58 PM
Last activity: Mar 3, 2023, 03:21 PM