summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/vim/ftplugin/tex.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/vim/ftplugin/tex.vim b/.config/vim/ftplugin/tex.vim
index c283e69..98a9e75 100644
--- a/.config/vim/ftplugin/tex.vim
+++ b/.config/vim/ftplugin/tex.vim
@@ -5,7 +5,7 @@ function! GetMainDoc()
else
" Find the main document file
" Must be in the same folder of the current file
- let l:maindocs = split(system("grep -lE '\\\\begin{document}' " . expand('%:h') . "/*.tex"), '\n')
+ let l:maindocs = split(system("grep -lE '\\begin{document}' " . expand('%:h') . "/*.tex"), '\n')
if len(l:maindocs) > 0
" Use the first document containing `begin{document}`
return l:maindocs[0]