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

Detect gnvim in vimrc #116

Closed
TyberiusPrime opened this issue Oct 22, 2019 · 5 comments
Closed

Detect gnvim in vimrc #116

TyberiusPrime opened this issue Oct 22, 2019 · 5 comments

Comments

@TyberiusPrime
Copy link

Hello,

I have a line in my config, 'set title', that apparently crashes gnvim during startup.
But that's a separate bug.
For now, all I want is to not run that line when gnvim is reading my init.vim

Unfortunately !has('gui_running') doesn't seem to work.

How do I do this?

@smolck
Copy link
Contributor

smolck commented Oct 22, 2019

if exists(‘g:gnvim’)
       “ Do stuff here
endif

Could you also post an issue on the set title bug?

@TyberiusPrime
Copy link
Author

Thanks!

@smolck
Copy link
Contributor

smolck commented Oct 22, 2019

No problem! Of course, you’ll want to do if !exists(‘g:gnvim’). I skimmed your question and missed that ;)

@smolck
Copy link
Contributor

smolck commented Oct 22, 2019

@vhakulinen I think we may want to add this sort of information to the README in some way. Maybe an example init.vim with helpful comments?

@vhakulinen
Copy link
Owner

That could be added to the github wiki.

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

3 participants