From 37ccac0e5e2795e73831dd73385ebcd4111bc0f2 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 16 May 2022 13:16:15 +0400 Subject: [PATCH] Autosave after toggle checkbox or radio button Close #8 --- ftplugin/markdown.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 820e485..828ff3c 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -2,12 +2,12 @@ " File: ftplugin/markdown.vim " Maintainer: Andrew Nechaev " Version: 0.1.0 -" Modified: 2022-05-13 21:00+0400 +" Modified: 2022-05-16 13:14+0400 " License: MIT """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -nnoremap t :call winrestview(toggle({' ': 'x', 'x': '-', '-': ' '})) -vnoremap t :call winrestview(toggle({' ': 'x', 'x': '-', '-': ' '})) +nnoremap t :call winrestview(toggle({' ': 'x', 'x': '-', '-': ' '})):w! +vnoremap t :call winrestview(toggle({' ': 'x', 'x': '-', '-': ' '})):w! nnoremap r :call winrestview(toggleState('(', '( ) ')) vnoremap r :call winrestview(toggleState('(', '( ) '))