summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-03-16 10:49:49 +0100
committerxengineering <mail2xengineering@protonmail.com>2021-03-16 10:49:49 +0100
commitf5228bfb00f22f9b0c5222a87611bb07668fd920 (patch)
treec9e1a9f2be7d5a0cb3ce75489cab03f035f31b6f
parentbbba5adf49c9f21502f13e6283371cef2bc8db69 (diff)
downloaddotfiles-f5228bfb00f22f9b0c5222a87611bb07668fd920.tar
dotfiles-f5228bfb00f22f9b0c5222a87611bb07668fd920.tar.zst
dotfiles-f5228bfb00f22f9b0c5222a87611bb07668fd920.zip
Define Vim Macros for LaTeX
-rw-r--r--.vimrc20
1 files changed, 20 insertions, 0 deletions
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 <F7> :tabp <LF>
map <F8> :tabn <LF>
+
+" macros
+" see ':help key-notation' to view documentation
+
+" LaTeX enumeration (o rdered list)
+let @o="A\<Enter>\<Enter>\\begin{enumeration}\<Enter>\<Enter>\\end{enumeration}\<Up>\<Tab>\\item "
+" LaTeX itemize (u nordered list)
+let @u="A\<Enter>\<Enter>\\begin{itemize}\<Enter>\<Enter>\\end{itemize}\<Up>\<Tab>\\item "
+" LaTeX equation
+let @e="A\<Enter>\<Enter>\\begin{equation}\<Enter>\<Enter>\\end{equation}\<Up>\<Tab>"
+" LaTeX image
+let @i="A\<Enter>\<Enter>\\begin{figure}[H]\<Enter>\<Tab>\\centering\<Enter>\\includegraphics[width=1.0\\textwidth]{}\<Enter>\<Esc>:left\<Enter>i\\end{figure}\<Esc>\<Up>A\<Left>"
+