summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/init.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 1798928..c15d949 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -32,8 +32,9 @@ vim.cmd([[
" Some 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><up>e2li
- autocmd Filetype c inoremap f<tab> for(;;)<space>{<enter>}<esc><up>e2li
+ autocmd Filetype c inoremap w<tab> while()<space>{<enter>}<esc>ke2li
+ autocmd Filetype c inoremap f<tab> for(;;)<space>{<enter>}<esc>ke2li
+ autocmd Filetype c inoremap s<tab> switch()<space>{<enter>}<esc>ke2li
" LaTex Macros
autocmd Filetype tex inoremap up<tab> \usepackage{}<left>