Permalink
Browse files

Merge branch 'master' of github.com:derekwyatt/dotfiles

  • Loading branch information...
2 parents 1ca5d3c + 4206664 commit c022812d7e8a80ca66a2ea6b7d2549e16e788512 @derekwyatt committed Mar 29, 2012
@@ -44,11 +44,26 @@ the file:
or
> v -b':sp' -aG /tmp/myfile.scala
-This will load the file and then copy the first line to the end (Why would you
+This will load the file and then copy the first line to the end (Why you would
ever want to do this... I dunno):
> v -a':1t$' /tmp/myfile.scala
And this will load all of the `*.txt` files into the args list:
> v *.txt
+
+If you want to load files into areas that are already split, use one of the
+aliases for that:
+
+ # Do a ':wincmd h' first
+ > vh /tmp/myfile.scala
+
+ # Do a ':wincmd j' first
+ > vj /tmp/myfile.scala
+
+ # Do a ':wincmd k' first
+ > vk /tmp/myfile.scala
+
+ # Do a ':wincmd l' first
+ > vl /tmp/myfile.scala
@@ -8,8 +8,10 @@ function resolveFile
{
if [ -f "$1" ]; then
echo $(readlink -f "$1")
+ elif [[ "${1#/}" == "$1" ]]; then
+ echo "$(pwd)/$1"
else
- echo "$1"
+ echo $1
fi
}
@@ -61,3 +63,7 @@ EOH
alias v=callvim
alias vvsp="callvim -b':vsp'"
alias vhsp="callvim -b':sp'"
+alias vk="callvim -b':wincmd k'"
+alias vj="callvim -b':wincmd j'"
+alias vl="callvim -b':wincmd l'"
+alias vh="callvim -b':wincmd h'"

0 comments on commit c022812

Please sign in to comment.