46c2af396a80a4dda8ce46577249b7aa81ea0849

Author
Derek Wyatt <derek@derekwyatt.org>
Committer
Phil Eichinger <phil@zankapfel.net>
Date

Message

Updated the README to include documentation on the postCallVim callout

Diff

 1diff --git a/plugins/vim-interaction/README.md b/plugins/vim-interaction/README.md
 2index 65e678b519123d9460728a7ea593b4d3ce25a9fc..681648018e69ccb077909e9fcd6346be9d55d4d1 100644
 3--- a/plugins/vim-interaction/README.md
 4+++ b/plugins/vim-interaction/README.md
 5@@ -25,6 +25,19 @@ There are a few aliases presented as well:
 6 * `vvsp` Edits the passed in file but first makes a vertical split
 7 * `vhsp` Edits the passed in file but first makes a horizontal split
 8 
 9+## Post Callout ##
10+
11+At the end of the `callvim` function we invoke the `postCallVim` function if it
12+exists.  If you're using MacVim, for example, you could define a function that
13+brings window focus to it after the file is loaded:
14+
15+    function postCallVim
16+    {
17+      osascript -e 'tell application "MacVim" to activate'
18+    }
19+
20+This'll be different depending on your OS / Window Manager.
21+
22 ## Examples ##
23 
24 This will load `/tmp/myfile.scala` into the running GVim session: