Skip to main content
Share Your Experience: Take the 2024 Developer Survey
1 vote

How do I position cursor according to filetype (gitcommit)?

Even though Vim saves the last known cursor position into viminfo file upon exit, it doesn't restore it by default. Instead, there is a piece of VimScript code at :h restore-cursor (also in defaults....
Matt's user avatar
  • 20.8k

Only top scored, non community-wiki answers of a minimum length are eligible