Skip to content

nvjkmr/.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

~/.vim

Vim configuration tweaked for personal comfort. Before you start installing, make sure you backup your existing .vim directory (if any).

Installation

Clone the repository and setup environment:

mkdir ~/.config/vim ~/.config/nvim
git clone https://github.com/nvkmr/.vim.git ~/.config/vim/
ln ~/.config/vim/config/nvim/* ~/.config/nvim/

Install some additional tools:

  1. fzf docs - Install and change install path in extras/plug.vim & runtime path in vimrc (if required).
  2. ripgrep docs - Install ripgrep for the :Rg command.
  3. gopls wiki - Install LSP server & integrate with LSP client (Neovim LSP in our case).
  4. Neovim LSP configuration
  5. For vim-devicons to work, you need to patch your fonts (alternatively find patched fonts at NerdFonts).
  6. Finally check that :checkhealth is OK.

NOTE: Open your vim and run this command :PlugInstall to install all the plugins (in ~/.vim/plugged/ directory).

Key Bindings

Action Shortcut
gd Go to definition
gD Go to declaration
gi Go to Implementation
gr Find References
<space>rn Rename
<space>ca Prompt Code Action
K Hover
<C-k> Signature Help
[d Goto Previous Error
]d Goto Next Error
<space>D Type Definition

Plugins

Currently, these are the list of plugins I'm using:

  • auto-pairs
  • direnv.vim
  • fzf.vim
  • nerdtree
  • nvim-compe
  • nvim-lspconfig
  • prototool
  • tabular
  • vim-abolish
  • vim-airline
  • vim-commentary
  • vim-devicons
  • vim-floaterm
  • vim-fubitive
  • vim-fugitive
  • vim-gitgutter
  • vim-misc
  • vim-rails
  • vim-repeat
  • vim-searchindex
  • vim-signature
  • vim-startify
  • vim-surround
  • vim-system-copy