]> git.phdru.name Git - dotfiles.git/blobdiff - .vimrc
.fvwmrc: Open remote hosts' terms on startup and resume
[dotfiles.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 19b63289e72cb20ea35bebd0771015fc71ac503c..5546bdfc2904e60543a0357d458e793572ca3f9b 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -523,10 +523,12 @@ endfunction
 nmap \b :call ExtractOpenURL('')<CR>
 nmap \w :call ExtractOpenURL('-n')<CR>
 nmap \t :call ExtractOpenURL('-t')<CR>
+nmap \p :call ExtractOpenURL('-p')<CR>
 " Send visual block to a browser
 vmap \b ""y:call OpenURL('<C-R>"', '')<CR>
 vmap \w ""y:call OpenURL('<C-R>"', '-n')<CR>
 vmap \t ""y:call OpenURL('<C-R>"', '-t')<CR>
+vmap \p ""y:call OpenURL('<C-R>"', '-p')<CR>
 " Encode and send visual block to a browser
 vmap \B ""y:call EncodeOpenURL('<C-R>"', '')<CR>
 vmap \W ""y:call EncodeOpenURL('<C-R>"', '-n')<CR>
@@ -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