Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug fix for E33: No previous substitute regular expression

Must have been sleeping while writing this originally :-|
  • Loading branch information...
commit 8ab66c465f5f7e29cc7677b2d54012f0fe762576 1 parent fc16d5c
@xolox authored
Showing with 5 additions and 4 deletions.
  1. +3 −2 autoload.vim
  2. +2 −2 shell.vim
View
5 autoload.vim
@@ -1,6 +1,6 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
-" 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)
View
4 shell.vim
@@ -1,9 +1,9 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
-" 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
Please sign in to comment.
Something went wrong with that request. Please try again.