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

I tried both of them without success.

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

The first displays an error message, and Vim opens the interpretation of the entire line as the file name in the second case.

+5
source share
1 answer

You need to change the arguments a bit, try the following:

tabnew +30 Foo.java
+7
source

All Articles