/vim-profile

My personal vim config

Primary LanguageVim ScriptMIT LicenseMIT

Vim profile

Installation

Create init.vim:

cp init.vim.sample init.vim

macOS

Symlink config directory (assuming the repository is cloned at $HOME/Projects/vim-profile):

ln -s "$HOME/Projects/vim-profile" "$HOME/.config/nvim"

Install dependencies:

brew install bat node ripgrep

Windows

Start cmd as Administrator and run (assuming the repository is cloned at C:\code\vim-profile):

cd %LOCALAPPDATA%
mklink /D nvim C:\code\vim-profile

Install dependencies:

scoop install bat ripgrep

In WSL, download and add win32yank.exe to the PATH to enable system clipboard integration. See also Neovim Wiki.

Initial configuration

  • Configure fzf default command to respect .gitignore. For this set the following environment variable:

    export FZF_DEFAULT_COMMAND='rg --files --hidden --iglob !.git'
    
  • Install minpac package manager:

    git clone https://github.com/k-takata/minpac.git pack/minpac/opt/minpac
  • Install plugins (minpac):

    call minpac#update()
    
  • Install coc extensions:

    :CocInstall coc-rust-analyzer coc-tsserver
    
  • If you're using coc-java you can add Lombok support like so:

    mkdir -p /usr/local/opt/lombok/
    curl -L https://projectlombok.org/downloads/lombok.jar -o /usr/local/opt/lombok/lombok.jar