From 1511c200d4fee8abd779956418e50375ac277ab9 Mon Sep 17 00:00:00 2001 From: Murukesh Mohanan Date: Tue, 20 Oct 2015 12:50:15 +0530 Subject: [PATCH] plugin update --- .vim/bundle/airline | 2 +- .vim/bundle/syntastic | 2 +- .vim/bundle/vim-fugitive | 2 +- .vim/bundle/vimtex | 2 +- .vim/ftplugin/vim.vim | 1 + .vim/vimrc | 17 ++++++++++------- 6 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 .vim/ftplugin/vim.vim diff --git a/.vim/bundle/airline b/.vim/bundle/airline index 8c30610..14d14cf 160000 --- a/.vim/bundle/airline +++ b/.vim/bundle/airline @@ -1 +1 @@ -Subproject commit 8c30610c5f60eada1d21ab23e96d45848a1e6e58 +Subproject commit 14d14cf951c08fc88ca6c3e6f28fe47b99421e23 diff --git a/.vim/bundle/syntastic b/.vim/bundle/syntastic index f57cc9e..f6eaf7e 160000 --- a/.vim/bundle/syntastic +++ b/.vim/bundle/syntastic @@ -1 +1 @@ -Subproject commit f57cc9e84d52ba1d268f880d6e004f9ff809f201 +Subproject commit f6eaf7e8b85b16a049c9985a13e8e237d906a71d diff --git a/.vim/bundle/vim-fugitive b/.vim/bundle/vim-fugitive index b5188a1..dba8a07 160000 --- a/.vim/bundle/vim-fugitive +++ b/.vim/bundle/vim-fugitive @@ -1 +1 @@ -Subproject commit b5188a1b4f9aabd1454f7b8dd621d467ca7ee3a7 +Subproject commit dba8a0705d95cda76d599bb7d09964d67741a5c5 diff --git a/.vim/bundle/vimtex b/.vim/bundle/vimtex index 6dfe45d..10348d6 160000 --- a/.vim/bundle/vimtex +++ b/.vim/bundle/vimtex @@ -1 +1 @@ -Subproject commit 6dfe45d478124e3816156cb348ff835e933b134b +Subproject commit 10348d6d4f8d4f96857c5d645732fa660c8114e7 diff --git a/.vim/ftplugin/vim.vim b/.vim/ftplugin/vim.vim new file mode 100644 index 0000000..24dd22c --- /dev/null +++ b/.vim/ftplugin/vim.vim @@ -0,0 +1 @@ +setlocal keywordprg=:help diff --git a/.vim/vimrc b/.vim/vimrc index 20a5700..6c18fb1 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -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 \" 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() +command! -nargs=? -complete=help H call s:Help2Url () 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 -- 2.24.1