From 5ba0f7f99c2912184949dabae9fa63b34e04f461 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Mon, 20 Jan 2025 14:03:49 +0200 Subject: vimrc add c switch macro and shorten while/for macros --- .config/nvim/init.lua | 5 +++-- 1 file 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 intmain(){return0;} autocmd Filetype c inoremap I #include<> - autocmd Filetype c inoremap w while(){}e2li - autocmd Filetype c inoremap f for(;;){}e2li + autocmd Filetype c inoremap w while(){}ke2li + autocmd Filetype c inoremap f for(;;){}ke2li + autocmd Filetype c inoremap s switch(){}ke2li " LaTex Macros autocmd Filetype tex inoremap up \usepackage{} -- cgit v1.2.3