bogado / file-line

Plugin for vim to enabling opening a file in a given line
http://www.vim.org/scripts/script.php?script_id=2184
301 stars 61 forks source link

using a gotoline on the last file breaks -o #36

Open bogado opened 9 years ago

bogado commented 9 years ago

These two commands have the same effect:

$ vim README.md plugin/file_line.vim:10 -o

$ vim README.md plugin/file_line.vim:10

And those two also have the same effect:

$ vim README.md:10 plugin/file_line.vim:10 -o

$ vim README.md:10 plugin/file_line.vim:10

This work as expected :

$ vim README.md:10 plugin/file_line.vim -o

and this has no syntax highlight on the second file $ vim README.md:10 plugin/file_line.vim

dragon788 commented 8 years ago

I'm also running into this. I'll expand on this that if you are trying to pass more than 2 files in it also only opens the first file and the very last file in split mode, and the rest are in the :ls buffer, but not opened.

I haven't done much VimL, but I'll take a look when it bites me hard enough, would be great if somebody more familiar could fix it sooner.