Commit 1d920e66 authored by Murukesh Mohanan's avatar Murukesh Mohanan

plugin update

parent 3916dfff
Subproject commit 8c30610c5f60eada1d21ab23e96d45848a1e6e58 Subproject commit 14d14cf951c08fc88ca6c3e6f28fe47b99421e23
Subproject commit f57cc9e84d52ba1d268f880d6e004f9ff809f201 Subproject commit f6eaf7e8b85b16a049c9985a13e8e237d906a71d
Subproject commit b5188a1b4f9aabd1454f7b8dd621d467ca7ee3a7 Subproject commit dba8a0705d95cda76d599bb7d09964d67741a5c5
Subproject commit 6dfe45d478124e3816156cb348ff835e933b134b Subproject commit 10348d6d4f8d4f96857c5d645732fa660c8114e7
setlocal keywordprg=:help
...@@ -56,8 +56,12 @@ set display+=lastline ...@@ -56,8 +56,12 @@ set display+=lastline
let g:tex_flavor = "latex" let g:tex_flavor = "latex"
function! Help2Url (...) function! s:Help2Url (...)
if winheight('%') < winwidth('%')
exec 'silent! vert bo help ' . ( a:0 ? a:1 : '' )
else
exec 'silent! help ' . ( a:0 ? a:1 : '' ) exec 'silent! help ' . ( a:0 ? a:1 : '' )
endif
if ! a:0 if ! a:0
exec "normal \<c-T>" exec "normal \<c-T>"
endif endif
...@@ -68,7 +72,7 @@ function! Help2Url (...) ...@@ -68,7 +72,7 @@ function! Help2Url (...)
let @* = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @*) let @* = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @*)
endfunction endfunction
command! -nargs=? -complete=help H call Help2Url(<f-args>) command! -nargs=? -complete=help H call s:Help2Url (<f-args>)
noremap ; : noremap ; :
noremap , ; noremap , ;
...@@ -97,7 +101,6 @@ highlight Visual ctermbg=black ...@@ -97,7 +101,6 @@ highlight Visual ctermbg=black
" From http://vi.stackexchange.com/questions/258/ " From http://vi.stackexchange.com/questions/258/
autocmd BufWritePre *.sh if !filereadable(expand('%')) | let b:is_new = 1 | endif 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 BufWritePost *.sh if get(b:, 'is_new', 0) | silent execute '!chmod +x %' | endif
autocmd FileType help wincmd L
let g:SuperTabDefaultCompletionType = "context" let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabClosePreviewOnPopupClose = 1 let g:SuperTabClosePreviewOnPopupClose = 1
...@@ -154,9 +157,9 @@ endif ...@@ -154,9 +157,9 @@ endif
" From http://vi.stackexchange.com/questions/2009/ " From http://vi.stackexchange.com/questions/2009/
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('%') =~ '^\./'
" return 0 return 0
"endif endif
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