diff options
-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>" + |