Skip to content

Commit 6c6292f

Browse files
Merge pull request #57 from francoiscabrol/bugfix/45-fix-filetype-in-vim-when-vim-enter
Fix #45 reset the filetype when opening ranger on VimEnter (with vim .)
2 parents 875fd52 + d27a9a5 commit 6c6292f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/ranger.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ else
7878
call delete(s:choice_file_path)
7979
endif
8080
redraw!
81+
" reset the filetype to fix the issue that happens
82+
" when opening ranger on VimEnter (with `vim .`)
83+
filetype detect
8184
endfun
8285
endif
8386

0 commit comments

Comments
 (0)