Skip to content

Instantly share code, notes, and snippets.

@thiphariel
Created March 3, 2018 09:29
Show Gist options
  • Save thiphariel/9a4d190ed5bc917b36c5443ebd28c1de to your computer and use it in GitHub Desktop.
Save thiphariel/9a4d190ed5bc917b36c5443ebd28c1de to your computer and use it in GitHub Desktop.
.vimrc
set ai " auto indenting
set ruler " show the cursor position
syntax on " syntax highlighting
set hlsearch " highlight the last searched term
filetype plugin on " use the file type plugins
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif |
\ endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment