Skip to content

defaults: restore cursor position when opening a file #16339

@clason

Description

@clason

Feature already in Vim?

Yes, Vim 7.4.2111

Feature description

What it says on the tin. Vim uses an autocommand in defaults.vim for this: https://github.com/vim/vim/blob/728104da6cd561b8cb2c7142769f7526d725958e/runtime/defaults.vim#L103-L110

(Note: This is the last open item transferred from #6289 so that that issue could be put out of its misery.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilitycompatibility with Vim or older NeovimdefaultsNvim defaults for options, colorscheme/theme, autocmds/events, etc.enhancementfeature requesteventsevents, autocommands

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions