diff options
author | Ricky Anderson <ricky_anderson2696@yahoo.com> | 2019-12-10 10:34:16 +0700 |
---|---|---|
committer | Ricky Anderson <ricky_anderson2696@yahoo.com> | 2019-12-10 10:34:29 +0700 |
commit | 2bedaf4672e3bfd4c5fc886ed0b4b6749e3066dc (patch) | |
tree | 0ffc8a68ea803eb93b152cf1b2aced12b8b23e3f | |
parent | 84b5ae6413055cb886a2deb279a33925d2070c71 (diff) | |
download | todo.txt-vim-2bedaf4672e3bfd4c5fc886ed0b4b6749e3066dc.zip |
Use abbreviations instead of maps in insert mode
-rw-r--r-- | ftplugin/todo.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index abaad7b..6d25a4a 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -61,10 +61,10 @@ if !exists("g:Todo_txt_do_not_map") || ! g:Todo_txt_do_not_map noremap <script> <silent> <buffer> <localleader>c :call todo#PrioritizeAdd('C')<CR> " Insert date {{{3 - inoremap <script> <silent> <buffer> date<Tab> <C-R>=strftime("%Y-%m-%d")<CR> + inoreabbrev <script> <silent> <buffer> date: <C-R>=strftime("%Y-%m-%d")<CR> - inoremap <script> <silent> <buffer> due: due:<C-R>=strftime("%Y-%m-%d")<CR> - inoremap <script> <silent> <buffer> DUE: DUE:<C-R>=strftime("%Y-%m-%d")<CR> + inoreabbrev <script> <silent> <buffer> due: due:<C-R>=strftime("%Y-%m-%d")<CR> + inoreabbrev <script> <silent> <buffer> DUE: DUE:<C-R>=strftime("%Y-%m-%d")<CR> noremap <script> <silent> <buffer> <localleader>d :call todo#PrependDate()<CR> |