From 2fd81c2ea6a559b9cfe3d6aaa957a6700089d596 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Wed, 22 Jan 2025 12:57:38 +0200 Subject: vimrc fix marker macro and add some vim wiki macros --- .config/nvim/init.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 22722f4..37f6611 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -12,6 +12,7 @@ vim.cmd([[ set splitbelow splitright + let g:calendar_monday = 1 let g:tex_flavor='latex' " Insert mode hjkl @@ -27,9 +28,14 @@ vim.cmd([[ nnoremap t :NvimTreeOpen - nnoremap /<++>vf>da + nnoremap /<++>vf>di - " Some C Macros + " Vim Wiki macros + autocmd Filetype vimwiki inoremap m -[] + autocmd Filetype vimwiki inoremap h == + autocmd Filetype vimwiki inoremap hh ==== + + " C Macros autocmd Filetype c inoremap im intmain(){return0;} autocmd Filetype c inoremap i #include<> autocmd Filetype c inoremap w while(){}ke2li -- cgit v1.2.3