vimrc 531 B

12345678910111213141516171819202122232425262728
  1. execute pathogen#infect()
  2. set nocompatible
  3. syntax on
  4. filetype plugin on
  5. set number
  6. set tabstop=2
  7. set expandtab
  8. set shiftwidth=2
  9. set smartindent
  10. set autoindent
  11. set backspace=indent,eol,start
  12. set shiftround
  13. set ignorecase
  14. set showmode
  15. set ruler
  16. set showcmd
  17. set background=dark
  18. set mouse=a
  19. " Keep undo history across sessions by storing it in a file
  20. if has('persistent_undo')
  21. let myUndoDir = expand('$HOME/.vimundodir')
  22. " Create dirs
  23. call system('mkdir ' . myUndoDir)
  24. let &undodir = myUndoDir
  25. set undofile
  26. endif