From f9cec7b86a6db8ea5c40dd3f930561591bd5362c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 28 Feb 2017 10:23:59 +0100 Subject: lua: reimplement number increment and decrement 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 becomes 0xffffffff Close #506 --- lua/vis-std.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua/vis-std.lua') 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') -- cgit v1.2.3