prep roundcube, from ktiu.net, nvim stuff

This commit is contained in:
Till 2026-02-05 00:25:04 +01:00
parent d4474ef5ce
commit 40539ae163
5 changed files with 56 additions and 14 deletions

View file

@ -23,6 +23,9 @@ set splitright
set tabstop=2
set updatetime=300
" set foldmethod=expr
" set foldexpr=nvim_treesitter#foldexpr()
let g:netrw_liststyle = 3
let g:netrw_fastbrowse = 0
@ -48,8 +51,17 @@ 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>"
execute "VimwikiIndex"
execute "VimwikiGoto " . a:title
endfunction
function Diary()
execute "VimwikiMakeDiaryNote"
endfunction
" 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