Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 97 lines (73 sloc) 2.249 kb
36f5668a » Carl Lerche
2010-07-29 Add more awesome to the vimrc
1 set nocompatible
e65d7a28 » Carl Lerche
2010-07-29 Add a Rake task to fetch the latest version of nerdtree
2
36f5668a » Carl Lerche
2010-07-29 Add more awesome to the vimrc
3 set number
6274fd11 » Carl Lerche
2010-07-30 Tweak the vimrc
4 set ruler
36f5668a » Carl Lerche
2010-07-29 Add more awesome to the vimrc
5 syntax on
e65d7a28 » Carl Lerche
2010-07-29 Add a Rake task to fetch the latest version of nerdtree
6
36f5668a » Carl Lerche
2010-07-29 Add more awesome to the vimrc
7 " Whitespace stuff
6274fd11 » Carl Lerche
2010-07-30 Tweak the vimrc
8 set nowrap
36f5668a » Carl Lerche
2010-07-29 Add more awesome to the vimrc
9 set tabstop=2
10 set shiftwidth=2
11 set expandtab
447452ad » tmm1
2010-08-12 use better trailing character
12 set list listchars=tab:\ \ ,trail:·
36f5668a » Carl Lerche
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$', '\~$']
1d03e533 » tmm1
2010-08-13 bind <Leader>n to toggle project tree (thx @pointcom)
29 map <Leader>n :NERDTreeToggle<CR>
af1ae23c » Carl Lerche
2010-08-05 Add a binding to rerun ctags
30
48976d5b » wuputah
2010-08-14 limit commandT window to 20 lines
31 " Command-T configuration
32 let g:CommandTMaxHeight=20
33
f936138c » tmm1
2010-08-14 ZoomWin readme + <Leader>z mapping
34 " ZoomWin configuration
35 map <Leader>z :ZoomWin<CR>
36
af1ae23c » Carl Lerche
2010-08-05 Add a binding to rerun ctags
37 " CTags
38 map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
001c8f3d » wycats
2010-08-08 Update the vimrc with some settings from my old vimrc
39
1a844c8a » tmm1
2010-08-12 remember cursor position in file
40 " Remember last location in file
41 if has("autocmd")
42 au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
43 \| exe "normal g'\"" | endif
44 endif
45
43661f3f » Carl Lerche
2010-08-16 Move setting word wrapping to a function
46 function s:setupWrapping()
47 set wrap
48 set wm=2
49 set textwidth=72
50 endfunction
51
52 function s:setupMarkup()
66d66015 » tmm1
2010-08-17 fix typo causing recursive function
53 call s:setupWrapping()
43661f3f » Carl Lerche
2010-08-16 Move setting word wrapping to a function
54 map <buffer> <Leader>p :Mm <CR>
55 endfunction
56
001c8f3d » wycats
2010-08-08 Update the vimrc with some settings from my old vimrc
57 " make and python use real tabs
4dd1d06f » wycats
2010-08-10 I guess markdown comes with an ftdetect plugin
58 au FileType make set noexpandtab
59 au FileType python set noexpandtab
3585c73d » wycats
2010-08-08 Add markdown preview
60
61 " Thorfile, Rakefile and Gemfile are Ruby
8ea9fcbd » Joe Fiorini
2010-08-13 Autoset config.ru filetype to ruby
62 au BufRead,BufNewFile {Gemfile,Rakefile,Thorfile,config.ru} set ft=ruby
3585c73d » wycats
2010-08-08 Add markdown preview
63
64 " md, markdown, and mk are markdown and define buffer-local preview
43661f3f » Carl Lerche
2010-08-16 Move setting word wrapping to a function
65 au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup()
66
67 au BufRead,BufNewFile *.txt call s:setupWrapping()
001c8f3d » wycats
2010-08-08 Update the vimrc with some settings from my old vimrc
68
69 " allow backspacing over everything in insert mode
70 set backspace=indent,eol,start
71
72 " load the plugin and indent settings for the detected filetype
73 filetype plugin indent on
74
75 " Opens an edit command with the path of the currently edited file filled in
76 " Normal mode: <Leader>e
77 map <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
78
79 " Opens a tab edit command with the path of the currently edited file filled in
80 " Normal mode: <Leader>t
81 map <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
82
83 " Inserts the path of the currently edited file into a command
84 " Command mode: Ctrl+P
85 cmap <C-P> <C-R>=expand("%:p:h") . "/" <CR>
86
2ac39229 » tmm1
2010-08-12 dont highlight tabs + look for modelines
87 " Use modeline overrides
88 set modeline
89 set modelines=10
90
7286b91f » tmm1
2010-08-13 pick default colors I like for console/gui - change them in your .loc…
91 " Default color scheme
92 color desert
93
de02cb7b » tmm1
2010-08-10 load user local settings from ~/.vimrc.local
94 " Include user's local vim config
95 if filereadable(expand("~/.vimrc.local"))
96 source ~/.vimrc.local
97 endif
Something went wrong with that request. Please try again.