Minimalist VIM Config for Svelte
Syntax highlighting and Line Numbering
1 min readJun 26, 2019
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
- Install JellyBeans colors with the following:
mkdir -p ~/.vim/colors
cd ~/.vim/colors
curl -O https://raw.githubusercontent.com/nanotech/jellybeans.vim/master/colors/jellybeans.vim
Note: other themes available on vimcolors.com. 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