mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Add OpenSCAD support, closes #702
This commit is contained in:
18
ftplugin/openscad.vim
Normal file
18
ftplugin/openscad.vim
Normal file
@@ -0,0 +1,18 @@
|
||||
if polyglot#init#is_disabled(expand('<sfile>:p'), 'openscad', 'ftplugin/openscad.vim')
|
||||
finish
|
||||
endif
|
||||
|
||||
" Blatantly stolen from vim74\ftplugin\c.vim
|
||||
|
||||
" Set 'formatoptions' to break comment lines but not other lines,
|
||||
" and insert the comment leader when hitting <CR> or using "o".
|
||||
setlocal fo-=t fo+=croql
|
||||
|
||||
" Set 'comments' to format dashed lists in comments.
|
||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||
|
||||
" Win32 can filter files in the browse dialog
|
||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||
let b:browsefilter = "OpenSCAD Source Files (*.scad)\t*.scad\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
endif
|
||||
Reference in New Issue
Block a user