diff options
author | DrNuget <drnuget@outlook.com> | 2025-01-22 12:57:38 +0200 |
---|---|---|
committer | DrNuget <drnuget@outlook.com> | 2025-01-22 12:57:38 +0200 |
commit | 2fd81c2ea6a559b9cfe3d6aaa957a6700089d596 (patch) | |
tree | 3aa402a44dbb07b1a250c2b7439af22f6ce4056f | |
parent | 65cc1674874a6bda1f69f358ddbd7f15f4e785a9 (diff) |
-rw-r--r-- | .config/nvim/init.lua | 10 |
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 |