continuous improvement

This commit is contained in:
Till 2023-10-20 01:04:29 +02:00
parent 2fc06ae9df
commit 5a227bfc45
9 changed files with 131 additions and 71 deletions

View file

@ -54,3 +54,10 @@ xnoremap al $o0
onoremap <silent> al :normal val<return>
xnoremap i% GoggV
onoremap <silent> i% :normal vi%<return>
function CreateNote(title)
execute "file ~/notes/" . strftime("%Y-%m-%d") . "_" . join(split(tolower(a:title)), "_") . ".md"
execute "set ft=markdown"
execute "normal! i" . a:title
execute "normal V\<tab>yaml_note\<tab>"
endfunction