3 ms·
It's nice to have the power of vim on top of an already powerful editor with nice defaults baked in and an easy ecosystem of extensions that all play well with
by weaksauce 5y ago
It's nice to have the power of vim on top of an already powerful editor with nice defaults baked in and an easy ecosystem of extensions that all play well with the gui underpinnings of your os. I use neovim as a server and vscode as the editor. basically anything in normal mode is passed through unadulterated and you have a full neovim backend.
it's pretty close to great. some edge cases that kinda annoy you here and there but overall it's great.
- newlisp 5y agopurists are going to be purist for sake of purism only.
- tjoff 5y agoThere are plenty of other reasons... Neovim in vscode is pretty great but it is still quite hindered behind vscode. It is also easy to get in weird mental states when the editor panes and other vscode panes behave drastically different.
- newlisp 5y agoThat's true, but IMO is just a matter of accustoming oneself to some new ways of doing things, as long as the tradeoff is worth it for you.
- alpaca128 5y agoVim is the only editor with powerful & modern features that doesn't distract me all the time. I'm not a purist, I just like being productive. I get why many people prefer an IDE or something like VS Code, but I don't enjoy using them. From my perspective they're a downgrade in almost every aspect.
- wyclif 5y agoHow did you set yours up?
- weaksauce 5y agohttps://github.com/asvetliakov/vscode-neovim https://github.com/asvetliakov/vscode-neovim just use that(it's in the extension store) and compile/download a somewhat recent version of neovim. I think you either need it in the path or specify the path to neovim explicitly. if you use neovim directly too you can check for it in your init.vim file: if exists('g:vscode') nmap j gj nmap k gk else nnoremap j gj nnoremap k gk endif if you have a vscode thing you want to call in normal mode you can use vscodenotify. they list the function name in the keybindings area of vscode: nnoremap <silent> <space>= <Cmd> call VSCodeNotify('editor.action.formatDocument')<CR>
- wyclif 5y agoThanks! Helpful. Do you have to compile neovim or can you just brew install it?
- wyclif 5y agoI had trouble getting it running. I installed it and checked the paths and the settings (I'm on macOS) but obviously I'm missing something since I couldn't get it to work. I also made sure I have the latest version of neovim. Right now I have vscodevim running (I had disabled it before trying this so there weren't any conflicts), but that's something different. But I'd like to be able to use a real instance of neovim as the backend instead. So here's what I did: Installed vscode-neovim. Path to nvim was configured. Restarting vscode still isn't giving me neovim plugin functionality. Seeing nothing in the menus I might have to select to enable it.