Skip to content

Instantly share code, notes, and snippets.

@lbzhang
Forked from veggiefrog/.vimrc
Created June 8, 2018 08:31
Show Gist options
  • Save lbzhang/d0af2b94f7ff91796a0aeeba074f9ccd to your computer and use it in GitHub Desktop.
Save lbzhang/d0af2b94f7ff91796a0aeeba074f9ccd to your computer and use it in GitHub Desktop.

Revisions

  1. @veggiefrog veggiefrog created this gist Nov 19, 2017.
    4 changes: 4 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    " Remember position of last edit and return on reopen
    if has("autocmd")
    au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
    endif