Cheat Logo

Cheat Sheet

.vimrc

Level: Intermediate
OS:
  • Windows
  • OS X
  • Linux
  • BSD
  • Solaris
Programs:
  • vim

A custom .vimrc file can save lots of time and make editing easier. Put the following commands in ~/.vimrc:

set nohlsearch 
set autoindent
set tabstop=4
set shiftwidth=4
set ruler
set showcmd
syntax on
set bg=dark
set spell " enables live spell checking
nnoremap <up> gk
nnoremap <down> gj
inoremap <up> <C-o>gk
inoremap <down> <C-o>gj
©2015 Schutt Design (Luke & Noel Schutt).
Contact us using one of our first names at schuttdesign dot net.