aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/vim-latearliest
diff options
context:
space:
mode:
authorTeddy Wing2018-02-06 00:14:14 +0100
committerTeddy Wing2018-02-06 00:14:14 +0100
commit34a8833b0494851b4b6f7523387fe567e5e5d87a (patch)
tree100db46befe2e458e3e3f8c2e54b0ff88f488351 /bundle/vim-latearliest
parent921d2a1bf301f7085fe3f09b7688f75f6f151225 (diff)
downloaddotvim-34a8833b0494851b4b6f7523387fe567e5e5d87a.tar.bz2
Create 'vim-latearliest' plugin
Adds two new commands that allow you to move to the beginning and end of undo history.
Diffstat (limited to 'bundle/vim-latearliest')
-rw-r--r--bundle/vim-latearliest/plugin/latearliest.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundle/vim-latearliest/plugin/latearliest.vim b/bundle/vim-latearliest/plugin/latearliest.vim
new file mode 100644
index 0000000..3b4fb07
--- /dev/null
+++ b/bundle/vim-latearliest/plugin/latearliest.vim
@@ -0,0 +1,4 @@
+" Two commands that allow faster movement to the beginning and end of history
+
+command! Earliest execute ':earlier ' . &undolevels
+command! Latest execute ':later ' . &undolevels