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
299 stars 61 forks source link

Doesn't try to reopen files when no line number/column number is passed #75

Closed localhostdotdev closed 5 years ago

localhostdotdev commented 5 years ago

It's kind of a mess because of my comments + tabs to spaces + small things, but the interesting bit is:

  " doesn't try to reopen files
  if file_name == file
    return file
  endif

Which will prevent reopenAndGotoLine from executing filetype detect which can take a bit of time.

Thanks for such a great plugin BTW.

localhostdotdev commented 5 years ago

Nervermind, I think it might be something else, I don't know