Fixed #9. Insert dates at the beginning of the line

This commit is contained in:
Pavel Puchkin
2013-12-22 11:19:08 +11:00
parent 19cd2c7e85
commit 072891f722

View File

@@ -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