Vimming with Gary Bernhardt β¦
Gary stuck around after our Vim interview to share some of his Vim setup with me. If youβve never seen Gary use Vim, this is a must-watch. The guy moves at the speed of thought. πββοΈ
Gary stuck around after our Vim interview to share some of his Vim setup with me. If youβve never seen Gary use Vim, this is a must-watch. The guy moves at the speed of thought. πββοΈ
Discussion
Sign in or Join to comment or subscribe
Federico Ramirez
2021-07-25T15:05:45Z ago
For the tab functionality, you can use VimCompletesMe, it will try to autocomplete with a keyword when typing, except on special cases, such as when it thinks itβs a file, it will suggest file autocompletion, and when itβs followed by a
.
or->
(you can customize it) it will useomnifunc
to try and find a match, if nothing is found, you can pressTAB
again to use keyword autocomplete.Itβs pretty nice. Sometimes I still manually trigger omni-completion or file-completion or tag-completion or whatever completion I need, but it works most of the time :) Also since Gary uses ALE, ALE already provides relevant
omnifunc
so if you have an LSP installed, such assolargraph
for Ruby, ALE can pick that up, provide anomnifunc
, and then you can trigger that withVimCompletesMe
simply by pressingTAB
.