From 296b5375ac6d84f5886a89b929f06fe162a7ab4c Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 5 Feb 2016 12:42:20 +0100 Subject: [PATCH] Neovim: configuration --- CHANGELOG.md | 3 ++- content/neovim.md | 22 ++++++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b6f05c..7814044 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,7 +45,8 @@ All notable changes to this project will be documented in this file. - Misc: [Why hjkl for navigation?](README.md#why-hjkl-for-navigation) - Misc: [Standard plugins](README.md#standard-plugins) - Misc: [Map CapsLock to Control](README.md#map-capslock-to-control) -- Neovim: [:terminal](content/neovim.md#terminal) +- Neovim: [Terminal emulator](content/neovim.md#terminal-emulator) +- Neovim: [Configuration](content/neovim.md#configuration) ### Changed diff --git a/content/neovim.md b/content/neovim.md index 8c4939d..fcdc397 100644 --- a/content/neovim.md +++ b/content/neovim.md @@ -1,10 +1,28 @@ ## Neovim -- [:terminal](#terminal) +- [Configuration](#configuration) +- [Terminal emulator](#terminal-emulator) --- -#### :terminal +#### Configuration + +Neovim adheres to the [XDG Base Directory +Specification](http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html). +If you don't have them set already, `$XDG_CONFIG_HOME` defaults to `~/.config` +and `$XDG_DATA_HOME` defaults to `~/.local/share`. + +| Flavour | User configuration directory | vimrc | +|---------|------------------------------|-------| +| Vim | `~/.vim` | `~/.vimrc` or `/.vim/vimrc` | +| Neovim | `~/.config/nvim` | `~/.config/nvim/init.vim` | + +[Working files](../README.md#handling-backup-swap-undo-and-viminfo-files) are +put under `~/.local/share/nvim` by default. + +Related help: `:h nvim-configuration` + +#### Terminal emulator Neovim implements a proper terminal emulator ([libvterm](http://www.leonerd.org.uk/code/libvterm/)) and can easily fire up a