官方文档: https://neovim.io/doc/user/

摘要: 后面具体学习时候再补充

Neovim Installation

针对不同的平台直接在github上下载对应的版本的文件,然后直接解压放到/usr/bin/nvim

Configuration

nvim的配置文件放在了~/.config/nvim目录下,创建init.lua文件和lua目录,在lua目录下放置你的配置文件,简单的init.lua入选所示

--[[ init.lua ]]

-- LEADER
-- These keybindings need to be defined before the first /
-- is called; otherwise, it will default to "\"
vim.g.mapleader = ","
vim.g.localleader = "\\"

-- IMPORTS
-- require('vars')      -- Variables
-- require('opts')      -- Options
-- require('keys')      -- Keymaps
-- require('plug')      -- Plugins

Set Variables

你的变量的可以放在var.lua文件中就可以进行全局变量的定义

Manage plugins with Packer

here is list including more awesosme neovim plugins

where i installed the Packer at the ~/.config/nvim/