mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 13:34:39 +01:00
Fix attempt to restore cursor in netrw
This commit is contained in:
parent
34f5c6cf85
commit
bffebe63fc
1 changed files with 3 additions and 0 deletions
3
vimrc
3
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue