diff --git a/autoload.vim b/autoload.vim index d9a2612..558fa55 100644 --- a/autoload.vim +++ b/autoload.vim @@ -1,6 +1,6 @@ " Vim auto-load script " Author: Peter Odding -" Last Change: August 10, 2010 +" Last Change: August 15, 2010 " URL: http://peterodding.com/code/vim/shell/ if !exists('s:script') @@ -44,7 +44,8 @@ function! s:open_at_cursor() let match = matchstr(line[0 : idx], '\f*$') let match .= matchstr(line[idx+1 : -1], '^\f*') " Expand leading tilde and/or environment variables in filename? - if match =~ '^~' || match =~ '$' + if match =~ '^\~' || match =~ '\$' + " TODO This can return multiple files?! let match = expand(match) endif if !isdirectory(match) && !filereadable(match) diff --git a/shell.vim b/shell.vim index baf9a27..a267dbb 100644 --- a/shell.vim +++ b/shell.vim @@ -1,9 +1,9 @@ " Vim plug-in " Author: Peter Odding -" Last Change: August 10, 2010 +" Last Change: August 15, 2010 " URL: http://peterodding.com/code/vim/shell/ " License: MIT -" Version: 0.7.1 +" Version: 0.7.2 " Support for automatic update using the GLVS plug-in. " GetLatestVimScripts: 3123 1 :AutoInstall: shell.zip