Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 78 lines (58 sloc) 1.907 kb
36f5668a »
2010-07-29 Add more awesome to the vimrc
1 set nocompatible
e65d7a28 »
2010-07-29 Add a Rake task to fetch the latest version of nerdtree
2
36f5668a »
2010-07-29 Add more awesome to the vimrc
3 set number
6274fd11 »
2010-07-30 Tweak the vimrc
4 set ruler
36f5668a »
2010-07-29 Add more awesome to the vimrc
5 syntax on
e65d7a28 »
2010-07-29 Add a Rake task to fetch the latest version of nerdtree
6
36f5668a »
2010-07-29 Add more awesome to the vimrc
7 " Whitespace stuff
6274fd11 »
2010-07-30 Tweak the vimrc
8 set nowrap
36f5668a »
2010-07-29 Add more awesome to the vimrc
9 set tabstop=2
10 set shiftwidth=2
11 set expandtab
447452ad »
2010-08-12 use better trailing character
12 set list listchars=tab:\ \ ,trail:·
36f5668a »
2010-07-29 Add more awesome to the vimrc
13
14 " Searching
15 set hlsearch
16 set incsearch
17 set ignorecase
18 set smartcase
19
20 " Tab completion
21 set wildmode=list:longest,list:full
22 set wildignore+=*.o,*.obj,.git,*.rbc
23
24 " Status bar
25 set laststatus=2
26
27 " NERDTree configuration
28 let NERDTreeIgnore=['\.rbc$', '\~$']
af1ae23c »
2010-08-05 Add a binding to rerun ctags
29
48976d5b »
2010-08-14 limit commandT window to 20 lines
30 " Command-T configuration
31 let g:CommandTMaxHeight=20
32
af1ae23c »
2010-08-05 Add a binding to rerun ctags
33 " CTags
34 map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
001c8f3d »
2010-08-08 Update the vimrc with some settings from my old vimrc
35
1a844c8a »
2010-08-12 remember cursor position in file
36 " Remember last location in file
37 if has("autocmd")
38 au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
39 \| exe "normal g'\"" | endif
40 endif
41
001c8f3d »
2010-08-08 Update the vimrc with some settings from my old vimrc
42 " make and python use real tabs
4dd1d06f »
2010-08-10 I guess markdown comes with an ftdetect plugin
43 au FileType make set noexpandtab
44 au FileType python set noexpandtab
3585c73d »
2010-08-08 Add markdown preview
45
46 " Thorfile, Rakefile and Gemfile are Ruby
8ea9fcbd »
2010-08-13 Autoset config.ru filetype to ruby
47 au BufRead,BufNewFile {Gemfile,Rakefile,Thorfile,config.ru} set ft=ruby
3585c73d »
2010-08-08 Add markdown preview
48
49 " md, markdown, and mk are markdown and define buffer-local preview
4dd1d06f »
2010-08-10 I guess markdown comes with an ftdetect plugin
50 au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} map <buffer> <Leader>p :Mm <CR>
001c8f3d »
2010-08-08 Update the vimrc with some settings from my old vimrc
51
52 " allow backspacing over everything in insert mode
53 set backspace=indent,eol,start
54
55 " load the plugin and indent settings for the detected filetype
56 filetype plugin indent on
57
58 " Opens an edit command with the path of the currently edited file filled in
59 " Normal mode: <Leader>e
60 map <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
61
62 " Opens a tab edit command with the path of the currently edited file filled in
63 " Normal mode: <Leader>t
64 map <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
65
66 " Inserts the path of the currently edited file into a command
67 " Command mode: Ctrl+P
68 cmap <C-P> <C-R>=expand("%:p:h") . "/" <CR>
69
2ac39229 »
2010-08-12 dont highlight tabs + look for modelines
70 " Use modeline overrides
71 set modeline
72 set modelines=10
73
de02cb7b »
2010-08-10 load user local settings from ~/.vimrc.local
74 " Include user's local vim config
75 if filereadable(expand("~/.vimrc.local"))
76 source ~/.vimrc.local
77 endif
Something went wrong with that request. Please try again.