Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 144 lines (109 sloc) 3.443 kB
36f5668 Add more awesome to the vimrc
Carl Lerche authored
1 set nocompatible
e65d7a2 Add a Rake task to fetch the latest version of nerdtree
Carl Lerche authored
2
36f5668 Add more awesome to the vimrc
Carl Lerche authored
3 set number
6274fd1 Tweak the vimrc
Carl Lerche authored
4 set ruler
36f5668 Add more awesome to the vimrc
Carl Lerche authored
5 syntax on
e65d7a2 Add a Rake task to fetch the latest version of nerdtree
Carl Lerche authored
6
bdb650c @tmm1 Set encoding to utf8 since we use utf8 chars in listchars and nerdtree
tmm1 authored
7 " Set encoding
8 set encoding=utf-8
9
36f5668 Add more awesome to the vimrc
Carl Lerche authored
10 " Whitespace stuff
6274fd1 Tweak the vimrc
Carl Lerche authored
11 set nowrap
36f5668 Add more awesome to the vimrc
Carl Lerche authored
12 set tabstop=2
13 set shiftwidth=2
8e84cf8 @kassens setting softtabstop to make backspace work as expected on indents
kassens authored
14 set softtabstop=2
36f5668 Add more awesome to the vimrc
Carl Lerche authored
15 set expandtab
447452a @tmm1 use better trailing character
tmm1 authored
16 set list listchars=tab:\ \ ,trail:·
36f5668 Add more awesome to the vimrc
Carl Lerche authored
17
18 " Searching
19 set hlsearch
20 set incsearch
21 set ignorecase
22 set smartcase
23
24 " Tab completion
25 set wildmode=list:longest,list:full
d53d8bd @tmm1 ignore common vendor and test files
tmm1 authored
26 set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,test/fixtures/*,vendor/gems/*
36f5668 Add more awesome to the vimrc
Carl Lerche authored
27
28 " Status bar
29 set laststatus=2
30
f3c0957 @wycats Make <Leader><Leader> trigger Zoomwin and fix an interaction bug with…
wycats authored
31 " Without setting this, ZoomWin restores windows in a way that causes
32 " equalalways behavior to be triggered the next time CommandT is used.
33 " This is likely a bludgeon to solve some other issue, but it works
34 set noequalalways
35
36f5668 Add more awesome to the vimrc
Carl Lerche authored
36 " NERDTree configuration
37 let NERDTreeIgnore=['\.rbc$', '\~$']
1d03e53 @tmm1 bind <Leader>n to toggle project tree (thx @pointcom)
tmm1 authored
38 map <Leader>n :NERDTreeToggle<CR>
af1ae23 Add a binding to rerun ctags
Carl Lerche authored
39
48976d5 @wuputah limit commandT window to 20 lines
wuputah authored
40 " Command-T configuration
41 let g:CommandTMaxHeight=20
42
f936138 @tmm1 ZoomWin readme + <Leader>z mapping
tmm1 authored
43 " ZoomWin configuration
f3c0957 @wycats Make <Leader><Leader> trigger Zoomwin and fix an interaction bug with…
wycats authored
44 map <Leader><Leader> :ZoomWin<CR>
f936138 @tmm1 ZoomWin readme + <Leader>z mapping
tmm1 authored
45
af1ae23 Add a binding to rerun ctags
Carl Lerche authored
46 " CTags
47 map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
5bf6f55 @tmm1 CTRL+\ to jump to the next tag (when CTRL+] finds duplicates)
tmm1 authored
48 map <C-\> :tnext<CR>
001c8f3 @wycats Update the vimrc with some settings from my old vimrc
wycats authored
49
1a844c8 @tmm1 remember cursor position in file
tmm1 authored
50 " Remember last location in file
51 if has("autocmd")
52 au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
53 \| exe "normal g'\"" | endif
54 endif
55
43661f3 Move setting word wrapping to a function
Carl Lerche authored
56 function s:setupWrapping()
57 set wrap
58 set wm=2
59 set textwidth=72
60 endfunction
61
62 function s:setupMarkup()
66d6601 @tmm1 fix typo causing recursive function
tmm1 authored
63 call s:setupWrapping()
43661f3 Move setting word wrapping to a function
Carl Lerche authored
64 map <buffer> <Leader>p :Mm <CR>
65 endfunction
66
61b7f37 Make python look like PEP8 says it ought to.
Thom May authored
67 " make uses real tabs
4dd1d06 @wycats I guess markdown comes with an ftdetect plugin
wycats authored
68 au FileType make set noexpandtab
3585c73 @wycats Add markdown preview
wycats authored
69
01b3156 Added Vagrantfile to the list of Ruby files
Michael D. Hall authored
70 " Thorfile, Rakefile, Vagrantfile and Gemfile are Ruby
71 au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,config.ru} set ft=ruby
3585c73 @wycats Add markdown preview
wycats authored
72
73 " md, markdown, and mk are markdown and define buffer-local preview
43661f3 Move setting word wrapping to a function
Carl Lerche authored
74 au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup()
75
76 au BufRead,BufNewFile *.txt call s:setupWrapping()
001c8f3 @wycats Update the vimrc with some settings from my old vimrc
wycats authored
77
61b7f37 Make python look like PEP8 says it ought to.
Thom May authored
78 " make python follow PEP8 ( http://www.python.org/dev/peps/pep-0008/ )
79 au FileType python set tabstop=4 textwidth=79
80
001c8f3 @wycats Update the vimrc with some settings from my old vimrc
wycats authored
81 " allow backspacing over everything in insert mode
82 set backspace=indent,eol,start
83
84 " load the plugin and indent settings for the detected filetype
85 filetype plugin indent on
86
87 " Opens an edit command with the path of the currently edited file filled in
88 " Normal mode: <Leader>e
89 map <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
90
91 " Opens a tab edit command with the path of the currently edited file filled in
92 " Normal mode: <Leader>t
93 map <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
94
95 " Inserts the path of the currently edited file into a command
96 " Command mode: Ctrl+P
97 cmap <C-P> <C-R>=expand("%:p:h") . "/" <CR>
98
572076f @tmm1 Merge remote branch 'zeedunk/add_text_bubbling'
tmm1 authored
99 " Unimpaired configuration
d2fa067 @zeedunk moved mappings out of gvimrc into vimrc
zeedunk authored
100 " Bubble single lines
101 nmap <C-Up> [e
102 nmap <C-Down> ]e
103 " Bubble multiple lines
104 vmap <C-Up> [egv
105 vmap <C-Down> ]egv
106
5231505 @tmm1 Add syntastic
tmm1 authored
107 " Enable syntastic syntax checking
108 let g:syntastic_enable_signs=1
fb45f90 @tmm1 Hide syntastic warnings by default, only show errors
tmm1 authored
109 let g:syntastic_quiet_warnings=1
5231505 @tmm1 Add syntastic
tmm1 authored
110
d51ed64 @jodell add gist-vim plugin
jodell authored
111 " gist-vim defaults
112 if has("mac")
113 let g:gist_clip_command = 'pbcopy'
114 elseif has("unix")
115 let g:gist_clip_command = 'xclip -selection clipboard'
116 endif
117 let g:gist_detect_filetype = 1
118 let g:gist_open_browser_after_post = 1
119
2ac3922 @tmm1 dont highlight tabs + look for modelines
tmm1 authored
120 " Use modeline overrides
121 set modeline
122 set modelines=10
123
7286b91 @tmm1 pick default colors I like for console/gui - change them in your .loc…
tmm1 authored
124 " Default color scheme
ba753e1 @tmm1 Switch console vim color scheme back to desert
tmm1 authored
125 color desert
7286b91 @tmm1 pick default colors I like for console/gui - change them in your .loc…
tmm1 authored
126
e1ef76f @tmm1 Comment whitespace
tmm1 authored
127 " Directories for swp files
df72779 @kasyaar added backup dir so that put all swp files into separate directory in…
kasyaar authored
128 set backupdir=~/.vim/backup
129 set directory=~/.vim/backup
6f16f92 vim not recognizing xterm
Avrohom Katz authored
130
7834c54 @tmm1 disable jsline error lines by default
tmm1 authored
131 " Turn off jslint errors by default
132 let g:JSLintHighlightErrorLine = 0
133
b84b73a @tmm1 Use mac-style shift+arrow-key behavior in macvim (closes #59)
tmm1 authored
134 " MacVIM shift+arrow-keys behavior (required in .vimrc)
135 let macvim_hig_shift_movement = 1
136
e5108f3 @sr load matchit macro for bouncing between do/end etc
sr authored
137 " % to bounce from do to end etc.
138 runtime! macros/matchit.vim
139
6cfb50c @tmm1 Remove forced term setting, and make sure vimrc.local is loaded last
tmm1 authored
140 " Include user's local vim config
141 if filereadable(expand("~/.vimrc.local"))
142 source ~/.vimrc.local
143 endif
Something went wrong with that request. Please try again.