开发者

Smooth scrolling and syntax highlighting in MacVim

开发者 https://www.devze.com 2023-01-02 23:17 出处:网络
Is there any way to get MacVim to scroll more smoothly TextMate style? While I\'m here, is there a syntax file I can edit to add syntax highlighting to files? I have Velocity .vhtml files which are l

Is there any way to get MacVim to scroll more smoothly TextMate style?

While I'm here, is there a syntax file I can edit to add syntax highlighting to files? I have Velocity .vhtml files which are largely regular HTML with a bit of VTL thrown in. If I could just add .vhtml as an extension to the HTML syntax highlighte开发者_开发问答r that would already make things 10x better.


The latter question is pretty easy. Just put this line in ~/.vim/ftdetect/vhtml.vim (or you can append it to your ~/.vimrc):

au BufRead,BufNewFile *.vhtml set filetype=html


There are now several smooth scrolling plugins for Vim / Neovim, such as https://github.com/yonchu/accelerated-smooth-scroll

0

精彩评论

暂无评论...
验证码 换一张
取 消