merlin2011
merlin2011

Reputation: 75649

Is it possible to open a new tab on a particular line in vim?

I have tried both of the following without success.

tabnew Foo.java +30
tabnew Foo.java:30

The first one gives an error message, while Vim opens interprets the whole string as a filename in the second case.

Upvotes: 5

Views: 131

Answers (1)

perreal
perreal

Reputation: 98118

You need to reverse the arguments a bit, try this:

tabnew +30 Foo.java

Upvotes: 8

Related Questions