@@ -67,15 +67,15 @@ if has("gui_running")
67
67
set columns = 115
68
68
else
69
69
let g: CSApprox_loaded = 0
70
+ colorscheme desert
70
71
endif
71
72
72
- colorscheme railscasts
73
73
74
74
if $COLORTERM == ' gnome-terminal'
75
75
set term = gnome- 256 color
76
- colorscheme railscasts
76
+ colorscheme desert
77
77
else
78
- colorscheme default
78
+ colorscheme desert
79
79
endif
80
80
81
81
syntax on " Enable syntax highlighting
@@ -101,7 +101,6 @@ inoremap <C-L> <C-O>:nohls<CR>
101
101
nnoremap <C-B> :BufExplorer<cr>
102
102
103
103
" map to fuzzy finder text mate stylez
104
- " nnoremap <c-f> :FuzzyFinderMruFile<CR>
105
104
nnoremap <c-f> :FuzzyFinderTextMate<CR>
106
105
107
106
" map Q to something useful
@@ -178,7 +177,7 @@ set laststatus=2 " Always show status line.
178
177
179
178
" gvim specific
180
179
set mousehide " Hide mouse after chars typed
181
- set mouse = a " Mouse in all modes
180
+ " set mouse=a " Mouse in all modes
182
181
183
182
" visual search mappings
184
183
function ! s: VSetSearch ()
@@ -261,9 +260,6 @@ vnoremap <C-D> <LT>
261
260
" CTRL-Z undoes even in visual/selection mode
262
261
vnoremap <C-Z> <C-C>
263
262
264
- " Copy selected lines to the system clipboard
265
- vmap <C-c> y: call system("xclip -i -selection clipboard", getreg("\""))<CR>
266
-
267
263
" Run Rspec for the current spec file
268
264
function ! RunRspec ()
269
265
ruby << EOF
@@ -276,10 +272,17 @@ EOF
276
272
endfunction
277
273
map <F7> :call RunRspec()<cr>
278
274
279
- " Open the Ruby ApiDock page for the word under cursor, in a new Firefox tab
280
275
let g: browser = ' firefox -new-tab '
276
+ " Open the Ruby ApiDock page for the word under cursor, in a new Firefox tab
281
277
function ! OpenRubyDoc (keyword )
282
278
let url = ' http://apidock.com/ruby/' .a: keyword
283
279
exec ' !' .g: browser .' ' .url.' &'
284
280
endfunction
285
281
noremap RB :call OpenRubyDoc(expand('<cword> '))<CR>
282
+
283
+ " Open the Rails ApiDock page for the word under cursos, in a new Firefox tab
284
+ function ! OpenRailsDoc (keyword )
285
+ let url = ' http://apidock.com/rails/' .a: keyword
286
+ exec ' !' .g: browser .' ' .url.' &'
287
+ endfunction
288
+ noremap RR :call OpenRailsDoc(expand('<cword> '))<CR>
0 commit comments