From fa967dc9750571d0f462e47a335cebb9a6683629 Mon Sep 17 00:00:00 2001 From: 0scar Date: Mon, 4 Jul 2022 19:10:23 +0200 Subject: Remove 'escaped' backslashes from path --- .config/vim/ftplugin/tex.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- cgit v1.3