diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-03-16 10:49:49 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-03-16 10:49:49 +0100 |
commit | f5228bfb00f22f9b0c5222a87611bb07668fd920 (patch) | |
tree | c9e1a9f2be7d5a0cb3ce75489cab03f035f31b6f | |
parent | bbba5adf49c9f21502f13e6283371cef2bc8db69 (diff) | |
download | dotfiles-f5228bfb00f22f9b0c5222a87611bb07668fd920.tar dotfiles-f5228bfb00f22f9b0c5222a87611bb07668fd920.tar.zst dotfiles-f5228bfb00f22f9b0c5222a87611bb07668fd920.zip |
Define Vim Macros for LaTeX
-rw-r--r-- | .vimrc | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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>" + |