aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/number-inc-dec.lua
AgeCommit message (Collapse)AuthorFilesLines
2017-03-02lua: use goto label to mimic continue statementMarc André Tanner1-41/+36
This is a Lua 5.2 feature supported by LuaJIT.
2017-03-02lua: let number increment/decrement handle next numberMarc André Tanner1-37/+47
Operate on the next number to the right of the cursor, for now the matches are not restricted to the current line. Based on a patch from Denis Warsow. Close #509
2017-02-28lua: reimplement number increment <C-a> and decrement <C-x>Marc André Tanner1-0/+54
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