diff options
author | DrNuget <drnuget@outlook.com> | 2025-01-20 14:03:49 +0200 |
---|---|---|
committer | DrNuget <drnuget@outlook.com> | 2025-01-20 14:03:49 +0200 |
commit | 5ba0f7f99c2912184949dabae9fa63b34e04f461 (patch) | |
tree | 1aea7a3b1657f9388cc875a457a1cb94fc80c916 | |
parent | bc75dc19ddee9c71ef8e6cff7c0bc5ebd7340bd4 (diff) |
vimrc add c switch macro and shorten while/for macros
-rw-r--r-- | .config/nvim/init.lua | 5 |
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> |