summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--vi.exrc8
2 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2938288..780e8fc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,5 @@
-.PHONY: +git.exrc
-
-install: +git.exrc
-
-+git.exrc:
+install:
+ install -m 644 vi.exrc /etc/vi.exrc
install -m 644 git.exrc /usr/local/share/git.exrc
@echo ----------------------------------------------------------------------
@echo -n You should add
diff --git a/vi.exrc b/vi.exrc
new file mode 100644
index 0000000..738175c
--- /dev/null
+++ b/vi.exrc
@@ -0,0 +1,8 @@
+" set mark like visual mode
+map V mv
+" jump to other end of "selection"
+map v `v``mv``
+" operate on forward "selection"
+map : :'v,.
+" operate on backward "selection"
+map ; :.,'v