Is there a way to get vim to recognize line numbers at the end of file names?

I work almost exclusively in the terminal, and very often I need to look at the files that appear on the error stack. A very common format /some/file:99, where 99 is the line number. I would like to be able to copy this line and open this line easily in vim.

What I'm looking for is the ability to do :e /some/file:99, and vim automatically opens this file on line 99. Is there something similar? If not, is it possible to write a plugin for it?

+5
source share
4 answers

This plugin was designed with this specific purpose in mind: file: line

+1

, :

:e +99 /some/file

:

http://vim.runpaint.org/basics/opening-files/

+ linenumber, Vim . , vim +7 todo.list : e +100 treatise.txt. linenumber, +, Vim .

+6

/some/file:99 , /some/file 99, gF, .

+2

/some/file:99? - ? , , quickfix. (:h quickfix).

+1

All Articles