summaryrefslogtreecommitdiffstats
path: root/vim/.vim/specific/tex.vim
diff options
context:
space:
mode:
authorAudric Schiltknecht <storm@chemicalstorm.org>2012-10-10 22:12:38 +0200
committerAudric Schiltknecht <storm@chemicalstorm.org>2012-10-10 22:12:38 +0200
commit16938a57453b769490fde0372407ae169de519ab (patch)
tree3a083df1bf87941b430e6101bc7a3a977ad8d290 /vim/.vim/specific/tex.vim
parent048df48526e1b8f5176319f79aaa6276906556bd (diff)
downloaddotfiles-16938a57453b769490fde0372407ae169de519ab.tar.gz
dotfiles-16938a57453b769490fde0372407ae169de519ab.tar.bz2
dotfiles-16938a57453b769490fde0372407ae169de519ab.zip
Add "basic" vim configuration
Diffstat (limited to 'vim/.vim/specific/tex.vim')
-rw-r--r--vim/.vim/specific/tex.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/vim/.vim/specific/tex.vim b/vim/.vim/specific/tex.vim
new file mode 100644
index 0000000..204235a
--- /dev/null
+++ b/vim/.vim/specific/tex.vim
@@ -0,0 +1,10 @@
+" this is mostly a matter of taste. but LaTeX looks good with just a bit
+" of indentation.
+set sw=2
+set softtabstop=2
+" TIP: if you write your \label's as \label{fig:something}, then if you
+" type in \ref{fig: and press <C-n> you will automatically cycle through
+" all the figure labels. Very useful!
+set iskeyword+=:
+
+set makeprg=pdflatex\ -shell-escape\ %