From 4d7d01c74d8488e6101bef87a204dce8fb509373 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sun, 19 Jan 2025 09:52:06 +0200 Subject: vimrc latex macros usepackage,subsubsection,titleformat --- .config/nvim/init.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index fb300c7..82614f6 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -32,12 +32,15 @@ vim.cmd([[ autocmd Filetype c inoremap f for(;;){}e2li " LaTex Macros + autocmd Filetype tex inoremap up \usepackage{} autocmd Filetype tex inoremap equ \begin{equation*}\end{equation*} autocmd Filetype tex inoremap ig \includegraphics{} autocmd Filetype tex inoremap b \begin{}\end{}kf{a autocmd Filetype tex inoremap e 0f{lvf}hyj0f{pO autocmd Filetype tex inoremap s \section{} autocmd Filetype tex inoremap ss \subsection{} + autocmd Filetype tex inoremap sss \subsubsection{} + autocmd Filetype tex inoremap tf {}yy4pki\titleformat ]]) -- cgit v1.2.3