Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 143 lines (108 sloc) 3.422 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>
001c8f3 @wycats Update the vimrc with some settings from my old vimrc
wycats authored
48
1a844c8 @tmm1 remember cursor position in file
tmm1 authored
49 " Remember last location in file
50 if has("autocmd")
51 au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
52 \| exe "normal g'\"" | endif
53 endif
54
43661f3 Move setting word wrapping to a function
Carl Lerche authored
55 function s:setupWrapping()
56 set wrap
57 set wm=2
58 set textwidth=72
59 endfunction
60
61 function s:setupMarkup()
66d6601 @tmm1 fix typo causing recursive function
tmm1 authored
62 call s:setupWrapping()
43661f3 Move setting word wrapping to a function
Carl Lerche authored
63 map <buffer> <Leader>p :Mm <CR>
64 endfunction
65
61b7f37 Make python look like PEP8 says it ought to.
Thom May authored
66 " make uses real tabs
4dd1d06 @wycats I guess markdown comes with an ftdetect plugin
wycats authored
67 au FileType make set noexpandtab
3585c73 @wycats Add markdown preview
wycats authored
68
01b3156 Added Vagrantfile to the list of Ruby files
Michael D. Hall authored
69 " Thorfile, Rakefile, Vagrantfile and Gemfile are Ruby
70 au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,config.ru} set ft=ruby
3585c73 @wycats Add markdown preview
wycats authored
71
72 " md, markdown, and mk are markdown and define buffer-local preview
43661f3 Move setting word wrapping to a function
Carl Lerche authored
73 au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup()
74
75 au BufRead,BufNewFile *.txt call s:setupWrapping()
001c8f3 @wycats Update the vimrc with some settings from my old vimrc
wycats authored
76
61b7f37 Make python look like PEP8 says it ought to.
Thom May authored
77 " make python follow PEP8 ( http://www.python.org/dev/peps/pep-0008/ )
78 au FileType python set tabstop=4 textwidth=79
79
001c8f3 @wycats Update the vimrc with some settings from my old vimrc
wycats authored
80 " allow backspacing over everything in insert mode
81 set backspace=indent,eol,start
82
83 " load the plugin and indent settings for the detected filetype
84 filetype plugin indent on
85
86 " Opens an edit command with the path of the currently edited file filled in
87 " Normal mode: <Leader>e
88 map <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
89
90 " Opens a tab edit command with the path of the currently edited file filled in
91 " Normal mode: <Leader>t
92 map <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
93
94 " Inserts the path of the currently edited file into a command
95 " Command mode: Ctrl+P
96 cmap <C-P> <C-R>=expand("%:p:h") . "/" <CR>
97
572076f @tmm1 Merge remote branch 'zeedunk/add_text_bubbling'
tmm1 authored
98 " Unimpaired configuration
d2fa067 @zeedunk moved mappings out of gvimrc into vimrc
zeedunk authored
99 " Bubble single lines
100 nmap <C-Up> [e
101 nmap <C-Down> ]e
102 " Bubble multiple lines
103 vmap <C-Up> [egv
104 vmap <C-Down> ]egv
105
5231505 @tmm1 Add syntastic
tmm1 authored
106 " Enable syntastic syntax checking
107 let g:syntastic_enable_signs=1
fb45f90 @tmm1 Hide syntastic warnings by default, only show errors
tmm1 authored
108 let g:syntastic_quiet_warnings=1
5231505 @tmm1 Add syntastic
tmm1 authored
109
d51ed64 @jodell add gist-vim plugin
jodell authored
110 " gist-vim defaults
111 if has("mac")
112 let g:gist_clip_command = 'pbcopy'
113 elseif has("unix")
114 let g:gist_clip_command = 'xclip -selection clipboard'
115 endif
116 let g:gist_detect_filetype = 1
117 let g:gist_open_browser_after_post = 1
118
2ac3922 @tmm1 dont highlight tabs + look for modelines
tmm1 authored
119 " Use modeline overrides
120 set modeline
121 set modelines=10
122
7286b91 @tmm1 pick default colors I like for console/gui - change them in your .loc…
tmm1 authored
123 " Default color scheme
ba753e1 @tmm1 Switch console vim color scheme back to desert
tmm1 authored
124 color desert
7286b91 @tmm1 pick default colors I like for console/gui - change them in your .loc…
tmm1 authored
125
e1ef76f @tmm1 Comment whitespace
tmm1 authored
126 " Directories for swp files
df72779 @kasyaar added backup dir so that put all swp files into separate directory in…
kasyaar authored
127 set backupdir=~/.vim/backup
128 set directory=~/.vim/backup
6f16f92 vim not recognizing xterm
Avrohom Katz authored
129
7834c54 @tmm1 disable jsline error lines by default
tmm1 authored
130 " Turn off jslint errors by default
131 let g:JSLintHighlightErrorLine = 0
132
b84b73a @tmm1 Use mac-style shift+arrow-key behavior in macvim (closes #59)
tmm1 authored
133 " MacVIM shift+arrow-keys behavior (required in .vimrc)
134 let macvim_hig_shift_movement = 1
135
e5108f3 @sr load matchit macro for bouncing between do/end etc
sr authored
136 " % to bounce from do to end etc.
137 runtime! macros/matchit.vim
138
6cfb50c @tmm1 Remove forced term setting, and make sure vimrc.local is loaded last
tmm1 authored
139 " Include user's local vim config
140 if filereadable(expand("~/.vimrc.local"))
141 source ~/.vimrc.local
142 endif
Something went wrong with that request. Please try again.