Smooth scrolling and syntax highlighting in MacVim
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
精彩评论