.vimrc 702 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. execute pathogen#infect()
  2. filetype on
  3. syntax on
  4. colorscheme distinguished
  5. set number
  6. set mouse=a
  7. let mapleader=" "
  8. set hidden
  9. set history=10000
  10. filetype indent on
  11. filetype plugin on
  12. set linebreak
  13. set nowrap
  14. set tabstop=2
  15. set shiftwidth=2
  16. set expandtab
  17. set smartindent
  18. set autoindent
  19. set hlsearch
  20. set showmatch
  21. set laststatus=2
  22. set noshowmode
  23. set undofile
  24. set undodir=~/.vim/undodir
  25. set viminfo='10,\"100,:20,%,n~/.viminfo
  26. set whichwrap=b,s,<,>,[,],h,l
  27. function! ResCur()
  28. if line("'\"") <= line("$")
  29. normal! g`"
  30. return 1
  31. endif
  32. endfunction
  33. augroup resCur
  34. autocmd!
  35. autocmd BufWinEnter * call ResCur()
  36. augroup END
  37. autocmd FileType python set breakindentopt=shift:4
  38. " vim: set ft=vim :