Skip to content

Commit

Permalink
Merge pull request #2 from benknoble/pr-72-set-browsefilter
Browse files Browse the repository at this point in the history
Set the browsefilter value for filename dialogs
  • Loading branch information
benknoble authored Nov 30, 2021
2 parents dc9080b + 5d74042 commit 3ee1d54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ftplugin/racket.vim
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ endif
"setl commentstring=;;%s
setl commentstring=#\|\ %s\ \|#

if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
let b:browsefilter = "Racket Source Files (*.rkt *.rktl)\t*.rkt;*.rktl\n" .
\ "All Files (*.*)\t*.*\n"
endif

if exists("loaded_matchit") && !exists("b:match_words")
let b:match_words = '#|:|#'
endif
Expand All @@ -61,4 +66,5 @@ let b:undo_ftplugin =
\. "| setl commentstring<"
\. "| nunmap <buffer> K"
\. "| vunmap <buffer> K"
\. "| unlet! b:browsefilter"
\. "| unlet! b:match_words"

0 comments on commit 3ee1d54

Please sign in to comment.