3 ms·
Off topic: I love vim and use it for everything from writing love notes to assembly. Lately I've picked up using Vue.js with the new .vue files using ES6. What
by IgorPartola 10y ago
Off topic: I love vim and use it for everything from writing love notes to assembly. Lately I've picked up using Vue.js with the new .vue files using ES6. What code highlighting plugin have y'all successfully used for the JS/ES portion of the file that does highlighting well and doesn't just stop working if you scroll up and down in the file? It's driving me a little batty.
- ufmace 10y agoThe stock Javascript stuff works all right for me. After just tracking down a problem I was having with indention that turned out to be a dumb line in my .vimrc, I'd suggest doing a standard troubleshoot - take out all of your extensions and your .vimrc and see if it still does it. If it stops, re-enable stuff until you figure out exactly what's causing the problem.
- oinksoft 10y agoHighly recommend https://github.com/othree/yajs.vim https://github.com/othree/yajs.vim
- IgorPartola 10y agoThat's the one I'm using.
- aeosynth 10y agoThere is a vim-vue plugin: https://github.com/posva/vim-vue https://github.com/posva/vim-vue I'm getting by with the stock html syntax: au BufNewFile,BufRead *.vue set filetype=html
- IgorPartola 10y agoMy current plugin list is: Bundle 'scrooloose/syntastic' Plugin 'tmhedberg/SimpylFold' Plugin 'ipartola/igor-vim' Plugin 'othree/yajs.vim' Plugin 'mxw/vim-jsx' Plugin 'leafgarland/typescript-vim' Plugin 'posva/vim-vue' Plugin 'bronson/vim-trailing-whitespace'