summaryrefslogtreecommitdiff
path: root/xulmus/vimperatorrc.example
diff options
context:
space:
mode:
Diffstat (limited to 'xulmus/vimperatorrc.example')
-rwxr-xr-xxulmus/vimperatorrc.example21
1 files changed, 21 insertions, 0 deletions
diff --git a/xulmus/vimperatorrc.example b/xulmus/vimperatorrc.example
new file mode 100755
index 00000000..1991c4c4
--- /dev/null
+++ b/xulmus/vimperatorrc.example
@@ -0,0 +1,21 @@
+" TODO: add some useful examples
+
+" I don't like beeps
+set visualbell
+
+" autoignore mode on certain pages
+:autocmd PageLoad .* :js modes.passAllKeys = /gmail\.com/.test(buffer.URL)
+
+
+" embedded javascript is possible
+" You can even add new functions which are then available in the :js command
+javascript <<EOF
+hello = function(name)
+{
+ alert("Hello world: " + name);
+}
+EOF
+
+echo "vimperatorrc sourced"
+
+" vim: ft=vimperator: