summaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/tex/mappings.vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-03-10 14:29:06 +0000
committerUrbain Vaes <urbain@vaes.uk>2016-03-10 14:29:06 +0000
commit3446f5387389b0e1671481c8a8fb9ea0eed519f6 (patch)
tree543bde435847c700507c3b229460b446f4a09028 /vim/after/ftplugin/tex/mappings.vim
parentc9f80e43f431d89bbccd1ecc68c7b48fb8c01dd4 (diff)
Remove . from dotfiles for convenience
Diffstat (limited to 'vim/after/ftplugin/tex/mappings.vim')
-rw-r--r--vim/after/ftplugin/tex/mappings.vim38
1 files changed, 38 insertions, 0 deletions
diff --git a/vim/after/ftplugin/tex/mappings.vim b/vim/after/ftplugin/tex/mappings.vim
new file mode 100644
index 0000000..1c4625d
--- /dev/null
+++ b/vim/after/ftplugin/tex/mappings.vim
@@ -0,0 +1,38 @@
+iabbrev <buffer> (( \left(
+iabbrev <buffer> )) \right)
+iabbrev <buffer> {{ \left\{
+iabbrev <buffer> }} \right\}
+iabbrev <buffer> [[ \left[
+iabbrev <buffer> ]] \right]
+iabbrev <buffer> == \,=\,
+iabbrev <buffer> >> \,\geq\,
+iabbrev <buffer> << \,\leq\,
+iabbrev <buffer> ++ \,+\,
+iabbrev <buffer> -- \,-\,
+
+iabbrev <buffer> ga \alpha
+iabbrev <buffer> gb \beta
+iabbrev <buffer> gg \gamma
+iabbrev <buffer> gd \delta
+iabbrev <buffer> ge \varepsilon
+iabbrev <buffer> gz \zeta
+iabbrev <buffer> gh \eta
+iabbrev <buffer> gt \theta
+iabbrev <buffer> gi \iota
+iabbrev <buffer> gk \kappa
+iabbrev <buffer> gl \lambda
+iabbrev <buffer> gm \mu
+iabbrev <buffer> gn \nu
+iabbrev <buffer> gx \xi
+iabbrev <buffer> gr \rho
+iabbrev <buffer> gs \sigma
+iabbrev <buffer> gf \phi
+iabbrev <buffer> gp \pi
+iabbrev <buffer> gw \omega
+
+nnoremap <buffer> <LocalLeader>i :VimtexCompile<CR>
+nnoremap <buffer> <LocalLeader>e :VimtexErrors<CR>
+nnoremap <buffer> <LocalLeader>o :VimtexView<CR>
+nnoremap <buffer> <LocalLeader>k :VimtexStop<CR>:VimtexClean<CR>
+nnoremap <buffer> <LocalLeader>t :VimtexTocToggle<CR>
+nnoremap <buffer> <LocalLeader>h :split header.sty<CR>