Skip to content

Commit

Permalink
vimrc: can't live without this feature anymore :D
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jan 24, 2016
1 parent 0c43eb0 commit aba1ef8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions etc/root/dot.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ syntax on
set ts=8
set hls
set nu

autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif |
\ endif

0 comments on commit aba1ef8

Please sign in to comment.