From 911b5e5246fced49b8fbee3ee44db53a9594268e Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sat, 25 Jan 2025 14:54:22 +0200 Subject: vimrc add some html macros --- .config/nvim/init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.config/nvim/init.lua') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index bbc72ec..e7c3c5b 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -49,6 +49,18 @@ vim.cmd([[ autocmd Filetype c inoremap f for(;;){}ke2li autocmd Filetype c inoremap s switch(){}ke2li + " HTML Macros + autocmd Filetype html,php inoremap im + autocmd Filetype html,php inoremap div
2kf"a + autocmd Filetype html,php inoremap img 0f"a + autocmd Filetype html,php inoremap ln + autocmd Filetype html,php inoremap he + autocmd Filetype html,php inoremap ti 0f>a + autocmd Filetype html,php inoremap h1

0f>a + autocmd Filetype html,php inoremap h2

0f>a + autocmd Filetype html,php inoremap h3

0f>a + autocmd Filetype html,php inoremap p

0f>a + " LaTex Macros autocmd Filetype tex inoremap up \usepackage{} autocmd Filetype tex inoremap equ \begin{equation*}\end{equation*}<++> -- cgit v1.2.3