Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I switched to Neovim last week (from vim) and it was pretty painless.

    mkdir -p $HOME/.config/nvim
    
    cat >> $HOME/.config/nvim/init.vim << __EOF__
    set runtimepath^=~/.vim runtimepath+=~/.vim/after
    let &packpath = &runtimepath
    source ~/.vimrc
    __EOF__
And it just uses my vim configuration and plugins. The "default" colorscheme rendered slightly differently than vim for me, so I messed around to find a new colorscheme that did what I wanted.

I had to fix my .screenrc in a handful of ways for neovim:

* I had it set to pretend to be xterm ('term xterm'), but that confuses neovim quite a bit.[1] Additionally, terminology (the term emulator I use) sets XTERM_256_COLORS, which confuses neovim into thinking TERM is xterm. So I added 'unsetenv XTERM_256_COLORS' in screenrc as well.

* Also, I had to add 'maptimeout 1' to allow Esc to leave insert mode as quickly as it did in vim, when running nvim under screen.[2]

That's about all I've done to switch. The existing plugins I had all worked out of the box.

[1]: https://github.com/neovim/neovim/wiki/FAQ#home-or-some-other...

[2]: https://github.com/neovim/neovim/wiki/FAQ#esc-in-tmux-or-gnu...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: