neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

dts.vim (535B)


      1 " Vim filetype plugin file
      2 " Language:             dts/dtsi (device tree files)
      3 " Maintainer:           Wu, Zhenyu <wuzhenyu@ustc.edu>
      4 " Latest Revision:      2024 Apr 12
      5 "                       2024 Jun 02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
      6 
      7 if exists('b:did_ftplugin')
      8  finish
      9 endif
     10 let b:did_ftplugin = 1
     11 
     12 let b:undo_ftplugin = 'setl inc< cms< com<'
     13 
     14 setlocal include=^\\%(#include\\\|/include/\\)
     15 " same as C
     16 setlocal commentstring=/*\ %s\ */
     17 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://