mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-14 04:43:46 -05:00
Fixed #9. Insert dates at the beginning of the line
This commit is contained in:
@@ -24,7 +24,7 @@ endif
|
|||||||
|
|
||||||
" Insert date {{{2
|
" Insert date {{{2
|
||||||
if !hasmapto("<leader>d",'n')
|
if !hasmapto("<leader>d",'n')
|
||||||
nnoremap <script> <silent> <buffer> <leader>d "=strftime("%Y-%m-%d")<CR>P
|
nnoremap <script> <silent> <buffer> <leader>d 0"=strftime("%Y-%m-%d ")<CR>P
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !hasmapto("date<Tab>",'i')
|
if !hasmapto("date<Tab>",'i')
|
||||||
@@ -37,7 +37,7 @@ endif
|
|||||||
|
|
||||||
" Mark done {{{2
|
" Mark done {{{2
|
||||||
if !hasmapto("<leader>D",'n')
|
if !hasmapto("<leader>D",'n')
|
||||||
nnoremap <script> <silent> <buffer> <leader>D ix <ESC>"=strftime("%Y-%m-%d")<CR>P
|
nnoremap <script> <silent> <buffer> <leader>D 0"=strftime("x %Y-%m-%d ")<CR>P
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Folding {{{1
|
" Folding {{{1
|
||||||
|
|||||||
Reference in New Issue
Block a user