Skip to content

Instantly share code, notes, and snippets.

@Lytol
Last active December 14, 2015 02:39
Show Gist options
  • Save Lytol/5015688 to your computer and use it in GitHub Desktop.
Save Lytol/5015688 to your computer and use it in GitHub Desktop.
Beginner's Guide to Vim

A Beginner's Guide to Vim

Installing Vim

Download the appropriate version for your OS at http://www.vim.org/download.php

vimtutor

This should absolutely, without any doubt, be the first place you start. Simply your Terminal and type vimtutor and follow the directions. Don't move on until you complete this.

Disable arrow keys

One of the worst habits you can develop when trying to learn Vim is using the arrow keys for navigation. DO NOT DO THIS. To help assist you in NOT DOING THIS, add the following to your ~/.vimrc (this is your main Vim configuration file).

" Disable arrow keys (except in command line)
noremap  <Up> ""
inoremap <Up> <Esc>
noremap  <Down> ""
inoremap <Down> <Esc>
noremap  <Left> ""
inoremap <Left> <Esc>
noremap  <Right> ""
inoremap <Right> <Esc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment