Neovim: Difference between revisions

From wikinotes
No edit summary
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
Neovim is a rewrite of vim with some new/alternative features.


Neovim is a feature-complete rewrite of vim, with an emphasis on asynchronous processing.
= Documentation =
 
<blockquote>
{{ WARNING |
{| class="wikitable"
neovim saves global variables in <code>~/.local/share/nvim/shada/main.shada</code>. If you encountering
|-
wonky results when changing your vimrc, delete this file and try again.
| <code>:help</code> || https://neovim.io/doc/user/
}}
|-
 
| official docs || https://neovim.io/doc/general/
|-
| official lsp docs || https://neovim.io/doc/lsp/
|-
| github || https://github.com/neovim/neovim
|-
|}
</blockquote><!-- Documentation -->


= Locations =
= Locations =
Line 17: Line 25:
</blockquote><!-- files -->
</blockquote><!-- files -->


= Configuration =
= Notes =
<blockquote>
<blockquote>
<source lang="vim">
{|
" ~/.config/nvim/init.vim
|-
 
| [[neovim install]]
" source vimrc from init.vim
|-
set rtp^=HOME/.vim
| [[neovim configuration]]
so ~/.vimrc
|-
</source>
| [[neovim features]]
</blockquote><!-- configuration -->
|-
 
| [[neovim guis]]
= Features =
|-
<blockquote>
| [[neovim troubleshooting]]
== Terminal ==
|-
<blockquote>
|}
Neovim has it's own embedded terminal!
</blockquote><!-- Notes -->
 
<source lang="vim">
:terminal        " open terminal in current tab
<c-leader><c-n>  " escape terminal mode into normal-mode
tnoremap  <c-a>  " keybind namespace for within terminal mode
 
<c-leader><c-n> (move cursor to filename) gf  "open file in nvim
 
" ex:  (perhaps bind this to a key)
cd /path/to/src
realpath file.py
<c-leader><c-n>
k
gf
</source>
 
</blockquote><!-- terminal -->
</blockquote><!-- features -->
 
= GUI =
<blockquote>
== neovim-qt ==
Essentially gvim for neovim, and it's beautiful.
 
<source lang="vim">
:GuiFont DejaVu Sans Mono:h11    " change font/size
</source>
</blockquote><!-- GUI -->
 
= Extensions =
<blockquote>
== neovim-remote ==
<blockquote>
Start a neovim-server, neovim connects to this, adding files to the same session.
</blockquote><!-- neovim-remote -->
</blockquote><!-- Extensions -->
 
= Common Issues =
<blockquote>
== neovim crashes terminal ==
Your terminal probably needs to be recompiled.
 
== scrolling panes is broken in xterm ==
You may be using xterm, not xterm-256color.<br>
Try <code>export TERM=</code> or <code>export TERM=xterm</code>.
</blockquote><!-- common issues -->

Latest revision as of 23:38, 24 June 2022

Neovim is a rewrite of vim with some new/alternative features.

Documentation

:help https://neovim.io/doc/user/
official docs https://neovim.io/doc/general/
official lsp docs https://neovim.io/doc/lsp/
github https://github.com/neovim/neovim

Locations

~/.config/nvim/init.vim nvim's vimrc
~/.config/nvim/ginit.vim GUI nvim's vimrc

Notes

neovim install
neovim configuration
neovim features
neovim guis
neovim troubleshooting