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

Already on GitHub? Sign in to your account

Use "exists" instead of "has" to detect colorcolumn option #34

merged 1 commit into from Feb 27, 2012


None yet
2 participants

sandaya commented Dec 28, 2011

"has" does not work for the colorcolumn option. It always returns 0 whether you have colorcolumn (v7.3) or not.


:echo has("colorcolumn")
"returns 0 in 7.3

:echo exists("+colorcolumn")
"returns 1 in 7.3

@fholgado fholgado added a commit that referenced this pull request Feb 27, 2012

@fholgado fholgado Merge pull request #34 from sandaya/master
Use "exists" instead of "has" to detect colorcolumn option

@fholgado fholgado merged commit 08d7287 into fholgado:master Feb 27, 2012

@ghost ghost assigned fholgado May 10, 2013

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