Linux kernel DTS/DTSI syntax highlighting for Vim
Mirror of dts.vim from Ubuntu 14.04
(located in /usr/share/vim/vim74/syntax/dts.vim
of vim-runtime
package)
- Useful for backporting to use in Ubuntu 12.04 or older environment.
- Separate into one standalone syntax file is good for managing (install/update/remove) all vim script/syntax with Vundle, Neobundle, or Vim-Plug.
Add the following lines to your ~/.vimrc
.
autocmd BufRead,BufNewFile *.dts,*.dtsi set filetype=dts
Then, restart vim to apply the changes.