From ab07e4069e72c9af0e9a7236a36aa49be787726b Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 27 Sep 2020 18:46:12 +0800 Subject: use printf for string concatenation where needed --- mappings.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mappings.vim') diff --git a/mappings.vim b/mappings.vim index b3f8cab..5c4a0a1 100644 --- a/mappings.vim +++ b/mappings.vim @@ -49,8 +49,8 @@ nnoremap \d :bprevious bdelete # " Insert a blank line below or above current line (do not move the cursor), " see https://stackoverflow.com/a/16136133/6064933 -nnoremap oo 'm`' . v:count1 . 'o``' -nnoremap OO 'm`' . v:count1 . 'O``' +nnoremap oo printf('m`%so``', v:count1) +nnoremap OO printf('m`%sO``', v:count1) " nnoremap oo @='m`o``' " nnoremap OO @='m`O``' -- cgit v1.2.3