Advertisement
Guest User

Untitled

a guest
Jul 29th, 2012
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.73 KB | None | 0 0
  1. " All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
  2. " /usr/share/vim/vimfiles/archlinux.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/vimrc), since archlinux.vim will be overwritten
  5. " everytime an upgrade of the vim packages is performed.  It is recommended to
  6. " make changes after sourcing archlinux.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.
  11. runtime! archlinux.vim
  12.  
  13. " If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
  14. " Or better yet, read /usr/share/vim/vim72/vimrc_example.vim or the vim manual
  15. " and configure vim to your own liking!
  16.  
  17. " Set vim settings, not vi
  18. set nocompatible
  19.  
  20. " Wrap long lines to window edge
  21. set wrap
  22.  
  23. " Don't wrap words (wrap only at specific characters)
  24. set linebreak
  25.  
  26. " Show line numbers
  27. set nu
  28.  
  29. " Allow backspace over indentation, end of line and start of line
  30. set backspace=indent,eol,start
  31.  
  32. " Tab is two spaces wide
  33. set tabstop=2
  34.  
  35. " Indent is two spaces wide
  36. set shiftwidth=2
  37.  
  38. " Insert tabs as spaces (to enter tab, use Ctrl+V then tab)
  39. set expandtab
  40.  
  41. " Detect filetype and indent accordingly
  42. filetype plugin indent on
  43.  
  44. " Indent like a C file
  45. set smartindent
  46.  
  47. " Indent like the line before
  48. set autoindent
  49.  
  50. " Syntax highlighting
  51. syntax on
  52.  
  53. " Spell checking
  54. autocmd FileType tex setlocal spell
  55. " set spell
  56.  
  57. " Incremental search
  58. set incsearch
  59.  
  60. "Save and restore position of cursor
  61. autocmd BufReadPost * if line( "'\"") > 0 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement