swaggboi

vimrc-dotfile06242020

Jun 24th, 2020
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.07 KB | None | 0 0
  1. " Configuration file for vim
  2. set modelines=0         " CVE-2007-2438
  3.  
  4. " Normally we use vim-extensions. If you want true vi-compatibility
  5. " remove change the following statements
  6. set nocompatible        " Use Vim defaults instead of 100% vi compatibility
  7. set backspace=2         " more powerful backspacing
  8.  
  9. " Don't write backup file if vim is being called by "crontab -e"
  10. au BufWrite /private/tmp/crontab.* set nowritebackup nobackup
  11. " Don't write backup file if vim is being called by "chpass"
  12. au BufWrite /private/etc/pw.* set nowritebackup nobackup
  13.  
  14. let skip_defaults_vim=1
  15.  
  16. " Begin custom stuff
  17.  
  18. " Syntax highlight
  19. syntax enable
  20. " Use dark b/g friendly color
  21. set background=dark
  22. " Some tab stuff? TODO: comment?
  23. set tabstop=8
  24. set softtabstop=4
  25. " Next two lines replace tab with 4 spaces
  26. set expandtab
  27. set shiftwidth=4
  28. filetype indent plugin on
  29. " Line numbers on left
  30. "set number
  31. highlight LineNr term=NONE cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=NONE guibg=NONE
  32. " Highlight search like emacs
  33. set hlsearch
  34. " Change line wrap behavior
  35. "set nowrap
Add Comment
Please, Sign In to add comment