From bffebe63fcfc10365f4c497df728d472e7a9b389 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 29 Jun 2020 14:25:33 +0200 Subject: [PATCH] Fix attempt to restore cursor in netrw --- vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc b/vimrc index 13b570a..ec212b9 100644 --- a/vimrc +++ b/vimrc @@ -155,6 +155,9 @@ let g:EditorConfig_exclude_patterns = ['fugitive://.\*'] " Restore last known cursor position function! ResCur() + if &filetype == 'netrw' + return 0 + endif if line("'\"") <= line("$") normal! g`" return 1