Skip to content

Instantly share code, notes, and snippets.

@LoneFry
Created October 14, 2011 07:03
Show Gist options
  • Save LoneFry/1286445 to your computer and use it in GitHub Desktop.
Save LoneFry/1286445 to your computer and use it in GitHub Desktop.
My budding .vimrc
" Show line numbers
set number
" Use hard tabs, render as four spaces
set noexpandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
set autoindent
" Underline the current line, but only in the current window
set cursorline
autocmd WinEnter * setlocal cursorline
autocmd WinLeave * setlocal nocursorline
" Make use of the terminals titlebar
set title
" Keep some context in view
set scrolloff=3
" Where am I?
set ruler
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment