aboutsummaryrefslogtreecommitdiff
path: root/lua/vis-std.lua
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-02-28 10:23:59 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-28 10:43:05 +0100
commitf9cec7b86a6db8ea5c40dd3f930561591bd5362c (patch)
tree3f71af17389c6f760412e7342bb9c87ae68c2140 /lua/vis-std.lua
parent28fae462be95a0573113c76d9d2641e73dd1b44e (diff)
downloadvis-f9cec7b86a6db8ea5c40dd3f930561591bd5362c.tar.gz
vis-f9cec7b86a6db8ea5c40dd3f930561591bd5362c.tar.xz
lua: reimplement number increment <C-a> and decrement <C-x>
Based on a patch by Denis Warsow. Stuff which could probably be improved: - in vim the cursor does not need to be on top of the number, it suffices to be on the same line. - decrementing beyond zero does not work for hexadecimal and octal numbers, vim seems to wrap around in this case. 0x00000000 <C-x> becomes 0xffffffff Close #506
Diffstat (limited to 'lua/vis-std.lua')
-rw-r--r--lua/vis-std.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/vis-std.lua b/lua/vis-std.lua
index a4171bd..5da6020 100644
--- a/lua/vis-std.lua
+++ b/lua/vis-std.lua
@@ -128,3 +128,4 @@ end)
require('plugins/filetype')
require('plugins/textobject-lexer')
require('plugins/digraph')
+require('plugins/number-inc-dec')