finds.dev← search

// the find

posva/vim-vue

★ 1,281 · Vim Script · MIT · updated Mar 2024

Syntax Highlight for Vue.js components

Vim syntax highlighting for Vue single-file components (.vue files). Handles the multi-language nature of Vue files by embedding HTML, JS, and CSS syntax zones, plus optional pre-processor languages like TypeScript, SCSS, and Pug. The author has posted a deprecation warning pointing to the official vuejs/language-tools instead.

The `g:vue_pre_processors` option is genuinely useful — you can whitelist exactly the languages you care about instead of loading everything and paying the performance cost. The `detect_on_enter` mode that sniffs pre-processors on file open is a smart middle ground. Vader tests exist and cover syntax, indentation, and NERDCommenter integration, which is more than most Vim plugins bother with. Covers the commenting-across-contexts problem that trips everyone up with multi-language files.

The repo is unmaintained — the author says so directly in a warning banner, and the last meaningful activity was years before the 2024 README commit. Vue 3's Composition API and script setup syntax are not well-supported; this plugin was built around the Vue 2 mental model. Performance degradation with pre-processors is a real issue that the workaround only partially addresses, not fixes. For anyone using a modern Neovim setup with nvim-lspconfig and volar, this plugin is unnecessary and potentially conflicting.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →