DanManN / vim-razer

vim + razer RGB keyboards
GNU General Public License v3.0
15 stars 7 forks source link

n@x (repeat n times macro at register x) turns to n0@x #6

Closed sgorblex closed 3 years ago

sgorblex commented 4 years ago

Hello. I've noticed that with the plugin installed i cannot repeat a macro n times with n@x (macro at register x): apparently neovim adds a 0 to the number n and repeats the macro n*10 times for some reason (as seen in the overlay in the bottom right while typing). For example if I type 5@q it actually understands 50@q (the 0 is added as soon as I type @). I have the plugin installed via Vim Plug on neovim on Arch Linux.

> nvim --version
NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.4.4/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Features: +acl +iconv +tui

Thanks in advance

DanManN commented 3 years ago

Thanks for the pull request. It's merged.