Skip to content

Instantly share code, notes, and snippets.

@ptantiku
Created June 8, 2018 08:07
Show Gist options
  • Save ptantiku/de0892817a8ca7aace7c06adb944457e to your computer and use it in GitHub Desktop.
Save ptantiku/de0892817a8ca7aace7c06adb944457e to your computer and use it in GitHub Desktop.
sudo apt install vim
cat > ~/.vimrc <<END
inoremap jk <esc>
inoremap kj <esc>
nnoremap H 0
nnoremap L $
set et ts=2 sw=2 sts=2 modeline number hlsearch
END
# set bash to vim-mode
echo 'set -o vi' >> ~/.bashrc
# set default editor to vim (or vim.basic)
sudo update-alternatives --set editor /usr/bin/vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment