From b9f9db9457946e08df8064ae46fbc27f190477b0 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Mon, 20 Jan 2025 00:39:08 +0200 Subject: vimrc latex jump marker macro --- .config/nvim/init.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 82614f6..26480b3 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -12,6 +12,8 @@ vim.cmd([[ set splitbelow splitright + let g:tex_flavor='latex' + " Insert mode hjkl inoremap inoremap @@ -25,6 +27,8 @@ vim.cmd([[ nnoremap t :NvimTreeOpen + nnoremap /<++>vf>da + " Some C Macros autocmd Filetype c inoremap im intmain(){return0;} autocmd Filetype c inoremap I #include<> @@ -33,15 +37,15 @@ vim.cmd([[ " LaTex Macros autocmd Filetype tex inoremap up \usepackage{} - autocmd Filetype tex inoremap equ \begin{equation*}\end{equation*} + 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 b \begin{}\end{}<++>2kf{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 - + autocmd Filetype tex inoremap fr \frac{}{<++>}6hi ]]) vim.g.loaded_netrw = 1 @@ -100,4 +104,3 @@ require("pckr").add{ "vimwiki/vimwiki" } } - -- cgit v1.2.3