These are some of the configurations I use that I have put together. So far I have cleaned up my vim config, so that is the only thing here atm. But I will soon update on tmux, git and other configs.
Warning! The configuration file is heavily commented and not very pleasing to the eye but I figured this would be important for any new vim users looking for configs so they can choose what they like out of it easily.
Here are the list of plugins I use:
- https://github.com/vim-ripgrep
- https://github.com/airblade/vim-gitgutter
- https://github.com/altercation/vim-colors-solarized
- https://github.com/easymotion/vim-easymotion
- https://github.com/tpope/vim-endwise
- https://github.com/tpope/vim-fugitive
- https://github.com/tpope/vim-sensible
- https://github.com/tpope/vim-surround
- https://github.com/majutsushi/tagbar
- https://github.com/vim-airline/vim-airline
- https://github.com/vim-airline/vim-airline-themes
- https://github.com/vim-syntastic/syntastic
- https://github.com/rhysd/vim-clang-format
- https://github.com/scrooloose/nerdtree
- https://github.com/elzr/vim-json
- https://github.com/vim-ruby/vim-ruby
- https://github.com/fatih/vim-go
- https://github.com/rking/ag.vim
- https://github.com/scrooloose/nerdcommenter
- https://github.com/Yggdroot/indentLine
- https://github.com/mhinz/vim-startify
- https://github.com/craigemery/vim-autotag
- https://github.com/qpkorr/vim-bufkill
- https://github.com/junegunn/fzf
- https://github.com/junegunn/fzf.vim
- https://github.com/airblade/vim-rooter
- https://github.com/mattn/emmet-vim
- https://github.com/morhetz/gruvbox
- https://github.com/leafgarland/typescript-vim
- First test it out by cloning and running a file using this config by doing
vim -u test_vimrc
- Make a copy of your current .vimrc
- Run
cp .vimrc ~/.vimrc
Change your iterm2 settings as follows
- Change your iterm2 theme to solarized dark https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized
- Use the
11pt Inconsolata-g for Powerline font
. Get it from here: https://github.com/powerline/fonts - Change your cursor to a box with blinking on.
- Set these:
- I also usually like to set a global hotkey for iterm2 mapped to (CMD+SHIFT+I)
Here I will note down some small maybe obscure VIMtips I have come across that have helped me at some point or the other. Will update with time.
- Vim allows you to do
vim -u test_vimrc
. This allows you to run vim with said vimrc in the arguments. allowing you to quickly and nicely try out different vim settings. "+yy
yank a line to system clipboard,+p
to paste.- Copy pasting from system clipboard will not work if
echo has('clipboard') returns 0
you need to install vim and compile it with+clipboard
feature. Ctrl-k
in insert mode to insert digraphs. To find a list of digraphs do:digraphs
in normal modeCtrl-V
in insert mode followed by u to type four hexadecimal digits and get Unicode chars &#F4A9- Vim spellang: do
:setlocal spell
to switch on spell check, it will highlight all incorrectly spelled words. Go under a word and doz=
to see suggested words.]s
to move to next misspelled word after cursor.
If you are getting started with VIM, here are some great resources:
- https://learnxinyminutes.com/docs/vim/
- In your terminal:
vimtutor
- https://www.youtube.com/watch?v=wlR5gYd6um0
Credits for a lot of the configs go to the incredible open source community vim has ❤ ❤