diff options
author | DrNuget <drnuget@outlook.com> | 2025-01-25 14:54:22 +0200 |
---|---|---|
committer | DrNuget <drnuget@outlook.com> | 2025-01-25 14:54:22 +0200 |
commit | 911b5e5246fced49b8fbee3ee44db53a9594268e (patch) | |
tree | 7b643dcb31868a4cc788e29ec161f4d58da10c19 /.config/nvim | |
parent | aeaf836dfb3a5f02ed57bb8538e3440953e5072e (diff) |
vimrc add some html macros
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
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<tab> for(;;)<space>{<enter>}<esc>ke2li autocmd Filetype c inoremap s<tab> switch()<space>{<enter>}<esc>ke2li + " HTML Macros + autocmd Filetype html,php inoremap im<tab> <!DOCTYPE html><enter><html><enter><body><enter><enter></body><enter></html><up><up><tab><tab> + autocmd Filetype html,php inoremap div<tab> <div class=""><enter></div><esc>2kf"a + autocmd Filetype html,php inoremap img<tab> <img alt="" src="<++>"><esc>0f"a + autocmd Filetype html,php inoremap ln<tab> <a href=""><left><left> + autocmd Filetype html,php inoremap he<tab> <head><enter><enter></head><up> + autocmd Filetype html,php inoremap ti<tab> <title></title><esc>0f>a + autocmd Filetype html,php inoremap h1<tab> <h1></h1><esc>0f>a + autocmd Filetype html,php inoremap h2<tab> <h2></h2><esc>0f>a + autocmd Filetype html,php inoremap h3<tab> <h3></h3><esc>0f>a + autocmd Filetype html,php inoremap p<tab> <p></p><esc>0f>a + " LaTex Macros autocmd Filetype tex inoremap up<tab> \usepackage{}<left> autocmd Filetype tex inoremap equ<tab> \begin{equation*}<enter><enter>\end{equation*}<enter><++><up><up><tab> |