Minimalist VIM Config for Svelte

Example of vim editing a .svelte file.

If you’re reading this, you probably like things pretty lightweight. Just pick from the features you want. Here’s what I have configured:

Syntax Highlighting

Add this to your .vimrc file:

syntax on
au BuffReadPost *.svelte set syntax=html

Changing the default color scheme

  1. Install JellyBeans colors with the following:
mkdir -p ~/.vim/colors
cd ~/.vim/colors
curl -O

Note: other themes available on You just add the color package to your ~/.vim/colors folder and follow step 2 with the appropriate name.

2. Add the following line to your .vimrc :

colorscheme jellybeans

Enable Line Numbering

Add this to your .vimrc file:

set number




Web/Mobile Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeff Lombard

Jeff Lombard

Web/Mobile Developer

More from Medium

Integrating Lua with C: Part 4

Use Vim macro for i18next

Neovim for a Better Integrated Experience without Plugins

Vim: E484: Can’t open file /tmp/vGleC01/14