Created
October 14, 2011 07:03
-
-
Save LoneFry/1286445 to your computer and use it in GitHub Desktop.
My budding .vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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