Commit fe09b48c authored by Murukesh Mohanan's avatar Murukesh Mohanan

windows stuff

parent c14623ce
if has("gui_running")
set guifont=Ubuntu_Mono:h13
set guioptions-=r
endif
...@@ -69,9 +69,19 @@ function! s:Help2Url (...) ...@@ -69,9 +69,19 @@ function! s:Help2Url (...)
endif endif
let l:tagfile = expand ('%:t') let l:tagfile = expand ('%:t')
let @+ = expand ('<cword>') let @+ = expand ('<cword>')
try
python import urllib python import urllib
let @+ = pyeval ('urllib.quote_plus ("' . @+ . '")') let @+ = pyeval ('urllib.quote_plus ("' . @+ . '")')
let @+ = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @+) let @+ = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @+)
catch /^Vim\%((\a\+)\)\=:E887/
try
if has('python3')
python3 import urllib.parse
let @+ = py3eval ('urllib.parse.quote ("' . @+ . '")')
let @+ = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @+)
endif
endtry
endtry
endfunction endfunction
command! -nargs=? -complete=help H call s:Help2Url (<f-args>) command! -nargs=? -complete=help H call s:Help2Url (<f-args>)
...@@ -108,7 +118,7 @@ function! YCMInstallCmd() ...@@ -108,7 +118,7 @@ function! YCMInstallCmd()
endfunction endfunction
"execute pathogen#infect() "execute pathogen#infect()
call plug#begin('~/.vim/plugged') call plug#begin()
Plug 'murukeshm/vim-manpager' Plug 'murukeshm/vim-manpager'
Plug 'vim-scripts/diffchar.vim' Plug 'vim-scripts/diffchar.vim'
...@@ -134,8 +144,10 @@ endif ...@@ -134,8 +144,10 @@ endif
Plug 'godlygeek/tabular' Plug 'godlygeek/tabular'
Plug 'vim-scripts/deb.vim' if !has('windows')
Plug 'moon-musick/vim-logrotate' Plug 'vim-scripts/deb.vim'
Plug 'moon-musick/vim-logrotate'
endif
call plug#end() call plug#end()
function! EnableYCM() function! EnableYCM()
...@@ -187,8 +199,8 @@ let g:ycm_seed_identifiers_with_syntax = 1 ...@@ -187,8 +199,8 @@ let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_python_binary_path = '/usr/bin/python3' let g:ycm_python_binary_path = '/usr/bin/python3'
if empty($MAN_PN) && @% == "" && getcwd() == "/tmp" if empty($MAN_PN) && @% == "" && getcwd() == "/tmp"
" From http://vi.stackexchange.com/questions/239/ " From http://vi.stackexchange.com/questions/239/
" with exception for reading manpages " with exception for reading manpages
try try
silent find test.* silent find test.*
catch /^Vim\%((\a\+)\)\=:E345/ catch /^Vim\%((\a\+)\)\=:E345/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment