From 53cb9a4c890daf29b201ae9bef5db05bcc586937 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 16 Nov 2019 05:09:41 -0500 Subject: Add OpenSCAD script package Source: https://www.vim.org/scripts/script.php?script_id=3556 https://github.com/sirtaj/vim-openscad --- (limited to '.vim/ftplugin') 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 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 -- cgit v0.9.1