From f5228bfb00f22f9b0c5222a87611bb07668fd920 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 16 Mar 2021 10:49:49 +0100 Subject: Define Vim Macros for LaTeX --- .vimrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.vimrc b/.vimrc index 69a50d5..24dcd4d 100644 --- a/.vimrc +++ b/.vimrc @@ -1,8 +1,28 @@ + +" general settings + set mouse-=a syntax on set tabstop=4 set expandtab set autoindent + + +" hot keys + map :tabp map :tabn + +" macros +" see ':help key-notation' to view documentation + +" LaTeX enumeration (o rdered list) +let @o="A\\\\begin{enumeration}\\\\end{enumeration}\\\\item " +" LaTeX itemize (u nordered list) +let @u="A\\\\begin{itemize}\\\\end{itemize}\\\\item " +" LaTeX equation +let @e="A\\\\begin{equation}\\\\end{equation}\\" +" LaTeX image +let @i="A\\\\begin{figure}[H]\\\\centering\\\includegraphics[width=1.0\\textwidth]{}\\:left\i\\end{figure}\\A\" + -- cgit v1.2.3-70-g09d2