commit 14c0ed3f5fb6660683d721f95c3093285b862679
parent 3dcc0df44a2689dd49948637b53c7dee55c841bd
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 30 Sep 2017 23:48:44 +0200
make gf work in LaTeX
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -143,9 +143,6 @@ set mouse=
set hlsearch
-map gf :e <cfile><cr>
-
-
noremap <silent> <Leader>w :call ToggleWrap()<CR>
function ToggleWrap()
if &tw
@@ -177,3 +174,5 @@ function ToggleWrap()
endif
endfunction
+" add .tex when doing gf
+set suffixesadd+=.tex