2 votes

How can I view a list of all of the features that can be checked for using `has()` in Vim?

Just for information, not every possible thing that can be checked with has() is listed in :h +feature-list. This mostly documents things that may differ according to different choices done when vim ...
Luc Hermitte's user avatar
  • 17.2k
2 votes

How can I view a list of all of the features that can be checked for using `has()` in Vim?

:help feature-list is the only complete list of features you can test with has("…"). ⚠ You want :help feature-list (no +), not :help +feature-list (with +). They are different! There are ...
Alex Quinn's user avatar
1 vote

Is there a Set datatype in VimScript?

VimScript, like Perl, does not have a native set datatype. (And like Perl, the keys of Vim's dicts are all strings.) Decades ago, when I was learning Perl (and some Python) back in 2002, Python didn'...
J-L's user avatar
  • 131
1 vote

Press CTRL+W in a vimterminal programatically from vimscript?

I would do: wincmd w The :wincmd command is quite useful in Vim script, and as far as I know it's faster than using feedkeys().
Heptite's user avatar
  • 1,046
1 vote
Accepted

Press CTRL+W in a vimterminal programatically from vimscript?

I would do: call feedkeys("\<C-w>w", "n")
Vivian De Smedt's user avatar
1 vote

Is there any way to change the colour of individual tabs?

With a lot of creativity and vimscript you can try to come up with something. To start read and try examples from :h setting-tabline. In short, wouldn't be easy but looks like should be possible, once ...
Maxim Kim's user avatar
  • 13.1k
1 vote

Go to error messages' `:help`

I am not sure why direct :help E... is not an option, but you can create a command to open last error: func! HelpLastErr() if empty(v:errmsg) return endif let errcode = matchstr(v:...
Maxim Kim's user avatar
  • 13.1k
1 vote

Get default autocomplete list using Vimscript

I didn't fond exactly the function @romainl knows but here is an approximation. If the completion is triggered and the completion menu visible (Ctrl n or Ctrl p) the following calls gives you a the ...
Vivian De Smedt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible