From 878a018bb2391ab4399b076fcbbb08a7dfce1fd4 Mon Sep 17 00:00:00 2001 From: yasuda Date: Mon, 1 Aug 2022 11:48:39 +0900 Subject: [PATCH] Fix unnecessary cursor move in keymap `ZG` etc. --- plugin/spelunker.vim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugin/spelunker.vim b/plugin/spelunker.vim index c2da3ce..711d70e 100644 --- a/plugin/spelunker.vim +++ b/plugin/spelunker.vim @@ -146,7 +146,7 @@ endif " vmap/vnoremapはxmap(visual-modeだけ)が作られる前の古い方法で、後方互換のため " 利用します。 -" vmapだと visual-mode の他、selec-mode にもマップされます +" vmapだと visual-mode の他、select-mode にもマップされます " このマップは除去可能なら除去します if exists(':sunmap') == 2 function! s:sunmap(map) abort @@ -166,7 +166,7 @@ if !hasmapto('(add-spelunker-good)') endif nnoremap (add-spelunker-good-nmap) - \ :call spelunker#execute_with_target_word('spellgood') :call spelunker#check() + \ :call spelunker#execute_with_target_word('spellgood'):call spelunker#check() if !hasmapto('(add-spelunker-good-nmap)') silent! nmap Zg (add-spelunker-good-nmap) endif @@ -179,7 +179,7 @@ if !hasmapto('(undo-spelunker-good)') endif nnoremap (undo-spelunker-good-nmap) - \ :call spelunker#execute_with_target_word('spellundo') :call spelunker#check() + \ :call spelunker#execute_with_target_word('spellundo'):call spelunker#check() if !hasmapto('(undo-spelunker-good-nmap)') silent! nmap Zug (undo-spelunker-good-nmap) endif @@ -192,7 +192,7 @@ if !hasmapto('(add-temporary-spelunker-good)') endif nnoremap (add-temporary-spelunker-good-nmap) - \ :call spelunker#execute_with_target_word('spellgood!') :call spelunker#check() + \ :call spelunker#execute_with_target_word('spellgood!'):call spelunker#check() if !hasmapto('(add-temporary-spelunker-good-nmap)') silent! nmap ZG (add-temporary-spelunker-good-nmap) endif @@ -205,7 +205,7 @@ if !hasmapto('(undo-temporary-spelunker-good)') endif nnoremap (undo-temporary-spelunker-good-nmap) - \ :call spelunker#execute_with_target_word('spellundo!') :call spelunker#check() + \ :call spelunker#execute_with_target_word('spellundo!'):call spelunker#check() if !hasmapto('(undo-temporary-spelunker-good-nmap)') silent! nmap ZUG (undo-temporary-spelunker-good-nmap) endif @@ -218,7 +218,7 @@ if !hasmapto('(add-spelunker-bad)') endif nnoremap (add-spell-bad-nmap) - \ :call spelunker#execute_with_target_word('spellwrong') :call spelunker#check() + \ :call spelunker#execute_with_target_word('spellwrong'):call spelunker#check() if !hasmapto('(add-spell-bad-nmap)') silent! nmap Zw (add-spell-bad-nmap) endif @@ -231,7 +231,7 @@ if !hasmapto('(undo-spelunker-bad)') endif nnoremap (undo-spelunker-bad-nmap) - \ :call spelunker#execute_with_target_word('spellundo') :call spelunker#check() + \ :call spelunker#execute_with_target_word('spellundo'):call spelunker#check() if !hasmapto('(undo-spelunker-bad-nmap)') silent! nmap Zuw (undo-spelunker-bad-nmap) endif @@ -244,7 +244,7 @@ if !hasmapto('(add-temporary-spelunker-bad)') endif nnoremap (add-temporary-spelunker-bad-nmap) - \ :call spelunker#execute_with_target_word('spellwrong!') :call spelunker#check() + \ :call spelunker#execute_with_target_word('spellwrong!'):call spelunker#check() if !hasmapto('(add-temporary-spelunker-bad-nmap)') silent! nmap ZW (add-temporary-spelunker-bad-nmap) endif @@ -257,7 +257,7 @@ if !hasmapto('(undo-temporary-spelunker-bad)') endif nnoremap (undo-temporary-spelunker-bad-nmap) - \ :call spelunker#execute_with_target_word('spellundo!') :call spelunker#check() + \ :call spelunker#execute_with_target_word('spellundo!'):call spelunker#check() if !hasmapto('(undo-temporary-spelunker-bad-nmap)') silent! nmap ZUW (undo-temporary-spelunker-bad-nmap) endif