sxhkd.vim (548B)
1 if exists("b:did_ftplugin") 2 finish 3 endif 4 let b:did_ftplugin = 1 5 6 let b:undo_ftplugin = "setl et< sts< fo< com< cms< inc<" 7 8 " Make sure a hard tab is used, required for most make programs 9 setlocal noexpandtab softtabstop=0 10 11 " Set 'formatoptions' to break comment lines but not other lines, 12 " and insert the comment leader when hitting <CR> or using "o". 13 setlocal fo-=t fo+=croql 14 15 " Set 'comments' to format dashed lists in comments 16 setlocal com=sO:#\ -,mO:#\ \ ,b:# 17 18 " Set 'commentstring' to put the marker after a #. 19 setlocal commentstring=#\ %s