Limit the open function to Mac.

This commit is contained in:
Thomas Gideon 2015-04-17 17:46:35 -04:00
parent c4e839289c
commit 8a32329873

4
vimrc
View file

@ -99,6 +99,9 @@ nmap <F9> :TagbarToggle<CR>
" quickly toggle a left, vsplit for an insanely powerful file explorer " quickly toggle a left, vsplit for an insanely powerful file explorer
nmap <F8> :NERDTreeToggle<CR> nmap <F8> :NERDTreeToggle<CR>
" open is OS X only, the closest equiv in line, xdg-open, doesn't allow an
" argument for speciying a particular app
if has('gui_macvim')
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Open current file with app given " Open current file with app given
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@ -112,5 +115,6 @@ function! s:OpenWith(appname)
endfunction endfunction
command! -bar -nargs=1 OpenWith call s:OpenWith(<f-args>) command! -bar -nargs=1 OpenWith call s:OpenWith(<f-args>)
endif
colorscheme solarized colorscheme solarized