From a0e586adfbc20821ea042b842bc71056fe223145 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 1 Sep 2022 22:38:33 +0400 Subject: [PATCH] Move coursor to the end after set up checkbox Close #13 --- ftplugin/markdown.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index c141eff..c93ad9d 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -15,9 +15,9 @@ set wrap linebreak nnoremap t :call winrestview(toggle({' ': 'x', 'x': '-', '-': ' '})):w! vnoremap t :call winrestview(toggle({' ': 'x', 'x': '-', '-': ' '})):w! -nnoremap r :call winrestview(toggleState('(', '( ) ')) +nnoremap r :call winrestview(toggleState('(', '( ) '))A vnoremap r :call winrestview(toggleState('(', '( ) ')) -nnoremap c :call winrestview(toggleState('[', '[ ] ')) +nnoremap c :call winrestview(toggleState('[', '[ ] '))A vnoremap c :call winrestview(toggleState('[', '[ ] ')) set tabstop=2 softtabstop=2 shiftwidth=2 expandtab