Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (50 sloc) 1.919 kb
938332f Graham Ashton Initial commit.
authored
1 set nocompatible
2
3 silent! call pathogen#runtime_append_all_bundles()
4
5 set tabstop=8 " default size of a real tab stop
6 set softtabstop=2 " pressing tab/backspaces inserts/removes 2 chars
7 set shiftwidth=2 " the number of spaces used by << and >>
8 set expandtab " insert spaces instead of tabs
d6a3857 Graham Ashton Added colour schemes from PeepCode screencast.
authored
9 set textwidth=72 " right margin to use when wrapping text
938332f Graham Ashton Initial commit.
authored
10
11 set autoindent
12 set nowrap " disable line wrapping
13 " set hlsearch " incremental highlighting
14 set incsearch " show search matches as you type
15
16 set hidden " open multiple files in one 'window'
17 set number " show line numbers
18 set laststatus=2 " always show status bar
19 set ruler " display the ruler at the bottom of the window
20 set wildmenu " nice tab completion just above the status bar
21
22 " colorscheme desert
23 " colorscheme ir_black
24 colorscheme railscasts
d6a3857 Graham Ashton Added colour schemes from PeepCode screencast.
authored
25 " colorscheme topfunky-light
938332f Graham Ashton Initial commit.
authored
26 " colorscheme vibrantink
d6a3857 Graham Ashton Added colour schemes from PeepCode screencast.
authored
27 " colorscheme vividchalk
938332f Graham Ashton Initial commit.
authored
28
29 """ Make it easy to modify vim settings on the fly.
30 ""
31 " From http://vimcasts.org/episodes/updating-your-vimrc-file-on-the-fly/
32
33 " Automatically source the config file on save.
34 if has("autocmd")
35 autocmd BufWritePost .vimrc source $MYVIMRC
36 endif
37
38 " Quickly open the vim config file in a new tab.
39 let mapleader = ","
40 nmap <leader>v :tabedit $MYVIMRC<CR>
41
42 """ Useful for running vi within irb
43 ""
44 " From http://vimcasts.org/episodes/running-vim-within-irb/
45
46 if has("autocmd")
47 filetype plugin indent on " enable filetype detection
48
49 " Restore cursor position
50 "autocmd BufReadPost *
51 " \ if line("'\"") > 1 && line("'\"") <= line("$") |
52 " \ exe "normal! g`\"" |
53 " \ endif
54 endif
55 if &t_Co > 2 || has("gui_running")
56 syntax on
57 endif
58
59 """ Ruby
60 ""
61 " From the PeepCode Smashing Into Vim II video
62 autocmd BufNewFile,BufRead *_spec.rb compiler rspec
Something went wrong with that request. Please try again.