albibacsi

.vimrc

Aug 5th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. set expandtab
  2. set number
  3. set shiftwidth=4
  4. set softtabstop=4
  5. set cindent
  6. set cinoptions=(0
  7. " Allow tabs in Makefiles.
  8. autocmd FileType make,automake set noexpandtab shiftwidth=8 softtabstop=8
  9. " Trailing whitespace and tabs are forbidden, so highlight them.
  10. highlight ForbiddenWhitespace ctermbg=red guibg=red
  11. match ForbiddenWhitespace /\s\+$\|\t/
  12. " Do not highlight spaces at the end of line while typing on that line.
  13. autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@<!$/
  14.  
  15.  
  16. "curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  17. ":PlugInstall (1 time command!)
  18. call plug#begin('~/.vim/plugged')
  19. Plug 'neomake/neomake'
  20. call plug#end()
  21. call neomake#configure#automake('nrwi', 500)
Advertisement
Add Comment
Please, Sign In to add comment