sponsor Vim development Vim logo Vim Book Ad

BTN: Better tab new : Adds a tab new command accepting file:lin_num as a parameter

 script karma  Rating 9/3, Downloaded by 837  Comments, bugs, improvements  Vim wiki

created by
Nicolas Brailovsky
 
script type
utility
 
description
Better tab new: replaces the default tabnew command with a slightly smarter version, capable of understanding line numbers. This is very useful for programming, where filenames are usually expressed as "fname:line number". Even when grepping, the output format will usualy be "path/to/file:42". BTN won't reject these strings, it will instead open them and move the cursor to the appropiate line.
 
install details
Just source from .vimrc: has no dependencies
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
bettertabnew.vim 1 2016-06-15 7.0 Nicolas Brailovsky Initial upload
ip used for rating: 100.28.2.72

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github