summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-01-18 10:46:22 +0200
committerDrNuget <drnuget@outlook.com>2025-01-18 10:46:22 +0200
commit992f00684714763e01ad857add4b62a25b7ec28a (patch)
treee163385f214cec88dfc6d42436e3d544b1ebb905
parentcaf7615936db1456eb4ca2c8a81f8679026d617e (diff)
vimrc latex begin/end tag macro
-rw-r--r--.config/nvim/init.lua2
1 files changed, 2 insertions, 0 deletions
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<tab> \begin{equation}<enter><enter>\end{equation}<up><tab>
+ autocmd Filetype tex inoremap b<tab> \begin{}<enter>\end{}<esc>kf{a
+ autocmd Filetype tex inoremap e<tab> <esc>0f{lvf}hyj0f{pO
]])
vim.g.loaded_netrw = 1