summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2022-07-04 17:10:23 +0000
committer0scar <qgt268@alumni.ku.dk>2022-07-04 17:10:23 +0000
commitfa967dc9750571d0f462e47a335cebb9a6683629 (patch)
tree3f58ae3625cc00d9ef2926ee8226e1807a4ab24a
parent333f9934dfcccbf73923d280c4f922621d284816 (diff)
Remove 'escaped' backslashes from path
-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]