X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vimrc;h=5546bdfc2904e60543a0357d458e793572ca3f9b;hb=2c9e8b23a92508c4fe13c9b43eae6274786f5aa9;hp=19b63289e72cb20ea35bebd0771015fc71ac503c;hpb=b21d57e9dcf5334ae082213f0c423a30f16f8b3f;p=dotfiles.git diff --git a/.vimrc b/.vimrc index 19b6328..5546bdf 100644 --- a/.vimrc +++ b/.vimrc @@ -523,10 +523,12 @@ endfunction nmap \b :call ExtractOpenURL('') nmap \w :call ExtractOpenURL('-n') nmap \t :call ExtractOpenURL('-t') +nmap \p :call ExtractOpenURL('-p') " Send visual block to a browser vmap \b ""y:call OpenURL('"', '') vmap \w ""y:call OpenURL('"', '-n') vmap \t ""y:call OpenURL('"', '-t') +vmap \p ""y:call OpenURL('"', '-p') " Encode and send visual block to a browser vmap \B ""y:call EncodeOpenURL('"', '') vmap \W ""y:call EncodeOpenURL('"', '-n') @@ -856,5 +858,7 @@ if v:version >= 800 call timer_start(500, 'SetLazyRedraw') endif +autocmd VimLeave * call writefile([getcwd()], expand('~/tmp/vim/cwd')) + " This has to go to the very end of ~/.vimrc to allow reading the .vimrc set secure " safer working with script files in the current directory