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>')
python import urllib try
let @+ = pyeval ('urllib.quote_plus ("' . @+ . '")') python import urllib
let @+ = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @+) let @+ = pyeval ('urllib.quote_plus ("' . @+ . '")')
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,22 +118,22 @@ function! YCMInstallCmd() ...@@ -108,22 +118,22 @@ 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'
Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdtree'
Plug 'ervandew/supertab' Plug 'ervandew/supertab'
Plug 'scrooloose/syntastic' Plug 'scrooloose/syntastic'
Plug 'dag/vim2hs', {'for': 'hs'} Plug 'dag/vim2hs', {'for': 'hs'}
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'bling/vim-airline' Plug 'bling/vim-airline'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'lervag/vimtex', {'for': 'tex'} Plug 'lervag/vimtex', {'for': 'tex'}
Plug 'tomasr/molokai' Plug 'tomasr/molokai'
Plug 'ctrlpvim/ctrlp.vim' Plug 'ctrlpvim/ctrlp.vim'
Plug 'gabrielelana/vim-markdown', {'for': 'markdown'} Plug 'gabrielelana/vim-markdown', {'for': 'markdown'}
Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'js']} Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'js']}
Plug 'fatih/vim-go', {'for': 'go'} Plug 'fatih/vim-go', {'for': 'go'}
if executable('cmake') if executable('cmake')
...@@ -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()
...@@ -173,9 +185,9 @@ let g:vimtex_view_general_options_latexmk = '--unique' ...@@ -173,9 +185,9 @@ let g:vimtex_view_general_options_latexmk = '--unique'
let g:vimtex_latexmk_options ='-xelatex -synctex=1' let g:vimtex_latexmk_options ='-xelatex -synctex=1'
let g:airline#extensions#tabline#enabled = 0 let g:airline#extensions#tabline#enabled = 0
let g:ctrlp_prompt_mappings = { let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': ['<c-t>'], \ 'AcceptSelection("e")': ['<c-t>'],
\ 'AcceptSelection("t")': ['<cr>', '<2-LeftMouse>'], \ 'AcceptSelection("t")': ['<cr>', '<2-LeftMouse>'],
\ } \ }
let g:ctrlp_max_depth = 40 let g:ctrlp_max_depth = 40
let g:ctrlp_max_files = 10000 let g:ctrlp_max_files = 10000
let g:DiffColors = 100 let g:DiffColors = 100
...@@ -187,9 +199,9 @@ let g:ycm_seed_identifiers_with_syntax = 1 ...@@ -187,9 +199,9 @@ 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/
silent edit test.sh silent edit test.sh
...@@ -200,7 +212,7 @@ endif ...@@ -200,7 +212,7 @@ endif
function! FindInPath(name) function! FindInPath(name)
" Force creation of new file for paths beginning with ./ " Force creation of new file for paths beginning with ./
if expand('%') !~ '^[.~]\?/' if expand('%') !~ '^[.~]\?/'
try try
let path=&path let path=&path
" Add any extra directories to the normal search path " Add any extra directories to the normal search path
set path+=~,~/.vim,/etc set path+=~,~/.vim,/etc
......
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