fork(1) download
  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.  
  9. " This line should not be removed as it ensures that various options are
  10. " properly set to work with the Vim-related packages available in Debian.
  11. runtime! debian.vim
  12.  
  13. " Uncomment the next line to make Vim more Vi-compatible
  14. " NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
  15. " options, so any other options should be set AFTER setting 'compatible'.
  16. "set compatible
  17.  
  18. " Vim5 and later versions support syntax highlighting. Uncommenting the next
  19. " line enables syntax highlighting by default.
  20. syntax on
  21.  
  22. " If using a dark background within the editing area and syntax highlighting
  23. " turn on this option as well
  24. set background=dark
  25.  
  26. " Uncomment the following to have Vim jump to the last position when
  27. " reopening a file
  28. "if has("autocmd")
  29. " au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
  30. " \| exe "normal! g'\"" | endif
  31. "endif
  32.  
  33. " Uncomment the following to have Vim load indentation rules and plugins
  34. " according to the detected filetype.
  35. "if has("autocmd")
  36. " filetype plugin indent on
  37. "endif
  38.  
  39. " The following are commented out as they cause vim to behave a lot
  40. " differently from regular Vi. They are highly recommended though.
  41. "set showcmd " Show (partial) command in status line.
  42. "set showmatch " Show matching brackets.
  43. "set ignorecase " Do case insensitive matching
  44. "set smartcase " Do smart case matching
  45. set incsearch " Incremental search
  46. "set autowrite " Automatically save before commands like :next and :make
  47. "set hidden " Hide buffers when they are abandoned
  48. set hlsearch
  49. set number
  50. "set textwidth=70
  51. set laststatus=2
  52. set linebreak
  53. set showcmd
  54. nmap <F2> :exec 'windo '.line('.').'d' <cr>
  55.  
  56.  
  57. " Source a global configuration file if available
  58. " XXX Deprecated, please move your changes here in /etc/vim/vimrc
  59. if filereadable("/etc/vim/vimrc.local")
  60. source /etc/vim/vimrc.local
  61. endif
  62.  
  63. " highlight trailing spaces
  64. au BufNewFile,BufRead * let b:mtrailingws=matchadd('ErrorMsg', '\s\+$', -1)
  65. " highlight tabs between spaces
  66. au BufNewFile,BufRead * let b:mtabbeforesp=matchadd('ErrorMsg', '\v(\t+)\ze( +)', -1)
  67. au BufNewFile,BufRead * let b:mtabaftersp=matchadd('ErrorMsg', '\v( +)\zs(\t+)', -1)
  68. " disable matches in help buffers
  69. au BufEnter,FileType help call clearmatches()
  70.  
  71. " hightlight over 80 symbols
  72. " :match ErrorMsg '\%>80v.\+'
  73. " :au BufWinEnter * let w:m1=matchadd('Search', '\%<81v.\%>77v', -1)
  74. " :au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty