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

No highlights showing #64

Open
MorningGlory747 opened this issue Mar 13, 2020 · 2 comments
Open

No highlights showing #64

MorningGlory747 opened this issue Mar 13, 2020 · 2 comments

Comments

@MorningGlory747
Copy link

Hello, this is probably pretty dumb, but I can't seem to find an answer for this

I'm using Vim v8.0 on a WSL and I can't get any highlights from vim-python (unused imports, unused arguments, misspelled names, etc.)

Here is the vimrc and i'm using vim-plug

call plug#begin('~/.vim/plugged')           
Plug 'altercation/vim-colors-solarized'                         
Plug 'jnurmine/Zenburn'             
Plug 'vim-python/python-syntax'            
call plug#end()                          

if has('gui_running')               
	set background=dark           
	colorscheme solarized                                                                                                                                                                                                    
else
	colors zenburn
endif

set number

filetype plugin indent on
syntax on

I executed :PlugInstall as well.

And a look at my ~/.vim/plugged

>> ls
python-syntax Zenburn vim-colors-solarized

What could I be doing wrong/missing?
Thanks

@nfnty
Copy link
Member

nfnty commented Apr 9, 2020

Don't you get any syntax highlighting at all? Try adding let g:python_highlight_all = 1 to the end of your .vimrc to enable all features. See the README for other options.

@adigitoleo
Copy link

Not OP, but I installed this a while back and didn't realise that g:python_highlight_all is off by default. For a while I was wondering why I wasn't seeing any changes (and I'm only admitting to this because I saw this issue 😆 )

Maybe having g:python_highlight_all = 1 by default would be more in line with other plugins? If someone has installed this, it's probably because they aren't happy with the default syntax file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants