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

Syntax highlighting doesn't work with Vundle #13

Open
ishankhare07 opened this issue Feb 15, 2018 · 11 comments
Open

Syntax highlighting doesn't work with Vundle #13

ishankhare07 opened this issue Feb 15, 2018 · 11 comments

Comments

@ishankhare07
Copy link

I've installed the plugin using Vundle
Plugin 'udalov/kotlin-vim'

Then I've made sure to run PluginInstall. Everything went fine and I've restarted the editor several times. But I get not syntax highlighting at all.

@udalov udalov changed the title Syntax highlighting doesn't work Syntax highlighting doesn't work with Vundle Feb 16, 2018
@udalov
Copy link
Owner

udalov commented Feb 16, 2018

I'm not familiar with Vundle to confirm or deny if this is a problem. Do you have any other plugins installed by Vundle? Do they work?

@ishankhare07
Copy link
Author

I have a working setup of Vundle in my vim configuration. Have about 20+ plugins setup through Vundle in properly working condition. So I can confirm that I doesn't have anything to do with my vim/Vundle configuration. There are instructions for installing this plugin through Vundle in the README as well

@ClaudeXin
Copy link

I have this problem too.

@TimBritton
Copy link

TimBritton commented Apr 20, 2018

After typing :syntax on the syntax highlighting is working.

@TamasBarta
Copy link

Typing :syntax on doesn't help in my case. (I tried it, but it's already present in .vimrc)

@TamasBarta
Copy link

Not sure how Vundle comes in, but :set filetype=kotlin helps, so probably it's a problem with file type detection.

@sarevok-anchev
Copy link

Same problem here, it's as if the ftdetect/kotlin.vim file is not being read.

copying the contents of that file to ~/.vimrc makes things work as expected.

Not sure why ftdetect/kotlin.vim is not being read - if you look at for instance rust.vim (another plugin but for rust that also sets the filetype) it does essentially the same thing, and that works.

I doubt it's related to the installation method.

@jcw1993
Copy link

jcw1993 commented Dec 30, 2018

add this to your .vimrc:
au BufNewFile,BufRead *.kt set filetype=kotlin

it works for me.

@panda8z
Copy link

panda8z commented Jul 31, 2019

Not sure how Vundle comes in, but :set filetype=kotlin helps, so probably it's a problem with file type detection.

add syntax on " highligthing in your .vimrc file may work

@wilsoniya
Copy link

wilsoniya commented Sep 19, 2019

I was having this issue as well. I double checked my ~/.vimrc and I had a configuration mistake for vundle. The last two lines of the Vundle setup need to be swapped:

Before:

" ...

filetype plugin indent on                   " vundle required!
call vundle#end()                           " required

After:

" ...

call vundle#end()                           " required
filetype plugin indent on                   " vundle required!

Kinda weird bc afaict nothing else was broken 🤷‍♂️

@bravestarr
Copy link

bravestarr commented Oct 11, 2019

Referring to the help of vundle, you should put filetype off before vundle specific configuration, but you may miss that command.

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

10 participants