Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. " nocompatible has to be the first of all ( use the real vimpower )
  2. set nocompatible
  3.  
  4. " vundle
  5. set rtp+=~/.vim/bundle/Vundle.vim
  6. call vundle#begin()
  7. Plugin 'VundleVim/Vundle.vim'
  8. Plugin 'ervandew/supertab'
  9. Plugin 'ctrlpvim/ctrlp.vim'
  10. Plugin 'mileszs/ack.vim'
  11. Plugin 'scrooloose/nerdtree'
  12. Plugin 'vim-syntastic/syntastic'
  13. Plugin 'tpope/vim-fugitive'
  14. Plugin 'mhinz/vim-signify'
  15. Plugin 'joonty/vdebug'
  16. Plugin 'scrooloose/nerdcommenter'
  17. call vundle#end()
  18.  
  19. " syntastic
  20. set statusline+=%#warningmsg#
  21. set statusline+=%{SyntasticStatuslineFlag()}
  22. set statusline+=%*
  23.  
  24. let g:syntastic_always_populate_loc_list = 1
  25. let g:syntastic_auto_loc_list = 1
  26. let g:syntastic_check_on_open = 1
  27. let g:syntastic_check_on_wq = 0
  28.  
  29. " backup rules
  30. set backup " enable backup files (.txt~)
  31. set undofile " enable persistent undo
  32.  
  33. silent execute '!mkdir -p $HOME/.vim/tmp/backup'
  34. set backupdir=$HOME/.vim/tmp/backup " where to store backup
  35. silent execute '!mkdir -p $HOME/.vim/tmp/swap'
  36. set directory=$HOME/.vim/tmp/swap " where to store swap
  37. silent execute '!mkdir -p $HOME/.vim/tmp/views'
  38. set viewdir=$HOME/.vim/tmp/views " where to store view
  39. silent execute '!mkdir -p $HOME/.vim/tmp/undo'
  40. set undodir=$HOME/.vim/tmp/undo " where to store undo
  41.  
  42. " syntax
  43. syntax on " enable syntax highlighting
  44. " filetype
  45. filetype on " enable filetype detection
  46. filetype plugin on " enable filetype plugins
  47. filetype indent on " enable filetype indentation
  48.  
  49. " tabstop settings
  50. set tabstop=4 " a tab found in a file will be represented with 4 columns
  51. set softtabstop=4 " when in insert mode <tab> is pressed move 4 columns
  52. set shiftwidth=4 " indentation is 4 columns
  53. set noexpandtab " tabs are tabs, do not replace with spaces
  54.  
  55. " show linenumbers
  56. set number
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement