Ⅰ. 插件描述
Neovim settings with vim-plugⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'flipxfx/vim-settings'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'flipxfx/vim-settings'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'flipxfx/vim-settings'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/flipxfx/vim-settings
Ⅳ. 文档说明
# Vim Settings
The basic idea behind vim-settings is to sync Neovim settings in a git repository using vim-plug.
The solution is built with my settings embedded for others to use or fork and customize.
Once setup, any customizations and updates are synced via vim-plug.
In addition, as people fork the repo we can all take from each other and have a nice place to see what others are doing.
Install
- If you want to customize the settings then fork this repository first
- Install python 3 with Homebrew using
brew install python3 - Install python Neovim client with
pip3 install neovim Create/replace init.vim file, updating
settings_usernameto your GitHub username if you forked the repository- Open Neovim and run
:e $MYVIMRC
- Open Neovim and run
- Open Neovim and it should install everything automatically
Notes
- My setup uses Neovim, iTerm2, Operator Mono Book/Italic for monospace font, and Hack Nerd Font for non-ASCII font
- Since I use
nvimin iTerm2, my fonts are set in iTerm2 and not Neovim - My spell file is included in this repo
<leader>is set to space
Make Update
- You will need to have forked vim-settings to do this
Make changes to vim-settings
- You can open the vim-settings settings file with
<leader>rc
- You can open the vim-settings settings file with
- Run
<leader>rCto refresh with any changes you make - If you add/remove plugins run
:PlugInstallor:PlugCleanrespectively, and<leader>rCagain to refresh Commit and push the changes via git
- Use vim-fugitive for quicker results
Pull Update
- Run
:PlugUpdate - Run
<leader>rCto refresh with changes - If new plugins are added to settings.vim, then run
:PlugInstall, and<leader>rC.