aboutsummaryrefslogtreecommitdiff
path: root/mappings.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-09-27 18:46:12 +0800
committerjdhao <jdhao@hotmail.com>2020-09-27 18:46:12 +0800
commitab07e4069e72c9af0e9a7236a36aa49be787726b (patch)
tree9f7f0689f4b775c70532c1a6382e190800c18dda /mappings.vim
parent233d6a2ba679409a41bee5795381ee3dcd6fd289 (diff)
use printf for string concatenation where needed
Diffstat (limited to 'mappings.vim')
-rw-r--r--mappings.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/mappings.vim b/mappings.vim
index b3f8cab..5c4a0a1 100644
--- a/mappings.vim
+++ b/mappings.vim
@@ -49,8 +49,8 @@ nnoremap <silent> \d :bprevious <bar> bdelete #<CR>
" Insert a blank line below or above current line (do not move the cursor),
" see https://stackoverflow.com/a/16136133/6064933
-nnoremap <expr> oo 'm`' . v:count1 . 'o<Esc>``'
-nnoremap <expr> OO 'm`' . v:count1 . 'O<Esc>``'
+nnoremap <expr> oo printf('m`%so<ESC>``', v:count1)
+nnoremap <expr> OO printf('m`%sO<ESC>``', v:count1)
" nnoremap oo @='m`o<c-v><Esc>``'<cr>
" nnoremap OO @='m`O<c-v><Esc>``'<cr>