Commit 1511c200 authored by Murukesh Mohanan's avatar Murukesh Mohanan

plugin update

parent 63683e1f
airline @ 14d14cf9
Subproject commit 8c30610c5f60eada1d21ab23e96d45848a1e6e58
Subproject commit 14d14cf951c08fc88ca6c3e6f28fe47b99421e23
syntastic @ f6eaf7e8
Subproject commit f57cc9e84d52ba1d268f880d6e004f9ff809f201
Subproject commit f6eaf7e8b85b16a049c9985a13e8e237d906a71d
vim-fugitive @ dba8a070
Subproject commit b5188a1b4f9aabd1454f7b8dd621d467ca7ee3a7
Subproject commit dba8a0705d95cda76d599bb7d09964d67741a5c5
vimtex @ 10348d6d
Subproject commit 6dfe45d478124e3816156cb348ff835e933b134b
Subproject commit 10348d6d4f8d4f96857c5d645732fa660c8114e7
setlocal keywordprg=:help
......@@ -56,8 +56,12 @@ set display+=lastline
let g:tex_flavor = "latex"
function! Help2Url (...)
exec 'silent! help ' . ( a:0 ? a:1 : '' )
function! s:Help2Url (...)
if winheight('%') < winwidth('%')
exec 'silent! vert bo help ' . ( a:0 ? a:1 : '' )
else
exec 'silent! help ' . ( a:0 ? a:1 : '' )
endif
if ! a:0
exec "normal \<c-T>"
endif
......@@ -68,7 +72,7 @@ function! Help2Url (...)
let @* = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @*)
endfunction
command! -nargs=? -complete=help H call Help2Url(<f-args>)
command! -nargs=? -complete=help H call s:Help2Url (<f-args>)
noremap ; :
noremap , ;
......@@ -97,7 +101,6 @@ highlight Visual ctermbg=black
" From http://vi.stackexchange.com/questions/258/
autocmd BufWritePre *.sh if !filereadable(expand('%')) | let b:is_new = 1 | endif
autocmd BufWritePost *.sh if get(b:, 'is_new', 0) | silent execute '!chmod +x %' | endif
autocmd FileType help wincmd L
let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabClosePreviewOnPopupClose = 1
......@@ -154,9 +157,9 @@ endif
" From http://vi.stackexchange.com/questions/2009/
function! FindInPath(name)
" Force creation of new file for paths beginning with ./
"if expand('%') =~ '^\./'
" return 0
"endif
if expand('%') =~ '^\./'
return 0
endif
let path=&path
" Add any extra directories to the normal search path
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