From 25572391a991b5d3a36274901b3911f675d38108 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sat, 18 Jan 2025 19:04:59 +0200 Subject: vimrc tree keybind and some latex macros --- .config/nvim/init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.config/nvim/init.lua') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index d5ba9f1..fb300c7 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -23,6 +23,8 @@ vim.cmd([[ nnoremap o o nnoremap O O + nnoremap t :NvimTreeOpen + " Some C Macros autocmd Filetype c inoremap im intmain(){return0;} autocmd Filetype c inoremap I #include<> @@ -30,9 +32,13 @@ vim.cmd([[ autocmd Filetype c inoremap f for(;;){}e2li " LaTex Macros - 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 e 0f{lvf}hyj0f{pO + autocmd Filetype tex inoremap s \section{} + autocmd Filetype tex inoremap ss \subsection{} + ]]) vim.g.loaded_netrw = 1 -- cgit v1.2.3