An Ansible Playbook to initialize Debian and Ubuntu systems.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.1KB

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