Skip to content

Instantly share code, notes, and snippets.

@rahbirul
Created January 3, 2013 07:30
Show Gist options
  • Save rahbirul/4441547 to your computer and use it in GitHub Desktop.
Save rahbirul/4441547 to your computer and use it in GitHub Desktop.
My .vimrc
set number
set shiftwidth=4 softtabstop=4
set ai " auto indenting
set history=100 " keep 100 lines of history
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