aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/nvim.txt
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc/nvim.txt')
-rw-r--r--runtime/doc/nvim.txt23
1 files changed, 9 insertions, 14 deletions
diff --git a/runtime/doc/nvim.txt b/runtime/doc/nvim.txt
index b8a481a016..a462acd825 100644
--- a/runtime/doc/nvim.txt
+++ b/runtime/doc/nvim.txt
@@ -20,29 +20,24 @@ differences from Vim.
==============================================================================
Transitioning from Vim *nvim-from-vim*
-To start the transition, create init.vim in the correct directory for your
-platform.
+1. To start the transition, create your |init.vim| (user config) file: >
-For Linux, macOS and other Unixes, create the file at ~/.config/nvim/init.vim.
+ :call mkdir(stdpath('config'), 'p')
+ :exe 'edit '.stdpath('config').'/init.vim'
-For Windows, create the file at %LOCALAPPDATA%\nvim\init.vim. `%LOCALAPPDATA%`
-usually expands to `C:\Users\<username>\AppData\Local`.
+2. Add these contents to the file: >
-Note: If your system sets `$XDG_CONFIG_HOME`, use that instead of `~/.config`
-or `%LOCALAPPDATA%` in the paths above. Nvim follows the XDG |base-directories|
-convention.
-
-Next, add these contents to the file:
->
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
-<
+
+3. Restart Nvim, your existing Vim config will be loaded.
+
See |provider-python| and |provider-clipboard| for additional software you
might need to use some features.
-Your Vim configuration might not be entirely compatible with Nvim. For a
-full list of differences between Vim and Nvim see |vim-differences|.
+Your Vim configuration might not be entirely Nvim-compatible.
+See |vim-differences| for the full list of changes.
The |'ttymouse'| option, for example, was removed from Nvim (mouse support
should work without it). If you use the same |vimrc| for Vim and Nvim,