Tweaking VIM
Vim is where a lot of my editing muscle memory lives. These notes aren’t a full tutorial, just the tweaks I actually keep in my config so Vim behaves the way I like it.
Basic VIM Configuration
Install vim-plug Plugin Manager
Install vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Sample .vimrc Configuration
~/.vimrc
" keep defaults
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
" recursively search subdirectories – not in defaults.
set path+=**
set cursorline
call plug#begin('~/.vim/plugged')
" Add your plugins here, for example:
Plug 'machakann/vim-highlightedyank'
Plug 'joshdick/onedark.vim'
call plug#end()
set termguicolors
set background=dark
colorscheme onedark
highlight Visual cterm=NONE ctermbg=187 ctermfg=0 guibg=#d7d7af guifg=#141414
highlight MatchParen cterm=bold ctermbg=236 ctermfg=214 gui=bold guibg=#303030 guifg=#ffaf00
Install Plugins
Open VIM and run the command:
:PlugInstall