From dda5ee4e8b49e755fd1a1cdf16d3d20ccc58969c Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 24 Dec 2016 13:18:52 +0000 Subject: [PATCH] Change name of checkbox toggle functionality --- plugin/functions.vim | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/plugin/functions.vim b/plugin/functions.vim index a516276..f668e21 100644 --- a/plugin/functions.vim +++ b/plugin/functions.vim @@ -59,8 +59,8 @@ function! TabWidth(width) endfunction command! -nargs=1 TabWidth :call TabWidth() -" Toggle task list bullet -function! TaskToggle() +" Toggle GitHub style bullet checkbox +function! CheckboxToggle() " Get current line let l:line = getline('.') @@ -78,9 +78,5 @@ function! TaskToggle() " Replace the current line with a new one call setline(line('.'), substitute(l:line, l:pattern, l:char, '')) endfunction -command! TaskToggle :call TaskToggle() -nnoremap x :TaskToggle - -" {Dis,En}able macro mode, use to repeat last macro -command! MacroModeEnable :call macro_mode#enable() -command! MacroModeDisable :call macro_mode#disable() +command! CheckboxToggle :call CheckboxToggle() +nnoremap :CheckboxToggle