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

Breaks highlight by other plugins #64

Open joe-skb7 opened 8 years ago

joe-skb7 commented 8 years ago

vim-linux-coding-style plugin automatically highlights data types like u8, __u8 etc. But file-line plugin breaks that highlighting.

Next workaround fixes it for me:

@@ -79,10 +79,6 @@ function! s:startup()

    if argc() > 0
        let argidx=argidx()
-       silent argdo call s:handle_arg()
-       exec (argidx+1).'argument'
-       " Manually call Syntax autocommands, ignored by `:argdo`.
-       doautocmd Syntax
    endif
 endfunction

But more elegant solution should be found, I guess (because I believe that the code I removed was added for a reason).

joe-skb7 commented 8 years ago

Btw, this issue can be closed now.