codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: Kotlin3" Maintainer: Alexander Udalov4" URL: https://github.com/udalov/kotlin-vim5" Last Change: 7 November 20216" 2024 Jan 14 by Vim Project (browsefilter)7 8if exists('b:did_ftplugin') | finish | endif9let b:did_ftplugin = 110 11let s:save_cpo = &cpo12set cpo&vim13 14setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://15setlocal commentstring=//\ %s16 17setlocal formatoptions-=t formatoptions+=croqnl18silent! setlocal formatoptions+=j19 20setlocal includeexpr=substitute(v:fname,'\\.','/','g')21setlocal suffixesadd=.kt22 23let b:undo_ftplugin = "setlocal comments< commentstring< ".24 \ "formatoptions< includeexpr< suffixesadd<"25 26if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")27 let b:browsefilter = "Kotlin Source Files (*.kt, *kts)\t*.kt;*.kts\n"28 if has("win32")29 let b:browsefilter .= "All Files (*.*)\t*\n"30 else31 let b:browsefilter .= "All Files (*)\t*\n"32 endif33 let b:undo_ftplugin .= " | unlet! b:browsefilter"34endif35 36let &cpo = s:save_cpo37unlet s:save_cpo38 