/vimrc

Iosmanthus's neovim configuration

Primary LanguageVim Script

麗敏のVim設定

GitHub version Maintenance Ask Me Anything !

Objective

  • Create a Vim configuration for Rust development
  • Backup my own Vim configuration

Plugins Configuration

  1. 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
...
  1. 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.
  2. Enable configuration by loading it in vimrc. If you want to enable a configuration for a specific plugin, add a line in vimrc to include the configuration.
runtime! ./modules/pluginx.vim " load configuration for `pluginx`

Here is an example configuration for vim-plug.

Core plugins

  • coc.nvim: Intellisense engine for vim8 & neovim, full language server protocol support as VSCode
  • vim-plug: Minimalist Vim Plugin Manager
  • vim-which-key: Vim plugin that shows keybindings in popup

Check out all the plugin in vimrc if you want.

Installation

  1. Clone the repository to ~/.vim
git clone https://github.com/iosmanthus/vimrc.git .vim
  1. Migration from Vim to NeoVim: migrate from vim