Hot tips to bring the awesomeness of Visual Studio Code to Vim.
Front-Matter
I want to start by saying, this is not an editor-shame art...
For further actions, you may consider blocking this person and/or reporting abuse
Love the article! I recommend TabNine for Vim; it has the best autocompletion that I've ever seen. It uses GPT-2, OpenAI's text prediction model, and I often find it correctly autocompleting entire lines with it.
thepracticaldev.s3.amazonaws.com/i...
Hey, I am trying to use tabnine in vim. I also love to use youcompleteme but idk how to make the 2 work together (like in vscode, tabnine will work alongside with intellisense). Do you have any suggestion?
Tabnine is awesome. I have been using it with emacs for some time now. I am using the professional version which is currently free and in beta.
I also use the Professional version; Deep TabNine is incredible and I can't wait until support is added for things like Salesforce's CTRL or other powerful text prediction models based on GPT-2.
I just read an article about TabNine! I'll definitely check it out. Thanks!
You should look into github.com/liuchengxu/vim-clap for a
⌘P
like palette.Also if you're using coc.nvim you probably don't need extra plugins for auto-pairs and formatting on save, you just need to set it up on coc.
Good point, thanks!
Is the Kyle Mathews demo you watched available anywhere online? Now I'm curious to check it out :D
This is a great article! Ill just share some talks that really got me into the vim mindset:
There were a few places that helped and are helping me.
I don't remember exactly which one it was, but here is the link to their webinars:
gatsbyjs.com/resources/webinars/
Thanks for the resources! Watching people use Vim is incredibly eye opening lol
Great article! But, did you missed pointing out to the Powerline extension or did I missed it? One of the greatest thing for vim imho.
I somehow stopped using vim for coding mostly because of the lack of a good intellisence plugins in the past. Will give it a try with your proposed plugins :)
Thanks! I actually think I left powerline out because it's not something that you get from native VSCode, but it is an awesome plugin!
I would argue that because of the intellisense from CoC (or from what im hearing about TabNine) now is a perfect time to jump back in!
same here! I switch to vim with tmux 3 month ago. I used thoughtbot upcase video to learn from. Honestly, so far its been great. I can the biggest plus is I can navigate with in a file with so much precision.
Agreed! Thoughtbot is great 👍🏻
Thanks for writing this post. I'm currently in the process of migrating from VSCode to Vim to preserve more RAM and teach myself about langserver-protocol.
I use LangaugeClient-neovim + completor.vim as my daily driver. Avoiding coc.nvim because it depend on nodejs.
I'm still searching on something similar to "autocomplete as you type" but don't depend on any interpreter/runtime (pure binary executable).
Interesting! Any reason why you are avoiding nodejs? I think most autocomplete plugins are going to require some type of runtime, but I could be wrong.
For simple application, nodejs has a bigger memory footprint than python or lua. Also, by default, nodejs is not pre-installed in most of Linux distribution. But that's not the main case.
If I use typescript langserver, then there will be 2 nodejs running at the same time. One for coc and the other is for tsserver. And if I use webpack hot-reload for developing an app, then there will be 3 nodejs running at the same time.
Vim 8 and Neovim has their own asynchronous job control. So why not leverage those. This means that the lsp-client will share the same runtime as vim, no duplicate runtime.
Recently I found this article that explain about vim-LSC. The project is quite new and I'm not testing it yet, but it's interesting that there is an lsp-client written in pure vimscript.
Interesting. Thanks for the info! I would prefer not to run 6 node servers either lol I haven't had any issues with Coc, but I definitely see your point.
Whta's your opinion on using the vscode vim plugin? I personally use that a lot but I find the issue with how undo works messy sometimes.
Its okay. My issue with it isn't so much about the plugin but about myself. I used the plugin for about 6 months but my learning about vim quickly plateaued because i was still sticking to VS Code shortcuts. Its my personal opinion that in order to really get a benefit from Vim, its gotta be in Vim.
Do you have dotfiles to install everything? Or they can only br installed manually?
Yeah, I have dotfiles: github.com/DarthOstrich/dotfiles
You might want to support onivim.io/
New vim UI to natively support VS Code extensions and powered by a native vim backed (my understanding was supported by neovim development).
Really interesting project. Will definitely start following it.
Okay, time to spend more time with VIM than just README's.
So, what are your thoughts about VIM VS. NVIM?
Ive only used Vim. Another guy i used to work with used nvim and he liked it. I don't think it really matters
Just FYI, Vundle is not deprecated. The Bundle commands in Vundle are however.
Correct. Bad choice of words. I meant it hasn't been updated in a long time.
Great article! I use Vim regularly... but poorly. This has inspired me to supercharge my use. Thanks!
Haha thanks! That gif is the greatest compliment anyone has given me