curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Open vim and run:
| Plugin |
Description |
itchyny/lightline.vim |
Lightweight statusline |
sainnhe/everforest |
Colorscheme |
tpope/vim-vinegar |
Directory browser |
tpope/vim-fugitive |
Git integration |
tpope/vim-surround |
Surround editing |
tpope/vim-commentary |
Toggle comments |
| Key |
Action |
, |
Leader key |
- |
Browse current file's directory |
,gs |
Git status |
,gb |
Git blame |
,gd |
Git diff (split) |
,gc |
Git commit |
,<Space> |
Clear search highlight |
gcc |
Toggle line comment |
gc + motion |
Toggle region comment (e.g. gcip for paragraph) |
cs"' |
Change surrounding " to ' |
ds" |
Delete surrounding " |
ysiw] |
Surround word with [ |