Mon, 02 Jun 2014 02:16:06 -0400
mintty: don't scroll on pgup/dn w/o modifiers
1 | 1 | set nocompatible |
2 | ||
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
3 | let on_windows=0 |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
4 | if has('win32') || has('win64') |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
5 | " vim in cygwin has win32 = 0 and win32unix = 1 |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
6 | let on_windows=1 |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
7 | end |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
8 | |
1 | 9 | |
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
10 | " >> Setting up Vundle - the vim plugin bundler |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
11 | let installed_vundle=0 |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
12 | |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
13 | if on_windows == 0 |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
14 | let vundle_readme=expand('~/.vim/bundle/vundle/README.md') |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
15 | else |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
16 | let vundle_readme=expand('~/vimfiles/bundle/vundle/README.md') |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
17 | endif |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
18 | |
1 | 19 | if !filereadable(vundle_readme) |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
20 | if !executable('git') |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
21 | echo "You probably want git installed and in PATH" |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
22 | quit |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
23 | endif |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
24 | |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
25 | let installed_vundle=1 |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
26 | if on_windows == 0 |
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
27 | echo "Installing Vundle..." |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
28 | echo "" |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
29 | silent !mkdir -p ~/.vim/bundle |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
30 | silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
31 | else |
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
32 | echo "Installing Vundle and Plugins..." |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
33 | " This happens in a series of minimized cmd windows rather than the cool |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
34 | " progress display we normally get. |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
35 | |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
36 | " Also windows is weird about args and quoting: |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
37 | silent execute '!mkdir "'. $HOME .'\vimfiles\bundle"' |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
38 | silent execute '!git clone https://github.com/gmarik/vundle "'. $HOME .'\vimfiles\bundle\vundle"' |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
39 | endif |
1 | 40 | endif |
41 | ||
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
42 | if on_windows == 0 |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
43 | set rtp+=~/.vim/bundle/vundle/ |
12
3e475410324b
Another windows fix, guess rc isn't just a api change
Meredith Howard <mhoward@roomag.org>
parents:
11
diff
changeset
|
44 | call vundle#rc() |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
45 | else |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
46 | set rtp+=~/vimfiles/bundle/vundle/ |
12
3e475410324b
Another windows fix, guess rc isn't just a api change
Meredith Howard <mhoward@roomag.org>
parents:
11
diff
changeset
|
47 | call vundle#rc('~/vimfiles/bundle') |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
48 | endif |
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
49 | |
1 | 50 | Plugin 'gmarik/vundle' |
51 | ||
52 | Plugin 'altercation/vim-colors-solarized' | |
53 | Plugin 'bling/vim-airline' | |
54 | ||
55 | Plugin 'Shougo/vimproc.vim' | |
56 | Plugin 'Shougo/unite.vim' | |
57 | Plugin 'Shougo/vimshell.vim' | |
58 | Plugin 'sjl/gundo.vim' | |
59 | Plugin 'majutsushi/tagbar' | |
60 | Plugin 'godlygeek/tabular' | |
61 | Plugin 'tomtom/tcomment_vim' | |
62 | ||
63 | Plugin 'danchoi/ri.vim' | |
64 | Plugin 'tpope/vim-fugitive' | |
65 | Plugin 'ludovicchabant/vim-lawrencium' | |
66 | ||
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
67 | if installed_vundle == 1 |
1 | 68 | echo "Installing Plugins, please ignore key map error messages" |
69 | echo "" | |
70 | :PluginInstall | |
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
71 | if on_windows == 1 |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
72 | " Windows build just isn't there with exec $0, so we already |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
73 | " have some odd errors and get a weird UI at the end. |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
74 | echo "Please restart vim to continue with plugins installed." |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
75 | quit |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
76 | endif |
1 | 77 | endif |
78 | " Setting up Vundle - the vim plugin bundler end | |
79 | ||
80 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
81 | " >> F-key maps, mostly plugin stuff |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
82 | nmap <silent> <F1> :Unite buffer<CR> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
83 | nmap <silent> <F2> :Unite file<CR> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
84 | nmap <silent> <F3> :VimShell<CR> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
85 | map <silent> <F4> :noh<CR> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
86 | nmap <silent> <F5> :GundoToggle<CR> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
87 | nmap <silent> <F8> :TagbarToggle<CR> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
88 | |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
89 | " This is supposed to get a CtrlP workalike with fuzzy match |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
90 | " but i need to fix ignores and always chdir to a good place |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
91 | if on_windows == 1 |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
92 | nmap <silent> <S-F2> :Unite -start-insert file_rec:!<CR> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
93 | else |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
94 | nmap <silent> <S-F2> :Unite -start-insert file_rec/async:!<CR> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
95 | endif |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
96 | |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
97 | " F-n keys call out to normal mode from insert mode |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
98 | imap <F1> <C-O><F1> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
99 | imap <F2> <C-O><F2> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
100 | "imap <F3> <C-O><F3> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
101 | imap <F4> <C-O><F4> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
102 | imap <F5> <C-O><F5> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
103 | "imap <F6> <C-O><F6> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
104 | "imap <F7> <C-O><F7> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
105 | imap <F8> <C-O><F8> |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
106 | |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
107 | |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
108 | " >> General settings |
1 | 109 | syntax on |
110 | filetype plugin indent on | |
111 | ||
112 | set enc=utf-8 | |
113 | ||
114 | set hlsearch | |
115 | set ic smartcase | |
116 | ||
117 | set lcs=tab:→·,trail:· | |
118 | ||
119 | set ve=block | |
120 | ||
121 | set autoindent | |
122 | set expandtab | |
123 | set shiftwidth=2 | |
124 | set softtabstop=2 | |
125 | " vim: enc=utf-8 et sts=2 sw=2 | |
126 | ||
127 | set backspace=indent,eol,start | |
128 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
129 | "set nu |
1 | 130 | set scrolloff=2 |
131 | set ruler | |
132 | set showcmd | |
133 | set wildmenu | |
134 | ||
135 | " Don't assume to scan includes when autocompleting | |
136 | set cpt-=i | |
137 | ||
138 | " Never open with folds collapsed | |
139 | set nofoldenable | |
140 | ||
141 | set lbr | |
142 | set sbr=»\ | |
143 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
144 | " Superseded by vim-airline |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
145 | "set statusline=%f%m%r%h%w\ %y\ %=%l,%c\ %p%%\ %L |
14 | 146 | set laststatus=2 |
1 | 147 | |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
148 | if on_windows == 1 |
1 | 149 | let $MYVIM=$HOME.'/vimfiles' |
150 | ||
151 | if !filewritable( $MYVIM . '/var' ) | |
152 | silent execute '!mkdir "'.$HOME.'\vimfiles\var"' | |
153 | endif | |
154 | if !filewritable( $MYVIM. '/var/backup' ) | |
155 | silent execute '!mkdir "'.$HOME.'\vimfiles\var\backup"' | |
156 | endif | |
157 | if !filewritable( $MYVIM . '/var/tmp' ) | |
158 | silent execute '!mkdir "'.$HOME.'\vimfiles\var\tmp"' | |
159 | endif | |
160 | if !filewritable( $MYVIM . '/var/undo' ) | |
161 | silent execute '!mkdir "'.$HOME.'\vimfiles\var\undo"' | |
162 | endif | |
163 | ||
164 | set guifont=Consolas:h11 | |
165 | set guioptions-=t | |
166 | else | |
167 | let $MYVIM=$HOME.'/.vim' | |
168 | ||
169 | if !filewritable( $MYVIM . '/var/backup' ) | |
170 | silent execute '!mkdir -p "'.$MYVIM.'/var/backup"' | |
171 | endif | |
172 | if !filewritable( $MYVIM . '/var/tmp' ) | |
173 | silent execute '!mkdir "'.$MYVIM.'/var/tmp"' | |
174 | endif | |
175 | if !filewritable( $MYVIM . '/var/undo' ) | |
176 | silent execute '!mkdir "'.$MYVIM.'/var/undo"' | |
177 | endif | |
178 | ||
179 | set guifont=Droid\ Sans\ Mono\ Slashed\ 10 | |
180 | endif | |
181 | ||
182 | set backupdir=$MYVIM/var/backup//,. | |
183 | set directory=$MYVIM/var/tmp//,. | |
184 | ||
185 | set backup | |
186 | set autowrite | |
187 | ||
188 | if has('persistent_undo') | |
189 | set undofile | |
190 | set undodir=$MYVIM/var/undo//,. | |
191 | end | |
192 | ||
193 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
194 | " >> File type-specific settings |
1 | 195 | autocmd FileType text setlocal textwidth=78 |
196 | ||
197 | function! PerlSettings () | |
198 | setlocal keywordprg=perldoc\ -f | |
199 | setlocal makeprg=perl\ -c\ %\ $* | |
200 | setlocal errorformat=%m\ at\ %f\ line\ %l | |
201 | endfunction | |
202 | ||
203 | autocmd FileType perl call PerlSettings() | |
204 | ||
205 | " preload templates into new buffers by file extension | |
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
206 | "autocmd BuffNewFile * silent! 0r $MYVIM/templates/%:e.template |
1 | 207 | |
208 | " strip trailing whitespace on save | |
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
209 | "autocmd BufWritePre * :%s/\s+$//e |
1 | 210 | |
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
211 | " perl fold scanning is slow |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
212 | "let perl_fold = 1 |
1 | 213 | let perl_include_pod = 1 |
214 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
215 | |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
216 | " >> Plugin settings |
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
217 | " > Gundo |
1 | 218 | " I prefer python3 on windows if I have to use it. |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
219 | if on_windows == 1 |
1 | 220 | let g:gundo_prefer_python3=1 |
221 | endif | |
222 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
223 | " > Tagbar |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
224 | if on_windows == 1 |
1 | 225 | let g:tagbar_ctags_bin = 'C:\Users\mhoward\bin\ctags.exe' |
226 | endif | |
227 | ||
228 | let g:tagbar_autoclose = 1 | |
229 | let g:tagbar_autofocus = 1 | |
230 | let g:tagbar_compact = 1 | |
231 | ||
232 | let g:tagbar_type_perl = { | |
233 | \ 'kinds' : [ | |
234 | \ 'p:packages:1:0', | |
235 | \ 'e:extends', | |
236 | \ 'r:roles', | |
237 | \ 'c:constants:0:0', | |
238 | \ 'f:formats:0:0', | |
239 | \ 'a:attributes', | |
240 | \ 's:subroutines', | |
241 | \ 'l:labels', | |
242 | \ ], | |
243 | \ 'deffile' : '$MYVIM/ctags/perl.cnf' | |
244 | \ } | |
245 | ||
246 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
247 | " > Unite |
1 | 248 | call unite#filters#matcher_default#use(['matcher_fuzzy']) |
249 | call unite#filters#sorter_default#use(['sorter_rank']) | |
250 | let g:unite_source_history_yank_enable = 1 | |
251 | ||
252 | if executable('ag') | |
253 | let g:unite_source_grep_command = 'ag' | |
254 | let g:unite_source_grep_default_opts = '--nogroup --nocolor --column' | |
255 | let g:unite_source_grep_recursive_opt = '' | |
256 | endif | |
257 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
258 | " > Airline |
1 | 259 | let g:airline#extensions#whitespace#enabled = 0 |
260 | ||
261 | ||
13
c061abf8217c
Be more defensive on windows, clean up and add sections
Meredith Howard <mhoward@roomag.org>
parents:
12
diff
changeset
|
262 | " >> Local stuff, finish up |
1 | 263 | try |
10
e753144057b8
Windows-compatible vimrc
Meredith Howard <mhoward@roomag.org>
parents:
7
diff
changeset
|
264 | if on_windows == 1 |
1 | 265 | source ~/_vimrc.local |
266 | else | |
267 | source ~/.vimrc.local | |
268 | endif | |
269 | catch | |
270 | endtry | |
271 | ||
7
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
272 | if has('gui_running') |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
273 | set nu |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
274 | set bg=dark |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
275 | |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
276 | set columns=120 lines=40 |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
277 | |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
278 | colorscheme solarized |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
279 | else |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
280 | if &t_Co == 256 |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
281 | colorscheme jellybeans |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
282 | end |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
283 | end |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
284 | |
7e6e6ff35c4d
try to normalize my colorschemes more, vimrc.local can cover $TERM weirdness
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
285 |