Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 41: Line 41:
 
test -s ~/.ff~ || return
 
test -s ~/.ff~ || return
 
if [ "$*" ]; then
 
if [ "$*" ]; then
grep "$*" ~/.ff~ > ~/.ff- || return
+
grep "$*" ~/.ff~ > ~/.ff- || return
 
cmd="vim +`head -1 ~/.ff- | cut -d: -f2` `head -1 ~/.ff- | cut -d: -f1 | uniq`"
 
cmd="vim +`head -1 ~/.ff- | cut -d: -f2` `head -1 ~/.ff- | cut -d: -f1 | uniq`"
 
history -s $cmd
 
history -s $cmd
 
$cmd
 
$cmd
 
else
 
else
perl -pe 's/\033[^a-z]*[a-z]//g' ~/.ff~ > ~/.ff
+
perl -pe 's/\033[^a-z]*[a-z]//g' ~/.ff~ > ~/.ff
 
vim -q ~/.ff -c :cw5
 
vim -q ~/.ff -c :cw5
 
fi
 
fi
Line 91: Line 91:
   
 
<pre>
 
<pre>
unalias v 2>/dev/null
+
unalias v 2&gt;/dev/null
 
</pre>
 
</pre>
   
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)