4 ms·
Vim has basic word completion in insert mode with Ctrl-N/Ctrl-P. Extended completion is available with the Ctrl-X commands, including completion by syntax, line
by jmcomets 11y ago
Vim has basic word completion in insert mode with Ctrl-N/Ctrl-P. Extended completion is available with the Ctrl-X commands, including completion by syntax, line, filepath and a few others I don't frequently use.
I agree with the statement "use the right tool for the job", but people shouldn't diabolize something without knowing why others swear by it. FYI, in most cases we use Vi(m) because it's the fastest text editor available, not an IDE.
- tomjen3 11y agoCan Vim do type completion based on a method declared in an interface of a parent class(in say Java)? Granted if what you are doing is actually editing text then it makes sense to use Vim or Emacs, but I find that I relatively rarely do that.
- jmcomets 11y agoYes it can with the built-in omni completion (Ctrl-X Ctrl-O keybinding), I invite you to read the 'compl-omni' section in the Vim help.