summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>"
+