- Create a
Vim
configuration forRust
development - Backup my own
Vim
configuration
- Configuration per plugin; Each plugin is configured by a vim script located in
modules/
whose name is the plugin name with suffix.vim
.
modules
├── coc.nvim.vim # https://github.com/neoclide/coc.nvim
├── colorscheme.vim # Colorscheme settings
├── ctrlp.vim
├── incsearch.vim
├── indentLine.vim
├── nerdtree.vim
├── ultisnips.vim
├── vim-airline-themes.vim
├── vim-airline.vim
├── vim-autoformat.vim
...
- Load configuration by a special function. Each plugin configuration creates a script local function named
s:setup()
which should be called at the end of the file manually. All configuration for the plugin should be placed in it. - Enable configuration by loading it in
vimrc
. If you want to enable a configuration for a specific plugin, add a line invimrc
to include the configuration.
runtime! ./modules/pluginx.vim " load configuration for `pluginx`
Here is an example configuration for vim-plug.
coc.nvim
: Intellisense engine for vim8 & neovim, full language server protocol support as VSCodevim-plug
: Minimalist Vim Plugin Managervim-which-key
: Vim plugin that shows keybindings in popup
Check out all the plugin in vimrc
if you want.
- Clone the repository to
~/.vim
git clone https://github.com/iosmanthus/vimrc.git .vim
- Migration from
Vim
toNeoVim
: migrate from vim