diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-11-16 05:09:41 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-11-16 05:16:44 (EST) |
commit | 53cb9a4c890daf29b201ae9bef5db05bcc586937 (patch) | |
tree | 496a9a80a18d68e4635354eb6bc1a76b0d25f095 /.vim/ftplugin | |
parent | dd79e9119478192b33d175038d9c632ef2526199 (diff) | |
download | vim-53cb9a4c890daf29b201ae9bef5db05bcc586937.zip vim-53cb9a4c890daf29b201ae9bef5db05bcc586937.tar.gz vim-53cb9a4c890daf29b201ae9bef5db05bcc586937.tar.bz2 |
Add OpenSCAD script package
Source:
https://www.vim.org/scripts/script.php?script_id=3556
https://github.com/sirtaj/vim-openscad
Diffstat (limited to '.vim/ftplugin')
-rw-r--r-- | .vim/ftplugin/openscad.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.vim/ftplugin/openscad.vim b/.vim/ftplugin/openscad.vim new file mode 100644 index 0000000..f3dd6d3 --- /dev/null +++ b/.vim/ftplugin/openscad.vim @@ -0,0 +1,14 @@ +" 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 |