Skip to content
Newer
Older
100644 144 lines (117 sloc) 3.11 KB
86132be Removing old NERD_Tree
David Davis authored Apr 2, 2011
1 " no clue what this does
2 set nocompatible
3
4 " use pathogen to load plugins from .vim/bundles
5 silent! call pathogen#runtime_append_all_bundles()
6
7 " enable syntax highlighting and file type detection
8 syntax enable
9 filetype plugin indent on
10
11 " Set to auto read when a file is changed from the outside
12 set autoread
13
14 " Set map leader to , instead of \
15 let mapleader = ","
16
17 "Nerd Tree commands and options
f983a22 Removed jslint due to problems with Ack. Changed nerdtree shortcut
David Davis authored May 11, 2011
18 map <Leader>d :NERDTreeToggle<CR>
86132be Removing old NERD_Tree
David Davis authored Apr 2, 2011
19
20 "Map fuzzy file find to ff
21 "cmap <leader>ff :FufFile **/<CR>
22 "nmap <leader>t :FufFile<CR>
23 "map <C-t> :FufFile <CR>
24 "map <C-x> :FufFile <CR>
25
26 " hit ,smr to reload snippets
27 nnoremap <leader>smr <esc>:exec ReloadAllSnippets()<cr>
28 let g:snippets_dir="~/.vim/snippets"
29
30 " remove the Windows line endings (^M)
31 map <Leader>m mz:%s/\r$//g<cr>`z
32
33 " comands to edit and reload vimrc
34 nmap <silent> <leader>ev :e $MYVIMRC<CR>
35 nmap <silent> <leader>sv :so $MYVIMRC<CR>
36
37 "map command numbers to tabs
38 map <D-1> 1gt
39 map <D-2> 2gt
40 map <D-3> 3gt
41 map <D-4> 4gt
42 map <D-5> 5gt
43 map <D-6> 6gt
44 map <D-7> 7gt
45 map <D-8> 8gt
46 map <D-9> 9gt
47 map <D-0> :tablast<CR>
48
49 " Colorscheme options
50 colorscheme default
51
52 " Other Options
53 set wildmode=longest,list,full
54 set wildmenu
55 set ruler
56 set nuw=4
57 set vb
58 set binary noeol
59 set backspace=indent,eol,start
60 set laststatus=2
61 set showmode
62 set showmatch
63 set ignorecase
64 "set smartindent
65 "set incsearch
66 set ignorecase smartcase
67 set ts=2
68 set et
69 set softtabstop=2
70 set sw=2
71 set nowrap
72 set hlsearch
73 set nobackup
74 set nowritebackup
75 set noswapfile
76 set list listchars=tab:\ \ ,trail:·
77 set statusline=[%n]\ %<%.99f\ %h%w%m%r%y\ %{fugitive#statusline()}%{exists('*CapsLockStatusline')?CapsLockStatusline():''}%=%-16(\ %l,%c-%v\ %)%P
78 " rvm status
79 set statusline+=%{rvm#statusline()}
80
81 " toggle paste mode with F2
82 set pastetoggle=<F2>
83
84 " let's use ;w as a shortcut for :w
85 nnoremap ; :
86
87 " Edit the README_FOR_APP (makes :R commands work)
88 map <Leader>R :e doc/README_FOR_APP<CR>
89
90 " code folding
91 "set foldnestmax=2
92 "autocmd FileType ruby setlocal foldmethod=syntax foldlevel=1
93 "autocmd FileType css setlocal foldmethod=indent shiftwidth=2 tabstop=2
94 "autocmd FileType eruby setlocal foldmethod=indent shiftwidth=2 tabstop=2
95
96 " set .sql to mysql
97 autocmd BufRead *.sql set filetype=mysql
98 autocmd BufRead *.clj set filetype=clojure
99 autocmd BufRead *.thor set filetype=ruby
100
101 " Include user's local vim config
102 if filereadable(expand("~/.vimrc.local"))
103 source ~/.vimrc.local
104 endif
d8082db Added gist and supertab to vim plugins
David Davis authored Apr 5, 2011
105
106 " gist-vim defaults
107 if has("mac")
108 let g:gist_clip_command = 'pbcopy'
109 elseif has("unix")
110 let g:gist_clip_command = 'xclip -selection clipboard'
111 endif
112 let g:gist_detect_filetype = 1
113 let g:gist_open_browser_after_post = 1
04f1d88 Added matchit and ir_black
David Davis authored Apr 7, 2011
114
115 " syntastic warnings
116 let g:syntastic_enable_signs=1
117 let g:syntastic_quiet_warnings=1
118
119 " Unimpaired configuration
120 " Bubble single lines
121 nmap <C-Up> [e
122 nmap <C-Down> ]e
123 " Bubble multiple lines
124 vmap <C-Up> [egv
125 vmap <C-Down> ]egv
126
127 " % to bounce from do to end etc.
128 runtime! macros/matchit.vim
6d559c3 Remapped arrow keys to noop
David Davis authored Apr 8, 2011
129
130 " disable the arrow keys for now
131 noremap <Up> ""
132 noremap <Down> ""
133 noremap <Left> ""
134 noremap <Right> ""
5043718 Merged in arrow key change
David Davis authored Apr 9, 2011
135
832bf28 Added in NERD Tree commands and removed back irblack submodule
David Davis authored Apr 8, 2011
136 " turn of jslint by default
137 let g:JSLintHighlightErrorLine = 0
4d85fb3 Added gundo to vim
David Davis authored Apr 18, 2011
138
139 " gundo undo visualizer
140 nnoremap <F5> :GundoToggle<CR>
47bff68 Fixing rvm problem in vim
David Davis authored Apr 28, 2011
141
142 " this seems to fix rvm
143 set shell=/bin/sh
Something went wrong with that request. Please try again.