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

VimLang suggestion #33

Open
iasj opened this issue Jul 24, 2021 · 4 comments
Open

VimLang suggestion #33

iasj opened this issue Jul 24, 2021 · 4 comments

Comments

@iasj
Copy link

iasj commented Jul 24, 2021

Hi there. Great plugin.

Suggestion when using the function type(). Use the v:t_<type> built-in variables. Like this:

if type("hello") == v:t_string
  echo "it's a string"
endif

Take a look at :help type().

@prabirshrestha
Copy link
Contributor

It isn’t supported in som older version of vim/neocon hence uses type() function.

@iasj
Copy link
Author

iasj commented Jul 25, 2021

They should have thought that straight from the beginning.

Come to mention it, do people still use older versions of Vim? I've been planing to implement Vim support for my plugin. Did you ever get a problem like that?

@prabirshrestha
Copy link
Contributor

I have got a lot of issues with vim-lsp and asyncomplete. It is primarily due to folks using stock vim that comes with linux distros that is usually not up to date.

@iasj
Copy link
Author

iasj commented Jul 25, 2021

Good to know. I think I'll just stay on the Neovim realm for now.

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

2 participants