Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filetype not set on multiple files #52

Closed
lervag opened this issue Jun 26, 2015 · 1 comment
Closed

Filetype not set on multiple files #52

lervag opened this issue Jun 26, 2015 · 1 comment

Comments

@lervag
Copy link

lervag commented Jun 26, 2015

The filetype is for some reason not set on the second file if I open multiple files (of the same filetype). The problem only occurs with set hidden. Consider the following minimal working example:

set nocompatible
let &rtp = '~/.vim/bundle/file-line/,' . &rtp
filetype plugin indent on
syntax enable
set hidden
program test1
  implicit none
  !
  print *, "This is test1"
end program test1
program test2
  implicit none
  !
  print *, "This is test2"
end program test2

Now do gvim -u minivimrc *.f90 (or vim) followed by :bnext<cr>. This will go to the next file, which does not have any syntax highlighting because the filetype is not set.

This issue is similar to #28 and #29, which were closed as fixed in #34. However, the above procedure clearly shows that the current issue exists and is reproducible.

Edit: Minor update.

@lervag
Copy link
Author

lervag commented Jun 28, 2015

I decided to fix the problem myself. In the process, I ended up rewriting the plugin according to my preferred style of vimL.

@lervag lervag closed this as completed Jun 28, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant