Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
" Created on January 25th 2013
" by Gabriel Ilie <gabriel.ilie@uconn.edu>.
" Shamelessly copied from: Vincent Driessen (github.com/nvie)
set nocompatible " I don't know what this does but everybody says to use it,
" better safe than sorry.
" Vim behaviour
set hidden " It hides buffers instead of closing them. This means that you can
" have unwritten changes to a file and open a new file using :e without
" being forced to write or undo your changes first. Also, undo buffers
" and marks are preserved while the buffer is open.
set encoding=utf-8 " dominant character encoding format
" Editing behaviour
set wrap " wrap lines
set linebreak " line breaks are inserted only when pressing the ENTER key
set tabstop=4 " a tab is four spaces
set backspace=indent,eol,start
" allows backspacing over everything in insert mode
set autoindent "
set copyindent " copy the previous indentation on autoindenting
set number " always show line number
set numberwidth=3 " numer line width
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set smarttab " insert tabs on the start of a line according to
" shiftwidth, not tabstop
set scrolloff=4 " keep 4 lines off the edges of the screen when scrolling
set virtualedit=all " allow the cursor to go in to 'invalid' places
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set history=100 " remember more commands and search history
set undolevels=1000 " use many muchos levels of undo
set nobackup " do not keep backup files, it's 70's style cluttering
set noswapfile " do not write annoying intermediate swap files,
" who did ever restore from swap files anyway?
set pastetoggle=<F2> " enter paste-mode
" Syntax highlighting
filetype plugin indent on " Vim can detect filetypes and load specific plugins,
" settings or key mappings.
syntax on " Switches syntax highlighting on.
" Key bindings
nmap <silent> ./ :nohlsearch<CR>
" clears highlighted searches
nnoremap j gj
" makes vim go to the next row instead of the next line
" (useful for line wrap)
nnoremap k gk
" makes vim go to the previous row instead of the previous line
" (useful for line wrap)
" Makes the arrow key useless (trick to force me to use h,j,k,l)
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
" Other settings
colorscheme elflord " original color scheme is called 'desert'
set laststatus=2 " always display a status line
set ruler " display coordinates in status bar
set showcmd " display unfinished commands
set showmatch " show matching bracket (briefly jump)
set showmode " display the current mode in the status bar
set scrolloff=3 " when the page starts to scroll, keep the cursor 3 lines from top/bottom
set cmdheight=2 " make command line two lines high
set title " changes the terminal's title
set noerrorbells " don't beep