Neovim: Difference between revisions

From miki
Jump to navigation Jump to search
Line 48: Line 48:
* vim-airline, vs powerline, vs vim-bufferline
* vim-airline, vs powerline, vs vim-bufferline
* Color theme ''solarized''.
* Color theme ''solarized''.

== Troubleshooting ==
=== True color and italic support ===
There are '''lot''' of discussion about true color and italic support in the terminal. Below the list of relevant posts.

* [https://github.com/morhetz/gruvbox/wiki/Terminal-specific morhetz/gruvbox wiki -- Terminal specific]
* [https://github.com/neovim/neovim/wiki/FAQ neovim/neovim -- FAQ]
* [https://gist.github.com/XVilka/8346728 XVilka/TrueColour.md -- Colours in terminal]
* [http://bruinsslot.jp/2016/05/29/how-to-enable-true-color-for-neovim-tmux-and-gnome-terminal/ How to enable true-color for neovim, tmux, and gnome-terminal]
* [https://github.com/neovim/neovim/issues/3461 neovim/neovim -- Italics aren't displaying properly #3461]
* [https://github.com/neovim/neovim/issues/3462#issuecomment-148729580 neovim/neovim -- Get funny chars on terminal #3462]

All in all the solution for me involved to at least:
* Upgrade to Ubuntu Xenial 16.04, to get newest Gnome Terminal and Terminator/gtk3 on recent VTE.
* Upgrade to tmux 2.2 (only if using tmux).
* Do a total reset of the account configuration.
* Fiddle a bit with the terminfo (still not sure what was the exact recipe though).
* Use ''gruvbox'' as theme (not ''solarized'', which does not work in terminal).

To test, first verify that the color theme works correctly in gvim.


== To Do ==
== To Do ==

Revision as of 15:49, 27 October 2016

References

Install

Follow the install guide Installing Neovim.


Default ini files are located at ~/.config/nvim/init.vim. To import Vim settings (FAQ :help nvim-from-vim)

mkdir ~/.config
ln -s ~/.vim ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim

Plugin manager

We install vim-plug:

curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Plugins

Content of ~/.config/nvim/init.vim:

Reload the init script and install plugins:

:so $MYVIMRC
"... or ':so %' if it is current file
:PlugInstall

To update plugins:

:PlugUpdate
To test
  • vim-airline, vs powerline, vs vim-bufferline
  • Color theme solarized.

Troubleshooting

True color and italic support

There are lot of discussion about true color and italic support in the terminal. Below the list of relevant posts.

All in all the solution for me involved to at least:

  • Upgrade to Ubuntu Xenial 16.04, to get newest Gnome Terminal and Terminator/gtk3 on recent VTE.
  • Upgrade to tmux 2.2 (only if using tmux).
  • Do a total reset of the account configuration.
  • Fiddle a bit with the terminfo (still not sure what was the exact recipe though).
  • Use gruvbox as theme (not solarized, which does not work in terminal).

To test, first verify that the color theme works correctly in gvim.

To Do

True color
Gui
Color scheme
  • Solarized
  • gruvbox
Linters
  • neomake
  • syntactics