/etc/vim/vimrc


SUBMITTED BY: Guest

DATE: Jan. 13, 2013, 3:44 p.m.

FORMAT: Text only

SIZE: 2.5 kB

HITS: 1300

  1. " All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
  2. " /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
  3. " you can find below. If you wish to change any of those settings, you should
  4. " do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
  5. " everytime an upgrade of the vim packages is performed. It is recommended to
  6. " make changes after sourcing debian.vim since it alters the value of the
  7. " 'compatible' option.
  8. " This line should not be removed as it ensures that various options are
  9. " properly set to work with the Vim-related packages available in Debian.
  10. runtime! debian.vim
  11. " Uncomment the next line to make Vim more Vi-compatible
  12. " NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
  13. " options, so any other options should be set AFTER setting 'compatible'.
  14. "set compatible
  15. " Vim5 and later versions support syntax highlighting. Uncommenting the
  16. " following enables syntax highlighting by default.
  17. if has("syntax")
  18. syntax on
  19. endif
  20. " If using a dark background within the editing area and syntax highlighting
  21. " turn on this option as well
  22. set background=dark
  23. " Uncomment the following to have Vim jump to the last position when
  24. " reopening a file
  25. "if has("autocmd")
  26. " au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
  27. "endif
  28. " Uncomment the following to have Vim load indentation rules and plugins
  29. " according to the detected filetype.
  30. "if has("autocmd")
  31. " filetype plugin indent on
  32. "endif
  33. " The following are commented out as they cause vim to behave a lot
  34. " differently from regular Vi. They are highly recommended though.
  35. set showcmd " Show (partial) command in status line.
  36. set laststatus=2
  37. "set showmatch " Show matching brackets.
  38. set ignorecase " Do case insensitive matching
  39. "set smartcase " Do smart case matching
  40. set incsearch " Incremental search
  41. "set autowrite " Automatically save before commands like :next and :make
  42. "set hidden " Hide buffers when they are abandoned
  43. "set mouse=a " Enable mouse usage (all modes)
  44. " Source a global configuration file if available
  45. if filereadable("/etc/vim/vimrc.local")
  46. source /etc/vim/vimrc.local
  47. endif

comments powered by Disqus