Browse files

Added a few more aliases to make it easier to load files into windows…

… that already exist
  • Loading branch information...
1 parent d647d1d commit 0804624f4dbc998aa2ff33bce9f21b6967151c5e Derek Wyatt committed Mar 20, 2012
View
17 zsh_custom/plugins/vim-interaction/README.md
@@ -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
View
4 zsh_custom/plugins/vim-interaction/vim-interaction.plugin.zsh
@@ -60,3 +60,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 0804624

Please sign in to comment.