DEV Community

Cover image for Using NeoVim as an effortless way to edit code – Installation and Setup Guide for Windows 10

Using NeoVim as an effortless way to edit code – Installation and Setup Guide for Windows 10

Ritika Das on December 16, 2020

Hey fellow Devs, it's Ritika here. I recently tried out NeoVim on my PC to see what it's like. Ever wanted to delete text between tags/braces, sav...
Collapse
 
csfan profile image
Vivek Ramachandran

Can you please tell me how to switch between code and terminal tab in neovim on windows? I am going mad over this!
Thanks in advance!

Collapse
 
ritikadas profile image
Ritika Das

Hi Vivek,
Can you send me screenshots?

Collapse
 
csfan profile image
Vivek Ramachandran

I am able to jump between multiple files using ctrl+w and w. But once I use ctrl+w and w and jump from code to terminal I am not able to switch back to code file. I have to exit from terminal to get back to the file.

Collapse
 
csfan profile image
Vivek Ramachandran

Thanks for this great article. I was able to set up neovim. I want to make an upadate. Plugins are now stored under "C:\Users\vivu\AppData\Local\nvim-data\plugged"

Collapse
 
witherc0d3 profile image
WITHERC0D3

so i have a question. i set up everything the same way as u did however when i did :PlugInstall and installed everything i didnt get a file named coc-settings.json which is important for me to have Prettier and stuff how do i fix this?

Collapse
 
ritikadas profile image
Ritika Das

Install the plugin by:

:CocInstall coc-prettier
Enter fullscreen mode Exit fullscreen mode

Run :CocConfig to open coc-settings.json, and add the languages you to be able to format via Prettier in an array.

{
  "coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "javascript", "html"],
}
Enter fullscreen mode Exit fullscreen mode

I hope this helps you to have Prettier.

Collapse
 
witherc0d3 profile image
WITHERC0D3

Thanks now i have set up vim and its quite amazing to shift from VScode to VIM as its incredbly light.

Thread Thread
 
ritikadas profile image
Ritika Das

Great to know @witherc0d3 :)

Collapse
 
tahmidhossain287 profile image
Tahmid Hossain

Hey there great article, installed neovim following all the steps.
But the problem is that while right clicking a file i.e. a python file, I don't get the option to open with neovim like I could with vim, sublime text, pycahrm or any other text editor or IDE for that matter.Any idea how can I get that option?

And when using the :ter command, neovim uses the default windows command prompt not powershell or bash which makes it a lot hard to use too.

Collapse
 
ritikadas profile image
Ritika Das

Hey Tahmid, thank you!
I recently switched to Linux, so if I find any solution for this using Windows on VirtualBox, I'll let you know.

Collapse
 
shivamjoker profile image
Shivam

Great article :)

Collapse
 
ritikadas profile image
Ritika Das

Thanks Shivam :D

Collapse
 
minsomai profile image
Min Somai

nice tutorial.

Collapse
 
ritikadas profile image
Ritika Das

Glad you found it helpful, Somal!