summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-03-30 13:36:07 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-03-30 13:36:07 +0100
commita0921a665773c4ffedd5d6d631b6e0de2547f954 (patch)
treeee72fb0d1f7348c138df8fcfd0e5fc65a07b0bc3 /vim
parent6d3c890e15964b38ae53fc075fd7e9d63dc5f75a (diff)
Added latex compilation mappings in ftplugin
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/tex/mappings.vim7
-rw-r--r--vim/vimrc1
2 files changed, 7 insertions, 1 deletions
diff --git a/vim/after/ftplugin/tex/mappings.vim b/vim/after/ftplugin/tex/mappings.vim
index 121cdee..a3b882c 100644
--- a/vim/after/ftplugin/tex/mappings.vim
+++ b/vim/after/ftplugin/tex/mappings.vim
@@ -29,3 +29,10 @@ inoremap <buffer> `s \sigma
inoremap <buffer> `f \phi
inoremap <buffer> `p \pi
inoremap <buffer> `w \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>
diff --git a/vim/vimrc b/vim/vimrc
index 5422db7..3e28d87 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -195,7 +195,6 @@ vnoremap g$ $
vnoremap g^ ^
"" Latex
-nmap <buffer> <F2> <Plug>LatexChangeEnv
let g:tex_fast=""
"" Autocommands