From 992f00684714763e01ad857add4b62a25b7ec28a Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sat, 18 Jan 2025 10:46:22 +0200 Subject: vimrc latex begin/end tag macro --- .config/nvim/init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to '.config/nvim/init.lua') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index bb2eb0b..d5ba9f1 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -31,6 +31,8 @@ vim.cmd([[ " LaTex Macros autocmd Filetype tex inoremap equ \begin{equation}\end{equation} + autocmd Filetype tex inoremap b \begin{}\end{}kf{a + autocmd Filetype tex inoremap e 0f{lvf}hyj0f{pO ]]) vim.g.loaded_netrw = 1 -- cgit v1.2.3