Skip to content

Commit

Permalink
Merge pull request #11 from atweiden/ftplugin
Browse files Browse the repository at this point in the history
Add basic ftplugin file
  • Loading branch information
PhilT authored Sep 4, 2023
2 parents 6cb8f9d + 452cb8d commit 68bb842
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion ftplugin/fsharp.vim
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
" Dummy file to shutup logging
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1

let s:save_cpo = &cpo
set cpo&vim

setlocal comments=:///,://!,://
setlocal commentstring=//%s
setlocal formatoptions-=t formatoptions+=croqnl
" j was only added in 7.3.541, so stop complaints about its nonexistence
silent! setlocal formatoptions+=j

" smartindent will be overridden by indentexpr if filetype indent is on, but
" otherwise it's better than nothing.
setlocal smartindent nocindent

setlocal suffixesadd=.fs

let b:undo_ftplugin = "setlocal formatoptions< comments< commentstring< suffixesadd<"

let &cpo = s:save_cpo
unlet s:save_cpo

0 comments on commit 68bb842

Please sign in to comment.