summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/init.lua10
1 files 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 <leader>t :NvimTreeOpen<enter>
- nnoremap <tab> <esc>/<++><enter>vf>da
+ nnoremap <tab> <esc>/<++><enter>vf>di
- " Some C Macros
+ " Vim Wiki macros
+ autocmd Filetype vimwiki inoremap m<tab> -<space>[<space>]<space>
+ autocmd Filetype vimwiki inoremap h<tab> ==<left>
+ autocmd Filetype vimwiki inoremap hh<tab> ====<left><left>
+
+ " C Macros
autocmd Filetype c inoremap im<tab> int<space>main()<enter>{<enter><enter>return<space>0;<enter>}<up><up><tab>
autocmd Filetype c inoremap i<tab> #include<space><><left>
autocmd Filetype c inoremap w<tab> while()<space>{<enter>}<esc>ke2li