Guest User

Untitled

a guest
Jan 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. ~ > cat .vimrc
  2. set nocompatible " We're running Vim, not Vi!
  3. syntax on " Enable syntax highlighting
  4. filetype on " Enable filetype detection
  5. filetype indent on " Enable filetype-specific indenting
  6. filetype plugin on " Enable filetype-specific plugins
  7. " set t_Co=256
  8. colorscheme darkblue
  9.  
  10. set autoindent
  11. set backup
  12. set backupdir=~/tmp
  13. set dir=~/tmp
  14. set expandtab
  15. set hlsearch
  16. set ignorecase
  17. set incsearch
  18. set nohlsearch
  19. set nostartofline
  20. set novisualbell
  21. set nowrap
  22. set number
  23. set ruler
  24. set shiftwidth=2
  25. set showmatch
  26. set showmode
  27. set smartcase
  28. set smartindent
  29. set smarttab
  30. set softtabstop=2
  31. set tabstop=2
  32. set vb t_vb=
  33.  
  34. au BufNewFile,BufRead *.rb,capfile,Capfile setf ruby
  35.  
  36. " Puppet standard 2 spaces, always
  37. au BufRead,BufNewFile *.pp,*.rb set shiftwidth=2
  38. au BufRead,BufNewFile *.pp,*.rb set softtabstop=2
  39. " Puppet syntax!
  40. au BufRead,BufNewFile *.pp set filetype=puppet
  41.  
  42. au BufRead,BufNewFile * set shiftwidth=2
  43. au BufRead,BufNewFile * set softtabstop=2
  44.  
  45. " Remove trailing whitespaces automaticly on save.
  46. autocmd BufWritePre * :%s/\s\+$//e
  47.  
  48. highlight NobreakSpace ctermbg=red guibg=red
  49. match NobreakSpace / /
Add Comment
Please, Sign In to add comment