commit fede626d08000099a3c3e3a00dc25c5f6e61a989 Author: Damian Peterson Date: Thu Jun 30 08:39:50 2016 +1200 add .vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..8250837 --- /dev/null +++ b/.vimrc @@ -0,0 +1,100 @@ +" get out of VI's compatible mode.. +set nocompatible + +" sets how many lines of history VIM has to remember +set history=400 + +" set to auto read when a file is changed from the outside +set autoread + +" have the mouse enabled all the time: +set mouse=a + +" show cursor position +set ruler + +" the commandbar is 1 high +set cmdheight=1 + +" set backspace +set backspace=eol,start,indent + +" backspace and cursor keys wrap to +"set whichwrap+=<,>,h,l + +" ignore case when searching +set ignorecase +set incsearch + +" set magic on +set magic + +" allow highlighting search words +set hlsearch + +" tab size is 4 spaces +set ts=4 + +" indent is 4 spaces +set shiftwidth=4 + +set expandtab + +" default font +set guifont=DejaVu\ Sans\ Mono\ 9 + +" show line numbers +set number +set relativenumber + +" automatically indent on line break +set autoindent + +" automatically fold on indents +" set foldmethod=indent + +" set colors to 256 for terminal VIM +set t_Co=256 + +" dark background +set background=dark + +" nyummy wombat colours +colorscheme wombat + +" enable plugins +filetype plugin on + +" highlight syntax +syntax on + +" allow a 7-line verticle buffer for the cursor +set so=7 + +" turn backup off +set nobackup +set nowb +set noswapfile + +" auto indent +set ai + +" smart indet +set si + +" wrap lines +set wrap + +" break wrap at words +set lbr + +" clipboard for mac OSX +" set clipboard=unnamed + +"map :w !pbcopy +"map :r !pbpaste +"vmap y:call system("pbcopy", getreg("\"")) + +" show whitespace +":set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣ +":set list