dw editor updates

This commit is contained in:
Q
2024-06-26 21:25:26 +03:00
parent 1a315f100d
commit 3a74c3e102
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
" -: * unordered
" 1: - ordered list
" c: <code bash file.sh>\n</code>
" t: <todo>
imapclear
set laststatus=2
@@ -37,6 +38,7 @@ imap <C-w>un ____<Esc>hi
imap <C-w>dd <lt>del><lt>/del><Esc>5hi
" ==== Lists ====
imap <C-w>- <esc>^i<space><space>*<space>
imap <C-b> *<space>
imap <C-w>1 <esc>^i<space><space>-<space>
imap <C-w>, <esc>:s!^ ! !e<CR>l:noh<CR>a
imap <C-w>. <esc>:s!^! !e<CR>l:noh<CR>a
@@ -53,7 +55,7 @@ imap <C-w>c <code bash file.sh><CR><CR></code><Esc>ki
map wc i<code bash file.sh><CR><CR></code><Esc>ki
" ==== Todo ====
map wt i<todo></todo><Esc>6hi
map wt i<todo><Esc>$a</todo><Esc>
imap <C-t> <todo></todo><Esc>6hi
imap <C-w>t <todo></todo><Esc>6hi

View File

@@ -14,6 +14,7 @@ Ctrl-w -: * unordered
Ctrl-w 1: - ordered list
Ctrl-w , and .: de-indent and indent
Ctrl-w c: <code bash file.sh>\n</code>
Ctrl-w t: <todo>
normal mode:
Space toggles <todo>