Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- call plug#begin('~/.vim/plugged')
- " Directory for plugins
- Plug 'sbdchd/neoformat'
- Plug 'pangloss/vim-javascript'
- Plug 'mxw/vim-jsx'
- Plug 'elzr/vim-json'
- Plug 'heavenshell/vim-jsdoc'
- Plug '1995eaton/vim-better-javascript-completion'
- " Plugins
- call plug#end()
- " Initialize plugin system
- autocmd BufWritePre *.js Neoformat
- " Run prettier on save
- :set expandtab " use space instead of tabs
- :set tabstop=2 " number of spaces when tab pressed
- :set shiftwidth=2 " mnumber of spaces for indentation
- :retab " tansform all tabs in the file into spaces
- " Tabs settings
- :set number
- let g:jsx_ext_required = 0
- " Adds jsx highlighting in .js files
- let g:vimjs#smartcomplete = 1
- " Disabled by default. Enabling this will let vim complete matches at any location
- " e.g. typing 'ocument' will suggest 'document' if enabled.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement