Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. call plug#begin('~/.vim/plugged')
  2. " Directory for plugins
  3.  
  4. Plug 'sbdchd/neoformat'
  5. Plug 'pangloss/vim-javascript'
  6. Plug 'mxw/vim-jsx'
  7. Plug 'elzr/vim-json'
  8. Plug 'heavenshell/vim-jsdoc'
  9. Plug '1995eaton/vim-better-javascript-completion'
  10. " Plugins
  11.  
  12. call plug#end()
  13. " Initialize plugin system
  14.  
  15. autocmd BufWritePre *.js Neoformat
  16. " Run prettier on save
  17.  
  18. :set expandtab " use space instead of tabs
  19. :set tabstop=2 " number of spaces when tab pressed
  20. :set shiftwidth=2 " mnumber of spaces for indentation
  21. :retab " tansform all tabs in the file into spaces
  22. " Tabs settings
  23.  
  24. :set number
  25.  
  26. let g:jsx_ext_required = 0
  27. " Adds jsx highlighting in .js files
  28.  
  29. let g:vimjs#smartcomplete = 1
  30. " Disabled by default. Enabling this will let vim complete matches at any location
  31. " e.g. typing 'ocument' will suggest 'document' if enabled.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement