diff options
author | Shubham Saini <pryr@pryr.xyz> | 2023-01-24 03:24:47 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2023-01-24 03:24:47 +0000 |
commit | e6d9fa9127c0c0e1d41e0ad02ed49e8e1fc0bf83 (patch) | |
tree | c271e418944a0ec09696b122a149393c94b676ce /ftplugin | |
parent | ee3fecb5b3206b8073ac3fe4153391f320c99197 (diff) |
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/markdown_bujo.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ftplugin/markdown_bujo.vim b/ftplugin/markdown_bujo.vim index 2330b35..369983c 100644 --- a/ftplugin/markdown_bujo.vim +++ b/ftplugin/markdown_bujo.vim | |||
@@ -9,13 +9,13 @@ | |||
9 | " | 9 | " |
10 | " search() returns 0 if it the pattern was not found | 10 | " search() returns 0 if it the pattern was not found |
11 | function <SID>SearchCheck() | 11 | function <SID>SearchCheck() |
12 | return (search('\[\]', 'nc', line('.')) || search('\[\]', 'nbc', line('.'))) | 12 | return (search('\[ \]', 'nc', line('.')) || search('\[ \]', 'nbc', line('.'))) |
13 | endfunction | 13 | endfunction |
14 | 14 | ||
15 | " Edit markdown lists | 15 | " Edit markdown lists |
16 | " Add and remove bullets with ease | 16 | " Add and remove bullets with ease |
17 | " If we are already checked then we uncheck | 17 | " If we are already checked then we uncheck |
18 | nnoremap <expr> <silent> <buffer> <Plug>BujoChecknormal <SID>SearchCheck() ? ':.s/\[\]/\[x\]<Enter>' : ':.s/\[x\]/\[\]<Enter>' | 18 | nnoremap <expr> <silent> <buffer> <Plug>BujoChecknormal <SID>SearchCheck() ? ':.s/\[ \]/\[x\]<Enter>' : ':.s/\[x\]/\[ \]<Enter>' |
19 | nnoremap <silent> <buffer> <Plug>BujoAddnormal i-[] | 19 | nnoremap <silent> <buffer> <Plug>BujoAddnormal i- [ ] |
20 | inoremap <silent> <buffer> <Plug>BujoAddinsert -[] | 20 | inoremap <silent> <buffer> <Plug>BujoAddinsert - [ ] |
21 | inoremap <expr> <silent> <buffer> <Plug>BujoCheckinsert <SID>SearchCheck() ? '<esc>:.s/\[\]/\[x\]<Enter>' : '<esc>:.s/\[x\]/\[\]<Enter>' | 21 | inoremap <expr> <silent> <buffer> <Plug>BujoCheckinsert <SID>SearchCheck() ? '<esc>:.s/\[ \]/\[x\]<Enter>' : '<esc>:.s/\[x\]/\[ \]<Enter>' |