diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2022-02-21 00:04:43 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2022-02-21 00:07:11 +0100 |
commit | 83422e0a1fcfc88f3475104b0e0674e8dbe3130e (patch) | |
tree | 94b9af10f5801fb3711088ee4f879e6995ae73c9 | |
parent | b77c5f11070ecb2ff343aa18b4ea859e6168f16c (diff) | |
download | vim-polyglot-83422e0a1fcfc88f3475104b0e0674e8dbe3130e.tar.gz vim-polyglot-83422e0a1fcfc88f3475104b0e0674e8dbe3130e.zip |
Use old version of vim repository, fixes #779
closes #780
-rw-r--r-- | autoload/julia_latex_symbols.vim | 421 | ||||
-rw-r--r-- | autoload/polyglot/ft.vim | 739 | ||||
-rw-r--r-- | autoload/unison.vim | 2 | ||||
-rw-r--r-- | extras/filetype.vim | 3 | ||||
-rw-r--r-- | extras/menu.vim | 675 | ||||
-rw-r--r-- | ftplugin/crystal.vim | 2 | ||||
-rw-r--r-- | ftplugin/julia.vim | 2 | ||||
-rw-r--r-- | ftplugin/plantuml.vim | 1 | ||||
-rw-r--r-- | indent/plantuml.vim | 1 | ||||
-rw-r--r-- | indent/yaml.vim | 17 | ||||
-rw-r--r-- | packages.yaml | 864 | ||||
-rwxr-xr-x | scripts/build | 11 | ||||
-rw-r--r-- | syntax/plantuml.vim | 1 | ||||
-rw-r--r-- | syntax/solidity.vim | 14 |
14 files changed, 1568 insertions, 1185 deletions
diff --git a/autoload/julia_latex_symbols.vim b/autoload/julia_latex_symbols.vim index 5fb5821a..05d1fb6a 100644 --- a/autoload/julia_latex_symbols.vim +++ b/autoload/julia_latex_symbols.vim @@ -3,7 +3,7 @@ if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'autoload/julia_latex endif " This file is autogenerated from the script 'generate_latex_symbols_table.jl' -" The symbols are based on Julia version 1.5.0-DEV.67 +" The symbols are based on Julia version 1.9.0-DEV.16 scriptencoding utf-8 @@ -267,7 +267,7 @@ function! julia_latex_symbols#get_dict() \ '\^c': 'ᶜ', \ '\^f': 'ᶠ', \ '\^iota': 'ᶥ', - \ '\^Phi': 'ᶲ', + \ '\^ltphi': 'ᶲ', \ '\^z': 'ᶻ', \ '\^theta': 'ᶿ', \ '\enspace': ' ', @@ -281,8 +281,8 @@ function! julia_latex_symbols#get_dict() \ '\lq': '‘', \ '\rq': '’', \ '\reapos': '‛', - \ '\quotedblleft': '“', - \ '\quotedblright': '”', + \ '\ldq': '“', + \ '\rdq': '”', \ '\dagger': '†', \ '\ddagger': '‡', \ '\bullet': '•', @@ -374,10 +374,12 @@ function! julia_latex_symbols#get_dict() \ '\scrH': 'ℋ', \ '\frakH': 'ℌ', \ '\bbH': 'ℍ', + \ '\ith': 'ℎ', \ '\planck': 'ℎ', \ '\hslash': 'ℏ', \ '\scrI': 'ℐ', \ '\Im': 'ℑ', + \ '\frakI': 'ℑ', \ '\scrL': 'ℒ', \ '\ell': 'ℓ', \ '\bbN': 'ℕ', @@ -387,6 +389,7 @@ function! julia_latex_symbols#get_dict() \ '\bbQ': 'ℚ', \ '\scrR': 'ℛ', \ '\Re': 'ℜ', + \ '\frakR': 'ℜ', \ '\bbR': 'ℝ', \ '\xrat': '℞', \ '\trademark': '™', @@ -759,7 +762,9 @@ function! julia_latex_symbols#get_dict() \ '\veebar': '⊻', \ '\xor': '⊻', \ '\barwedge': '⊼', + \ '\nand': '⊼', \ '\barvee': '⊽', + \ '\nor': '⊽', \ '\rightanglearc': '⊾', \ '\varlrtriangle': '⊿', \ '\bigwedge': '⋀', @@ -1009,6 +1014,7 @@ function! julia_latex_symbols#get_dict() \ '\astrosun': '☉', \ '\:phone:': '☎', \ '\:ballot_box_with_check:': '☑', + \ '\:umbrella_with_rain_drops:': '☔', \ '\:umbrella:': '☔', \ '\:coffee:': '☕', \ '\:point_up:': '☝', @@ -1097,6 +1103,7 @@ function! julia_latex_symbols#get_dict() \ '\:soccer:': '⚽', \ '\:baseball:': '⚾', \ '\:snowman:': '⛄', + \ '\:snowman_without_snow:': '⛄', \ '\:partly_sunny:': '⛅', \ '\:ophiuchus:': '⛎', \ '\:no_entry:': '⛔', @@ -1352,8 +1359,8 @@ function! julia_latex_symbols#get_dict() \ '\intcup': '⨚', \ '\upint': '⨛', \ '\lowint': '⨜', - \ '\Join': '⨝', \ '\join': '⨝', + \ '\bbsemi': '⨟', \ '\ringplus': '⨢', \ '\plushat': '⨣', \ '\simplus': '⨤', @@ -1541,6 +1548,11 @@ function! julia_latex_symbols#get_dict() \ '\forksnot': '⫝', \ '\dashV': '⫣', \ '\Dashv': '⫤', + \ '\Top': '⫪', + \ '\downvDash': '⫪', + \ '\upvDash': '⫫', + \ '\Bot': '⫫', + \ '\indep': '⫫', \ '\interleave': '⫴', \ '\tdcol': '⫶', \ '\lllnest': '⫷', @@ -1625,6 +1637,9 @@ function! julia_latex_symbols#get_dict() \ '\:part_alternation_mark:': '〽', \ '\:congratulations:': '㊗', \ '\:secret:': '㊙', + \ '\^uparrow': 'ꜛ', + \ '\^downarrow': 'ꜜ', + \ '\^!': 'ꜝ', \ '\bfA': '𝐀', \ '\bfB': '𝐁', \ '\bfC': '𝐂', @@ -2309,7 +2324,7 @@ function! julia_latex_symbols#get_dict() \ '\bfbeta': '𝛃', \ '\bfgamma': '𝛄', \ '\bfdelta': '𝛅', - \ '\bfepsilon': '𝛆', + \ '\bfvarepsilon': '𝛆', \ '\bfzeta': '𝛇', \ '\bfeta': '𝛈', \ '\bftheta': '𝛉', @@ -2331,7 +2346,7 @@ function! julia_latex_symbols#get_dict() \ '\bfpsi': '𝛙', \ '\bfomega': '𝛚', \ '\bfpartial': '𝛛', - \ '\bfvarepsilon': '𝛜', + \ '\bfepsilon': '𝛜', \ '\bfvartheta': '𝛝', \ '\bfvarkappa': '𝛞', \ '\bfphi': '𝛟', @@ -2367,7 +2382,7 @@ function! julia_latex_symbols#get_dict() \ '\itbeta': '𝛽', \ '\itgamma': '𝛾', \ '\itdelta': '𝛿', - \ '\itepsilon': '𝜀', + \ '\itvarepsilon': '𝜀', \ '\itzeta': '𝜁', \ '\iteta': '𝜂', \ '\ittheta': '𝜃', @@ -2384,15 +2399,15 @@ function! julia_latex_symbols#get_dict() \ '\itsigma': '𝜎', \ '\ittau': '𝜏', \ '\itupsilon': '𝜐', - \ '\itphi': '𝜑', + \ '\itvarphi': '𝜑', \ '\itchi': '𝜒', \ '\itpsi': '𝜓', \ '\itomega': '𝜔', \ '\itpartial': '𝜕', - \ '\itvarepsilon': '𝜖', + \ '\itepsilon': '𝜖', \ '\itvartheta': '𝜗', \ '\itvarkappa': '𝜘', - \ '\itvarphi': '𝜙', + \ '\itphi': '𝜙', \ '\itvarrho': '𝜚', \ '\itvarpi': '𝜛', \ '\biAlpha': '𝜜', @@ -2425,7 +2440,7 @@ function! julia_latex_symbols#get_dict() \ '\bibeta': '𝜷', \ '\bigamma': '𝜸', \ '\bidelta': '𝜹', - \ '\biepsilon': '𝜺', + \ '\bivarepsilon': '𝜺', \ '\bizeta': '𝜻', \ '\bieta': '𝜼', \ '\bitheta': '𝜽', @@ -2442,15 +2457,15 @@ function! julia_latex_symbols#get_dict() \ '\bisigma': '𝝈', \ '\bitau': '𝝉', \ '\biupsilon': '𝝊', - \ '\biphi': '𝝋', + \ '\bivarphi': '𝝋', \ '\bichi': '𝝌', \ '\bipsi': '𝝍', \ '\biomega': '𝝎', \ '\bipartial': '𝝏', - \ '\bivarepsilon': '𝝐', + \ '\biepsilon': '𝝐', \ '\bivartheta': '𝝑', \ '\bivarkappa': '𝝒', - \ '\bivarphi': '𝝓', + \ '\biphi': '𝝓', \ '\bivarrho': '𝝔', \ '\bivarpi': '𝝕', \ '\bsansAlpha': '𝝖', @@ -2483,7 +2498,7 @@ function! julia_latex_symbols#get_dict() \ '\bsansbeta': '𝝱', \ '\bsansgamma': '𝝲', \ '\bsansdelta': '𝝳', - \ '\bsansepsilon': '𝝴', + \ '\bsansvarepsilon': '𝝴', \ '\bsanszeta': '𝝵', \ '\bsanseta': '𝝶', \ '\bsanstheta': '𝝷', @@ -2500,15 +2515,15 @@ function! julia_latex_symbols#get_dict() \ '\bsanssigma': '𝞂', \ '\bsanstau': '𝞃', \ '\bsansupsilon': '𝞄', - \ '\bsansphi': '𝞅', + \ '\bsansvarphi': '𝞅', \ '\bsanschi': '𝞆', \ '\bsanspsi': '𝞇', \ '\bsansomega': '𝞈', \ '\bsanspartial': '𝞉', - \ '\bsansvarepsilon': '𝞊', + \ '\bsansepsilon': '𝞊', \ '\bsansvartheta': '𝞋', \ '\bsansvarkappa': '𝞌', - \ '\bsansvarphi': '𝞍', + \ '\bsansphi': '𝞍', \ '\bsansvarrho': '𝞎', \ '\bsansvarpi': '𝞏', \ '\bisansAlpha': '𝞐', @@ -2541,7 +2556,7 @@ function! julia_latex_symbols#get_dict() \ '\bisansbeta': '𝞫', \ '\bisansgamma': '𝞬', \ '\bisansdelta': '𝞭', - \ '\bisansepsilon': '𝞮', + \ '\bisansvarepsilon': '𝞮', \ '\bisanszeta': '𝞯', \ '\bisanseta': '𝞰', \ '\bisanstheta': '𝞱', @@ -2558,15 +2573,15 @@ function! julia_latex_symbols#get_dict() \ '\bisanssigma': '𝞼', \ '\bisanstau': '𝞽', \ '\bisansupsilon': '𝞾', - \ '\bisansphi': '𝞿', + \ '\bisansvarphi': '𝞿', \ '\bisanschi': '𝟀', \ '\bisanspsi': '𝟁', \ '\bisansomega': '𝟂', \ '\bisanspartial': '𝟃', - \ '\bisansvarepsilon': '𝟄', + \ '\bisansepsilon': '𝟄', \ '\bisansvartheta': '𝟅', \ '\bisansvarkappa': '𝟆', - \ '\bisansvarphi': '𝟇', + \ '\bisansphi': '𝟇', \ '\bisansvarrho': '𝟈', \ '\bisansvarpi': '𝟉', \ '\bfDigamma': '𝟊', @@ -2686,6 +2701,9 @@ function! julia_latex_symbols#get_dict() \ '\:sun_with_face:': '🌞', \ '\:star2:': '🌟', \ '\:stars:': '🌠', + \ '\:hotdog:': '🌭', + \ '\:taco:': '🌮', + \ '\:burrito:': '🌯', \ '\:chestnut:': '🌰', \ '\:seedling:': '🌱', \ '\:evergreen_tree:': '🌲', @@ -2752,7 +2770,7 @@ function! julia_latex_symbols#get_dict() \ '\:cake:': '🍰', \ '\:bento:': '🍱', \ '\:stew:': '🍲', - \ '\:egg:': '🍳', + \ '\:fried_egg:': '🍳', \ '\:fork_and_knife:': '🍴', \ '\:tea:': '🍵', \ '\:sake:': '🍶', @@ -2762,6 +2780,8 @@ function! julia_latex_symbols#get_dict() \ '\:beer:': '🍺', \ '\:beers:': '🍻', \ '\:baby_bottle:': '🍼', + \ '\:champagne:': '🍾', + \ '\:popcorn:': '🍿', \ '\:ribbon:': '🎀', \ '\:gift:': '🎁', \ '\:birthday:': '🎂', @@ -2819,11 +2839,17 @@ function! julia_latex_symbols#get_dict() \ '\:snowboarder:': '🏂', \ '\:runner:': '🏃', \ '\:surfer:': '🏄', + \ '\:sports_medal:': '🏅', \ '\:trophy:': '🏆', \ '\:horse_racing:': '🏇', \ '\:football:': '🏈', \ '\:rugby_football:': '🏉', \ '\:swimmer:': '🏊', + \ '\:cricket_bat_and_ball:': '🏏', + \ '\:volleyball:': '🏐', + \ '\:field_hockey_stick_and_ball:': '🏑', + \ '\:ice_hockey_stick_and_puck:': '🏒', + \ '\:table_tennis_paddle_and_ball:': '🏓', \ '\:house:': '🏠', \ '\:house_with_garden:': '🏡', \ '\:office:': '🏢', @@ -2841,6 +2867,10 @@ function! julia_latex_symbols#get_dict() \ '\:izakaya_lantern:': '🏮', \ '\:japanese_castle:': '🏯', \ '\:european_castle:': '🏰', + \ '\:waving_black_flag:': '🏴', + \ '\:badminton_racquet_and_shuttlecock:': '🏸', + \ '\:bow_and_arrow:': '🏹', + \ '\:amphora:': '🏺', \ '\:skin-tone-2:': '🏻', \ '\:skin-tone-3:': '🏼', \ '\:skin-tone-4:': '🏽', @@ -2876,7 +2906,7 @@ function! julia_latex_symbols#get_dict() \ '\:bug:': '🐛', \ '\:ant:': '🐜', \ '\:bee:': '🐝', - \ '\:beetle:': '🐞', + \ '\:ladybug:': '🐞', \ '\:fish:': '🐟', \ '\:tropical_fish:': '🐠', \ '\:blowfish:': '🐡', @@ -2952,6 +2982,7 @@ function! julia_latex_symbols#get_dict() \ '\:woman:': '👩', \ '\:family:': '👪', \ '\:couple:': '👫', + \ '\:man_and_woman_holding_hands:': '👫', \ '\:two_men_holding_hands:': '👬', \ '\:two_women_holding_hands:': '👭', \ '\:cop:': '👮', @@ -3070,6 +3101,7 @@ function! julia_latex_symbols#get_dict() \ '\:pager:': '📟', \ '\:fax:': '📠', \ '\:satellite:': '📡', + \ '\:satellite_antenna:': '📡', \ '\:loudspeaker:': '📢', \ '\:mega:': '📣', \ '\:outbox_tray:': '📤', @@ -3092,10 +3124,12 @@ function! julia_latex_symbols#get_dict() \ '\:no_mobile_phones:': '📵', \ '\:signal_strength:': '📶', \ '\:camera:': '📷', + \ '\:camera_with_flash:': '📸', \ '\:video_camera:': '📹', \ '\:tv:': '📺', \ '\:radio:': '📻', \ '\:vhs:': '📼', + \ '\:prayer_beads:': '📿', \ '\:twisted_rightwards_arrows:': '🔀', \ '\:repeat:': '🔁', \ '\:repeat_one:': '🔂', @@ -3158,6 +3192,10 @@ function! julia_latex_symbols#get_dict() \ '\:small_red_triangle_down:': '🔻', \ '\:arrow_up_small:': '🔼', \ '\:arrow_down_small:': '🔽', + \ '\:kaaba:': '🕋', + \ '\:mosque:': '🕌', + \ '\:synagogue:': '🕍', + \ '\:menorah_with_nine_branches:': '🕎', \ '\:clock1:': '🕐', \ '\:clock2:': '🕑', \ '\:clock3:': '🕒', @@ -3182,6 +3220,10 @@ function! julia_latex_symbols#get_dict() \ '\:clock1030:': '🕥', \ '\:clock1130:': '🕦', \ '\:clock1230:': '🕧', + \ '\:man_dancing:': '🕺', + \ '\:middle_finger:': '🖕', + \ '\:spock-hand:': '🖖', + \ '\:black_heart:': '🖤', \ '\:mount_fuji:': '🗻', \ '\:tokyo_tower:': '🗼', \ '\:statue_of_liberty:': '🗽', @@ -3252,6 +3294,10 @@ function! julia_latex_symbols#get_dict() \ '\:pouting_cat:': '😾', \ '\:crying_cat_face:': '😿', \ '\:scream_cat:': '🙀', + \ '\:slightly_frowning_face:': '🙁', + \ '\:slightly_smiling_face:': '🙂', + \ '\:upside_down_face:': '🙃', + \ '\:face_with_rolling_eyes:': '🙄', \ '\:no_good:': '🙅', \ '\:ok_woman:': '🙆', \ '\:bow:': '🙇', @@ -3332,5 +3378,328 @@ function! julia_latex_symbols#get_dict() \ '\:passport_control:': '🛂', \ '\:customs:': '🛃', \ '\:baggage_claim:': '🛄', - \ '\:left_luggage:': '🛅'} + \ '\:left_luggage:': '🛅', + \ '\:sleeping_accommodation:': '🛌', + \ '\:place_of_worship:': '🛐', + \ '\:octagonal_sign:': '🛑', + \ '\:shopping_trolley:': '🛒', + \ '\:hindu_temple:': '🛕', + \ '\:hut:': '🛖', + \ '\:elevator:': '🛗', + \ '\:airplane_departure:': '🛫', + \ '\:airplane_arriving:': '🛬', + \ '\:scooter:': '🛴', + \ '\:motor_scooter:': '🛵', + \ '\:canoe:': '🛶', + \ '\:sled:': '🛷', + \ '\:flying_saucer:': '🛸', + \ '\:skateboard:': '🛹', + \ '\:auto_rickshaw:': '🛺', + \ '\:pickup_truck:': '🛻', + \ '\:roller_skate:': '🛼', + \ '\:large_orange_circle:': '🟠', + \ '\:large_yellow_circle:': '🟡', + \ '\:large_green_circle:': '🟢', + \ '\:large_purple_circle:': '🟣', + \ '\:large_brown_circle:': '🟤', + \ '\:large_red_square:': '🟥', + \ '\:large_blue_square:': '🟦', + \ '\:large_orange_square:': '🟧', + \ '\:large_yellow_square:': '🟨', + \ '\:large_green_square:': '🟩', + \ '\:large_purple_square:': '🟪', + \ '\:large_brown_square:': '🟫', + \ '\:pinched_fingers:': '🤌', + \ '\:white_heart:': '🤍', + \ '\:brown_heart:': '🤎', + \ '\:pinching_hand:': '🤏', + \ '\:zipper_mouth_face:': '🤐', + \ '\:money_mouth_face:': '🤑', + \ '\:face_with_thermometer:': '🤒', + \ '\:nerd_face:': '🤓', + \ '\:thinking_face:': '🤔', + \ '\:face_with_head_bandage:': '🤕', + \ '\:robot_face:': '🤖', + \ '\:hugging_face:': '🤗', + \ '\:the_horns:': '🤘', + \ '\:call_me_hand:': '🤙', + \ '\:raised_back_of_hand:': '🤚', + \ '\:left-facing_fist:': '🤛', + \ '\:right-facing_fist:': '🤜', + \ '\:handshake:': '🤝', + \ '\:crossed_fingers:': '🤞', + \ '\:i_love_you_hand_sign:': '🤟', + \ '\:face_with_cowboy_hat:': '🤠', + \ '\:clown_face:': '🤡', + \ '\:nauseated_face:': '🤢', + \ '\:rolling_on_the_floor_laughing:': '🤣', + \ '\:drooling_face:': '🤤', + \ '\:lying_face:': '🤥', + \ '\:face_palm:': '🤦', + \ '\:sneezing_face:': '🤧', + \ '\:face_with_raised_eyebrow:': '🤨', + \ '\:star-struck:': '🤩', + \ '\:zany_face:': '🤪', + \ '\:shushing_face:': '🤫', + \ '\:face_with_symbols_on_mouth:': '🤬', + \ '\:face_with_hand_over_mouth:': '🤭', + \ '\:face_vomiting:': '🤮', + \ '\:exploding_head:': '🤯', + \ '\:pregnant_woman:': '🤰', + \ '\:breast-feeding:': '🤱', + \ '\:palms_up_together:': '🤲', + \ '\:selfie:': '🤳', + \ '\:prince:': '🤴', + \ '\:person_in_tuxedo:': '🤵', + \ '\:mrs_claus:': '🤶', + \ '\:shrug:': '🤷', + \ '\:person_doing_cartwheel:': '🤸', + \ '\:juggling:': '🤹', + \ '\:fencer:': '🤺', + \ '\:wrestlers:': '🤼', + \ '\:water_polo:': '🤽', + \ '\:handball:': '🤾', + \ '\:diving_mask:': '🤿', + \ '\:wilted_flower:': '🥀', + \ '\:drum_with_drumsticks:': '🥁', + \ '\:clinking_glasses:': '🥂', + \ '\:tumbler_glass:': '🥃', + \ '\:spoon:': '🥄', + \ '\:goal_net:': '🥅', + \ '\:first_place_medal:': '🥇', + \ '\:second_place_medal:': '🥈', + \ '\:third_place_medal:': '🥉', + \ '\:boxing_glove:': '🥊', + \ '\:martial_arts_uniform:': '🥋', + \ '\:curling_stone:': '🥌', + \ '\:lacrosse:': '🥍', + \ '\:softball:': '🥎', + \ '\:flying_disc:': '🥏', + \ '\:croissant:': '🥐', + \ '\:avocado:': '🥑', + \ '\:cucumber:': '🥒', + \ '\:bacon:': '🥓', + \ '\:potato:': '🥔', + \ '\:carrot:': '🥕', + \ '\:baguette_bread:': '🥖', + \ '\:green_salad:': '🥗', + \ '\:shallow_pan_of_food:': '🥘', + \ '\:stuffed_flatbread:': '🥙', + \ '\:egg:': '🥚', + \ '\:glass_of_milk:': '🥛', + \ '\:peanuts:': '🥜', + \ '\:kiwifruit:': '🥝', + \ '\:pancakes:': '🥞', + \ '\:dumpling:': '🥟', + \ '\:fortune_cookie:': '🥠', + \ '\:takeout_box:': '🥡', + \ '\:chopsticks:': '🥢', + \ '\:bowl_with_spoon:': '🥣', + \ '\:cup_with_straw:': '🥤', + \ '\:coconut:': '🥥', + \ '\:broccoli:': '🥦', + \ '\:pie:': '🥧', + \ '\:pretzel:': '🥨', + \ '\:cut_of_meat:': '🥩', + \ '\:sandwich:': '🥪', + \ '\:canned_food:': '🥫', + \ '\:leafy_green:': '🥬', + \ '\:mango:': '🥭', + \ '\:moon_cake:': '🥮', + \ '\:bagel:': '🥯', + \ '\:smiling_face_with_3_hearts:': '🥰', + \ '\:yawning_face:': '🥱', + \ '\:smiling_face_with_tear:': '🥲', + \ '\:partying_face:': '🥳', + \ '\:woozy_face:': '🥴', + \ '\:hot_face:': '🥵', + \ '\:cold_face:': '🥶', + \ '\:ninja:': '🥷', + \ '\:disguised_face:': '🥸', + \ '\:pleading_face:': '🥺', + \ '\:sari:': '🥻', + \ '\:lab_coat:': '🥼', + \ '\:goggles:': '🥽', + \ '\:hiking_boot:': '🥾', + \ '\:womans_flat_shoe:': '🥿', + \ '\:crab:': '🦀', + \ '\:lion_face:': '🦁', + \ '\:scorpion:': '🦂', + \ '\:turkey:': '🦃', + \ '\:unicorn_face:': '🦄', + \ '\:eagle:': '🦅', + \ '\:duck:': '🦆', + \ '\:bat:': '🦇', + \ '\:shark:': '🦈', + \ '\:owl:': '🦉', + \ '\:fox_face:': '🦊', + \ '\:butterfly:': '🦋', + \ '\:deer:': '🦌', + \ '\:gorilla:': '🦍', + \ '\:lizard:': '🦎', + \ '\:rhinoceros:': '🦏', + \ '\:shrimp:': '🦐', + \ '\:squid:': '🦑', + \ '\:giraffe_face:': '🦒', + \ '\:zebra_face:': '🦓', + \ '\:hedgehog:': '🦔', + \ '\:sauropod:': '🦕', + \ '\:t-rex:': '🦖', + \ '\:cricket:': '🦗', + \ '\:kangaroo:': '🦘', + \ '\:llama:': '🦙', + \ '\:peacock:': '🦚', + \ '\:hippopotamus:': '🦛', + \ '\:parrot:': '🦜', + \ '\:raccoon:': '🦝', + \ '\:lobster:': '🦞', + \ '\:mosquito:': '🦟', + \ '\:microbe:': '🦠', + \ '\:badger:': '🦡', + \ '\:swan:': '🦢', + \ '\:mammoth:': '🦣', + \ '\:dodo:': '🦤', + \ '\:sloth:': '🦥', + \ '\:otter:': '🦦', + \ '\:orangutan:': '🦧', + \ '\:skunk:': '🦨', + \ '\:flamingo:': '🦩', + \ '\:oyster:': '🦪', + \ '\:beaver:': '🦫', + \ '\:bison:': '🦬', + \ '\:seal:': '🦭', + \ '\:guide_dog:': '🦮', + \ '\:probing_cane:': '🦯', + \ '\:bone:': '🦴', + \ '\:leg:': '🦵', + \ '\:foot:': '🦶', + \ '\:tooth:': '🦷', + \ '\:superhero:': '🦸', + \ '\:supervillain:': '🦹', + \ '\:safety_vest:': '🦺', + \ '\:ear_with_hearing_aid:': '🦻', + \ '\:motorized_wheelchair:': '🦼', + \ '\:manual_wheelchair:': '🦽', + \ '\:mechanical_arm:': '🦾', + \ '\:mechanical_leg:': '🦿', + \ '\:cheese_wedge:': '🧀', + \ '\:cupcake:': '🧁', + \ '\:salt:': '🧂', + \ '\:beverage_box:': '🧃', + \ '\:garlic:': '🧄', + \ '\:onion:': '🧅', + \ '\:falafel:': '🧆', + \ '\:waffle:': '🧇', + \ '\:butter:': '🧈', + \ '\:mate_drink:': '🧉', + \ '\:ice_cube:': '🧊', + \ '\:bubble_tea:': '🧋', + \ '\:standing_person:': '🧍', + \ '\:kneeling_person:': '🧎', + \ '\:deaf_person:': '🧏', + \ '\:face_with_monocle:': '🧐', + \ '\:adult:': '🧑', + \ '\:child:': '🧒', + \ '\:older_adult:': '🧓', + \ '\:bearded_person:': '🧔', + \ '\:person_with_headscarf:': '🧕', + \ '\:person_in_steamy_room:': '🧖', + \ '\:person_climbing:': '🧗', + \ '\:person_in_lotus_position:': '🧘', + \ '\:mage:': '🧙', + \ '\:fairy:': '🧚', + \ '\:vampire:': '🧛', + \ '\:merperson:': '🧜', + \ '\:elf:': '🧝', + \ '\:genie:': '🧞', + \ '\:zombie:': '🧟', + \ '\:brain:': '🧠', + \ '\:orange_heart:': '🧡', + \ '\:billed_cap:': '🧢', + \ '\:scarf:': '🧣', + \ '\:gloves:': '🧤', + \ '\:coat:': '🧥', + \ '\:socks:': '🧦', + \ '\:red_envelope:': '🧧', + \ '\:firecracker:': '🧨', + \ '\:jigsaw:': '🧩', + \ '\:test_tube:': '🧪', + \ '\:petri_dish:': '🧫', + \ '\:dna:': '🧬', + \ '\:compass:': '🧭', + \ '\:abacus:': '🧮', + \ '\:fire_extinguisher:': '🧯', + \ '\:toolbox:': '🧰', + \ '\:bricks:': '🧱', + \ '\:magnet:': '🧲', + \ '\:luggage:': '🧳', + \ '\:lotion_bottle:': '🧴', + \ '\:thread:': '🧵', + \ '\:yarn:': '🧶', + \ '\:safety_pin:': '🧷', + \ '\:teddy_bear:': '🧸', + \ '\:broom:': '🧹', + \ '\:basket:': '🧺', + \ '\:roll_of_paper:': '🧻', + \ '\:soap:': '🧼', + \ '\:sponge:': '🧽', + \ '\:receipt:': '🧾', + \ '\:nazar_amulet:': '🧿', + \ '\:ballet_shoes:': '🩰', + \ '\:one-piece_swimsuit:': '🩱', + \ '\:briefs:': '🩲', + \ '\:shorts:': '🩳', + \ '\:thong_sandal:': '🩴', + \ '\:drop_of_blood:': '🩸', + \ '\:adhesive_bandage:': '🩹', + \ '\:stethoscope:': '🩺', + \ '\:yo-yo:': '🪀', + \ '\:kite:': '🪁', + \ '\:parachute:': '🪂', + \ '\:boomerang:': '🪃', + \ '\:magic_wand:': '🪄', + \ '\:pinata:': '🪅', + \ '\:nesting_dolls:': '🪆', + \ '\:ringed_planet:': '🪐', + \ '\:chair:': '🪑', + \ '\:razor:': '🪒', + \ '\:axe:': '🪓', + \ '\:diya_lamp:': '🪔', + \ '\:banjo:': '🪕', + \ '\:military_helmet:': '🪖', + \ '\:accordion:': '🪗', + \ '\:long_drum:': '🪘', + \ '\:coin:': '🪙', + \ '\:carpentry_saw:': '🪚', + \ '\:screwdriver:': '🪛', + \ '\:ladder:': '🪜', + \ '\:hook:': '🪝', + \ '\:mirror:': '🪞', + \ '\:window:': '🪟', + \ '\:plunger:': '🪠', + \ '\:sewing_needle:': '🪡', + \ '\:knot:': '🪢', + \ '\:bucket:': '🪣', + \ '\:mouse_trap:': '🪤', + \ '\:toothbrush:': '🪥', + \ '\:headstone:': '🪦', + \ '\:placard:': '🪧', + \ '\:rock:': '🪨', + \ '\:fly:': '🪰', + \ '\:worm:': '🪱', + \ '\:beetle:': '🪲', + \ '\:cockroach:': '🪳', + \ '\:potted_plant:': '🪴', + \ '\:wood:': '🪵', + \ '\:feather:': '🪶', + \ '\:anatomical_heart:': '🫀', + \ '\:lungs:': '🫁', + \ '\:people_hugging:': '🫂', + \ '\:blueberries:': '🫐', + \ '\:bell_pepper:': '🫑', + \ '\:olive:': '🫒', + \ '\:flatbread:': '🫓', + \ '\:tamale:': '🫔', + \ '\:fondue:': '🫕', + \ '\:teapot:': '🫖'} endfunction diff --git a/autoload/polyglot/ft.vim b/autoload/polyglot/ft.vim index a8ca9008..92c65ac1 100644 --- a/autoload/polyglot/ft.vim +++ b/autoload/polyglot/ft.vim @@ -1,83 +1,89 @@ -vim9script +" Vim functions for file type detection +" +" Maintainer: Bram Moolenaar <Bram@vim.org> +" Last Change: 2022 Jan 31 -# Vim functions for file type detection -# -# Maintainer: Bram Moolenaar <Bram@vim.org> -# Last Change: 2022 Feb 05 +" These functions are moved here from runtime/filetype.vim to make startup +" faster. -# These functions are moved here from runtime/filetype.vim to make startup -# faster. +" Line continuation is used here, remove 'C' from 'cpoptions' +let s:cpo_save = &cpo +set cpo&vim -export def Check_inp() +func polyglot#ft#Check_inp() if getline(1) =~ '^\*' setf abaqus else - var n = 1 - var nmax = line("$") > 500 ? 500 : line("$") + let n = 1 + if line("$") > 500 + let nmax = 500 + else + let nmax = line("$") + endif while n <= nmax if getline(n) =~? "^header surface data" setf trasys break endif - n += 1 + let n = n + 1 endwhile endif -enddef +endfunc -# This function checks for the kind of assembly that is wanted by the user, or -# can be detected from the first five lines of the file. -export def FTasm() - # make sure b:asmsyntax exists +" This function checks for the kind of assembly that is wanted by the user, or +" can be detected from the first five lines of the file. +func polyglot#ft#FTasm() + " make sure b:asmsyntax exists if !exists("b:asmsyntax") - b:asmsyntax = "" + let b:asmsyntax = "" endif if b:asmsyntax == "" - FTasmsyntax() + call polyglot#ft#FTasmsyntax() endif - # if b:asmsyntax still isn't set, default to asmsyntax or GNU + " if b:asmsyntax still isn't set, default to asmsyntax or GNU if b:asmsyntax == "" if exists("g:asmsyntax") - b:asmsyntax = g:asmsyntax + let b:asmsyntax = g:asmsyntax else - b:asmsyntax = "asm" + let b:asmsyntax = "asm" endif endif - exe "setf " .. fnameescape(b:asmsyntax) -enddef + exe "setf " . fnameescape(b:asmsyntax) +endfunc -export def FTasmsyntax() - # see if the file contains any asmsyntax=foo overrides. If so, change - # b:asmsyntax appropriately - var head = " " .. getline(1) .. " " .. getline(2) .. " " - .. getline(3) .. " " .. getline(4) .. " " .. getline(5) .. " " - var match = matchstr(head, '\sasmsyntax=\zs[a-zA-Z0-9]\+\ze\s') +func polyglot#ft#FTasmsyntax() + " see if file contains any asmsyntax=foo overrides. If so, change + " b:asmsyntax appropriately + let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4). + \" ".getline(5)." " + let match = matchstr(head, '\sasmsyntax=\zs[a-zA-Z0-9]\+\ze\s') if match != '' - b:asmsyntax = match + let b:asmsyntax = match elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library')) - b:asmsyntax = "vmasm" + let b:asmsyntax = "vmasm" endif -enddef +endfunc -var ft_visual_basic_content = '\cVB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)' +let s:ft_visual_basic_content = '\cVB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)' -# See FTfrm() for Visual Basic form file detection -export def FTbas() +" See FTfrm() for Visual Basic form file detection +func polyglot#ft#FTbas() if exists("g:filetype_bas") - exe "setf " .. g:filetype_bas + exe "setf " . g:filetype_bas return endif - # most frequent FreeBASIC-specific keywords in distro files - var fb_keywords = '\c^\s*\%(extern\|var\|enum\|private\|scope\|union\|byref\|operator\|constructor\|delete\|namespace\|public\|property\|with\|destructor\|using\)\>\%(\s*[:=(]\)\@!' - var fb_preproc = '\c^\s*\%(#\a\+\|option\s\+\%(byval\|dynamic\|escape\|\%(no\)\=gosub\|nokeyword\|private\|static\)\>\)' - var fb_comment = "^\\s*/'" - # OPTION EXPLICIT, without the leading underscore, is common to many dialects - var qb64_preproc = '\c^\s*\%($\a\+\|option\s\+\%(_explicit\|_\=explicitarray\)\>\)' + " most frequent FreeBASIC-specific keywords in distro files + let fb_keywords = '\c^\s*\%(extern\|var\|enum\|private\|scope\|union\|byref\|operator\|constructor\|delete\|namespace\|public\|property\|with\|destructor\|using\)\>\%(\s*[:=(]\)\@!' + let fb_preproc = '\c^\s*\%(#\a\+\|option\s\+\%(byval\|dynamic\|escape\|\%(no\)\=gosub\|nokeyword\|private\|static\)\>\)' + let fb_comment = "^\\s*/'" + " OPTION EXPLICIT, without the leading underscore, is common to many dialects + let qb64_preproc = '\c^\s*\%($\a\+\|option\s\+\%(_explicit\|_\=explicitarray\)\>\)' - var lines = getline(1, min([line("$"), 100])) + let lines = getline(1, min([line("$"), 100])) if match(lines, fb_preproc) > -1 || match(lines, fb_comment) > -1 || match(lines, fb_keywords) > -1 setf freebasic @@ -88,40 +94,39 @@ export def FTbas() else setf basic endif -enddef +endfunc -export def FTbtm() +func polyglot#ft#FTbtm() if exists("g:dosbatch_syntax_for_btm") && g:dosbatch_syntax_for_btm setf dosbatch else setf btm endif -enddef +endfunc -export def BindzoneCheck(default = '') - if getline(1) .. getline(2) .. getline(3) .. getline(4) - =~ '^; <<>> DiG [0-9.]\+.* <<>>\|$ORIGIN\|$TTL\|IN\s\+SOA' +func polyglot#ft#BindzoneCheck(default) + if getline(1).getline(2).getline(3).getline(4) =~ '^; <<>> DiG [0-9.]\+.* <<>>\|$ORIGIN\|$TTL\|IN\s\+SOA' setf bindzone - elseif default != '' - exe 'setf ' .. default + elseif a:default != '' + exe 'setf ' . a:default endif -enddef +endfunc -export def FTlpc() +func polyglot#ft#FTlpc() if exists("g:lpc_syntax_for_c") - var lnum = 1 + let lnum = 1 while lnum <= 12 if getline(lnum) =~# '^\(//\|inherit\|private\|protected\|nosave\|string\|object\|mapping\|mixed\)' setf lpc return endif - lnum += 1 + let lnum = lnum + 1 endwhile endif setf c -enddef +endfunc -export def FTheader() +func polyglot#ft#FTheader() if match(getline(1, min([line("$"), 200])), '^@\(interface\|end\|class\)') > -1 if exists("g:c_syntax_for_h") setf objc @@ -135,15 +140,15 @@ export def FTheader() else setf cpp endif -enddef +endfunc -# This function checks if one of the first ten lines start with a '@'. In -# that case it is probably a change file. -# If the first line starts with # or ! it's probably a ch file. -# If a line has "main", "include", "//" or "/*" it's probably ch. -# Otherwise CHILL is assumed. -export def FTchange() - var lnum = 1 +" This function checks if one of the first ten lines start with a '@'. In +" that case it is probably a change file. +" If the first line starts with # or ! it's probably a ch file. +" If a line has "main", "include", "//" or "/*" it's probably ch. +" Otherwise CHILL is assumed. +func polyglot#ft#FTchange() + let lnum = 1 while lnum <= 10 if getline(lnum)[0] == '@' setf change @@ -161,101 +166,101 @@ export def FTchange() setf ch return endif - lnum += 1 + let lnum = lnum + 1 endwhile setf chill -enddef +endfunc -export def FTent() - # This function checks for valid cl syntax in the first five lines. - # Look for either an opening comment, '#', or a block start, '{". - # If not found, assume SGML. - var lnum = 1 +func polyglot#ft#FTent() + " This function checks for valid cl syntax in the first five lines. + " Look for either an opening comment, '#', or a block start, '{". + " If not found, assume SGML. + let lnum = 1 while lnum < 6 - var line = getline(lnum) + let line = getline(lnum) if line =~ '^\s*[#{]' setf cl return elseif line !~ '^\s*$' - # Not a blank line, not a comment, and not a block start, - # so doesn't look like valid cl code. + " Not a blank line, not a comment, and not a block start, + " so doesn't look like valid cl code. break endif - lnum += 1 + let lnum = lnum + 1 endw setf dtd -enddef +endfunc -export def ExCheck() - var lines = getline(1, min([line("$"), 100])) +func polyglot#ft#ExCheck() + let lines = getline(1, min([line("$"), 100])) if exists('g:filetype_euphoria') - exe 'setf ' .. g:filetype_euphoria + exe 'setf ' . g:filetype_euphoria elseif match(lines, '^--\|^ifdef\>\|^include\>') > -1 setf euphoria3 else setf elixir endif -enddef +endfunc -export def EuphoriaCheck() +func polyglot#ft#EuphoriaCheck() if exists('g:filetype_euphoria') - exe 'setf ' .. g:filetype_euphoria + exe 'setf ' . g:filetype_euphoria else setf euphoria3 endif -enddef +endfunc -export def DtraceCheck() - var lines = getline(1, min([line("$"), 100])) +func polyglot#ft#DtraceCheck() + let lines = getline(1, min([line("$"), 100])) if match(lines, '^module\>\|^import\>') > -1 - # D files often start with a module and/or import statement. + " D files often start with a module and/or import statement. setf d elseif match(lines, '^#!\S\+dtrace\|#pragma\s\+D\s\+option\|:\S\{-}:\S\{-}:') > -1 setf dtrace else setf d endif -enddef +endfunc -export def FTe() +func polyglot#ft#FTe() if exists('g:filetype_euphoria') - exe 'setf ' .. g:filetype_euphoria + exe 'setf ' . g:filetype_euphoria else - var n = 1 + let n = 1 while n < 100 && n <= line("$") if getline(n) =~ "^\\s*\\(<'\\|'>\\)\\s*$" setf specman return endif - n += 1 + let n = n + 1 endwhile setf eiffel endif -enddef +endfunc -export def FTfrm() +func polyglot#ft#FTfrm() if exists("g:filetype_frm") - exe "setf " .. g:filetype_frm + exe "setf " . g:filetype_frm return endif - var lines = getline(1, min([line("$"), 5])) + let lines = getline(1, min([line("$"), 5])) if match(lines, s:ft_visual_basic_content) > -1 setf vb else setf form endif -enddef +endfunc -# Distinguish between Forth and F#. -# Provided by Doug Kearns. -export def FTfs() +" Distinguish between Forth and F#. +" Provided by Doug Kearns. +func polyglot#ft#FTfs() if exists("g:filetype_fs") - exe "setf " .. g:filetype_fs + exe "setf " . g:filetype_fs else - var line = getline(nextnonblank(1)) - # comments and colon definitions + let line = getline(nextnonblank(1)) + " comments and colon definitions if line =~ '^\s*\.\=( ' || line =~ '^\s*\\G\= ' || line =~ '^\\$' \ || line =~ '^\s*: \S' setf forth @@ -263,11 +268,11 @@ export def FTfs() setf fsharp endif endif -enddef +endfunc -# Distinguish between HTML, XHTML and Django -export def FThtml() - var n = 1 +" Distinguish between HTML, XHTML and Django +func polyglot#ft#FThtml() + let n = 1 while n < 10 && n <= line("$") if getline(n) =~ '\<DTD\s\+XHTML\s' setf xhtml @@ -277,58 +282,58 @@ export def FThtml() setf htmldjango return endif - n += 1 + let n = n + 1 endwhile setf FALLBACK html -enddef +endfunc -# Distinguish between standard IDL and MS-IDL -export def FTidl() - var n = 1 +" Distinguish between standard IDL and MS-IDL +func polyglot#ft#FTidl() + let n = 1 while n < 50 && n <= line("$") if getline(n) =~ '^\s*import\s\+"\(unknwn\|objidl\)\.idl"' setf msidl return endif - n += 1 + let n = n + 1 endwhile setf idl -enddef - -# Distinguish between "default" and Cproto prototype file. */ -export def ProtoCheck(default: string) - # Cproto files have a comment in the first line and a function prototype in - # the second line, it always ends in ";". Indent files may also have - # comments, thus we can't match comments to see the difference. - # IDL files can have a single ';' in the second line, require at least one - # chacter before the ';'. +endfunc + +" Distinguish between "default" and Cproto prototype file. */ +func polyglot#ft#ProtoCheck(default) + " Cproto files have a comment in the first line and a function prototype in + " the second line, it always ends in ";". Indent files may also have + " comments, thus we can't match comments to see the difference. + " IDL files can have a single ';' in the second line, require at least one + " chacter before the ';'. if getline(2) =~ '.;$' setf cpp else - exe 'setf ' .. default + exe 'setf ' . a:default endif -enddef +endfunc -export def FTm() +func polyglot#ft#FTm() if exists("g:filetype_m") - exe "setf " .. g:filetype_m + exe "setf " . g:filetype_m return endif - # excluding end(for|function|if|switch|while) common to Murphi - var octave_block_terminators = '\<end\%(_try_catch\|classdef\|enumeration\|events\|methods\|parfor\|properties\)\>' + " excluding end(for|function|if|switch|while) common to Murphi + let octave_block_terminators = '\<end\%(_try_catch\|classdef\|enumeration\|events\|methods\|parfor\|properties\)\>' - var objc_preprocessor = '^\s*#\s*\%(import\|include\|define\|if\|ifn\=def\|undef\|line\|error\|pragma\)\>' + let objc_preprocessor = '^\s*#\s*\%(import\|include\|define\|if\|ifn\=def\|undef\|line\|error\|pragma\)\>' - var n = 1 - var saw_comment = 0 # Whether we've seen a multiline comment leader. + let n = 1 + let saw_comment = 0 " Whether we've seen a multiline comment leader. while n < 100 - var line = getline(n) + let line = getline(n) if line =~ '^\s*/\*' - # /* ... */ is a comment in Objective C and Murphi, so we can't conclude - # it's either of them yet, but track this as a hint in case we don't see - # anything more definitive. - saw_comment = 1 + " /* ... */ is a comment in Objective C and Murphi, so we can't conclude + " it's either of them yet, but track this as a hint in case we don't see + " anything more definitive. + let saw_comment = 1 endif if line =~ '^\s*//' || line =~ '^\s*@import\>' || line =~ objc_preprocessor setf objc @@ -339,7 +344,7 @@ export def FTm() setf octave return endif - # TODO: could be Matlab or Octave + " TODO: could be Matlab or Octave if line =~ '^\s*%' setf matlab return @@ -352,24 +357,24 @@ export def FTm() setf murphi return endif - n += 1 + let n = n + 1 endwhile if saw_comment - # We didn't see anything definitive, but this looks like either Objective C - # or Murphi based on the comment leader. Assume the former as it is more - # common. + " We didn't see anything definitive, but this looks like either Objective C + " or Murphi based on the comment leader. Assume the former as it is more + " common. setf objc else - # Default is Matlab + " Default is Matlab setf matlab endif -enddef +endfunc -export def FTmms() - var n = 1 +func polyglot#ft#FTmms() + let n = 1 while n < 20 - var line = getline(n) + let line = getline(n) if line =~ '^\s*\(%\|//\)' || line =~ '^\*' setf mmix return @@ -378,78 +383,78 @@ export def FTmms() setf make return endif - n += 1 + let n = n + 1 endwhile setf mmix -enddef +endfunc -# This function checks if one of the first five lines start with a dot. In -# that case it is probably an nroff file: 'filetype' is set and 1 is returned. -export def FTnroff(): number - if getline(1)[0] .. getline(2)[0] .. getline(3)[0] - .. getline(4)[0] .. getline(5)[0] =~ '\.' +" This function checks if one of the first five lines start with a dot. In +" that case it is probably an nroff file: 'filetype' is set and 1 is returned. +func polyglot#ft#FTnroff() + if getline(1)[0] . getline(2)[0] . getline(3)[0] . getline(4)[0] . getline(5)[0] =~ '\.' setf nroff return 1 endif return 0 -enddef +endfunc -export def FTmm() - var n = 1 +func polyglot#ft#FTmm() + let n = 1 while n < 20 - if getline(n) =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)' + let line = getline(n) + if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)' setf objcpp return endif - n += 1 + let n = n + 1 endwhile setf nroff -enddef +endfunc -export def FTpl() +func polyglot#ft#FTpl() if exists("g:filetype_pl") - exe "setf " .. g:filetype_pl + exe "setf " . g:filetype_pl else - # recognize Prolog by specific text in the first non-empty line - # require a blank after the '%' because Perl uses "%list" and "%translate" - var l = getline(nextnonblank(1)) + " recognize Prolog by specific text in the first non-empty line + " require a blank after the '%' because Perl uses "%list" and "%translate" + let l = getline(nextnonblank(1)) if l =~ '\<prolog\>' || l =~ '^\s*\(%\+\(\s\|$\)\|/\*\)' || l =~ ':-' setf prolog else setf perl endif endif -enddef +endfunc -export def FTinc() +func polyglot#ft#FTinc() if exists("g:filetype_inc") - exe "setf " .. g:filetype_inc + exe "setf " . g:filetype_inc else - var lines = getline(1) .. getline(2) .. getline(3) + let lines = getline(1).getline(2).getline(3) if lines =~? "perlscript" setf aspperl elseif lines =~ "<%" setf aspvbs elseif lines =~ "<?" setf php - # Pascal supports // comments but they're vary rarely used for file - # headers so assume POV-Ray + " Pascal supports // comments but they're vary rarely used for file + " headers so assume POV-Ray elseif lines =~ '^\s*\%({\|(\*\)' || lines =~? s:ft_pascal_keywords setf pascal else - FTasmsyntax() + call polyglot#ft#FTasmsyntax() if exists("b:asmsyntax") - exe "setf " .. fnameescape(b:asmsyntax) + exe "setf " . fnameescape(b:asmsyntax) else setf pov endif endif endif -enddef +endfunc -export def FTprogress_cweb() +func polyglot#ft#FTprogress_cweb() if exists("g:filetype_w") - exe "setf " .. g:filetype_w + exe "setf " . g:filetype_w return endif if getline(1) =~ '&ANALYZE' || getline(3) =~ '&GLOBAL-DEFINE' @@ -457,76 +462,76 @@ export def FTprogress_cweb() else setf cweb endif -enddef +endfunc -export def FTprogress_asm() +func polyglot#ft#FTprogress_asm() if exists("g:filetype_i") - exe "setf " .. g:filetype_i + exe "setf " . g:filetype_i return endif - # This function checks for an assembly comment the first ten lines. - # If not found, assume Progress. - var lnum = 1 + " This function checks for an assembly comment the first ten lines. + " If not found, assume Progress. + let lnum = 1 while lnum <= 10 && lnum < line('$') - var line = getline(lnum) + let line = getline(lnum) if line =~ '^\s*;' || line =~ '^\*' - FTasm() + call polyglot#ft#FTasm() return elseif line !~ '^\s*$' || line =~ '^/\*' - # Not an empty line: Doesn't look like valid assembly code. - # Or it looks like a Progress /* comment + " Not an empty line: Doesn't look like valid assembly code. + " Or it looks like a Progress /* comment break endif - lnum += 1 + let lnum = lnum + 1 endw setf progress -enddef +endfunc -var ft_pascal_comments = '^\s*\%({\|(\*\|//\)' -var ft_pascal_keywords = '^\s*\%(program\|unit\|library\|uses\|begin\|procedure\|function\|const\|type\|var\)\>' +let s:ft_pascal_comments = '^\s*\%({\|(\*\|//\)' +let s:ft_pascal_keywords = '^\s*\%(program\|unit\|library\|uses\|begin\|procedure\|function\|const\|type\|var\)\>' -export def FTprogress_pascal() +func polyglot#ft#FTprogress_pascal() if exists("g:filetype_p") - exe "setf " .. g:filetype_p + exe "setf " . g:filetype_p return endif - # This function checks for valid Pascal syntax in the first ten lines. - # Look for either an opening comment or a program start. - # If not found, assume Progress. - var lnum = 1 + " This function checks for valid Pascal syntax in the first ten lines. + " Look for either an opening comment or a program start. + " If not found, assume Progress. + let lnum = 1 while lnum <= 10 && lnum < line('$') - var line = getline(lnum) + let line = getline(lnum) if line =~ s:ft_pascal_comments || line =~? s:ft_pascal_keywords setf pascal return elseif line !~ '^\s*$' || line =~ '^/\*' - # Not an empty line: Doesn't look like valid Pascal code. - # Or it looks like a Progress /* comment + " Not an empty line: Doesn't look like valid Pascal code. + " Or it looks like a Progress /* comment break endif - lnum += 1 + let lnum = lnum + 1 endw setf progress -enddef +endfunc -export def FTpp() +func polyglot#ft#FTpp() if exists("g:filetype_pp") - exe "setf " .. g:filetype_pp + exe "setf " . g:filetype_pp else - var line = getline(nextnonblank(1)) + let line = getline(nextnonblank(1)) if line =~ s:ft_pascal_comments || line =~? s:ft_pascal_keywords setf pascal else setf puppet endif endif -enddef +endfunc -export def FTr() - var max = line("$") > 50 ? 50 : line("$") +func polyglot#ft#FTr() + let max = line("$") > 50 ? 50 : line("$") for n in range(1, max) - # Rebol is easy to recognize, check for that first + " Rebol is easy to recognize, check for that first if getline(n) =~? '\<REBOL\>' setf rebol return @@ -534,82 +539,82 @@ export def FTr() endfor for n in range(1, max) - # R has # comments + " R has # comments if getline(n) =~ '^\s*#' setf r return endif - # Rexx has /* comments */ + " Rexx has /* comments */ if getline(n) =~ '^\s*/\*' setf rexx return endif endfor - # Nothing recognized, use user default or assume Rexx + " Nothing recognized, use user default or assume Rexx if exists("g:filetype_r") - exe "setf " .. g:filetype_r + exe "setf " . g:filetype_r else - # Rexx used to be the default, but R appears to be much more popular. + " Rexx used to be the default, but R appears to be much more popular. setf r endif -enddef +endfunc -export def McSetf() - # Rely on the file to start with a comment. - # MS message text files use ';', Sendmail files use '#' or 'dnl' +func polyglot#ft#McSetf() + " Rely on the file to start with a comment. + " MS message text files use ';', Sendmail files use '#' or 'dnl' for lnum in range(1, min([line("$"), 20])) - var line = getline(lnum) + let line = getline(lnum) if line =~ '^\s*\(#\|dnl\)' - setf m4 # Sendmail .mc file + setf m4 " Sendmail .mc file return elseif line =~ '^\s*;' - setf msmessages # MS Message text file + setf msmessages " MS Message text file return endif endfor setf m4 " Default: Sendmail .mc file -enddef +endfunc -# Called from filetype.vim and scripts.vim. -export def SetFileTypeSH(name: string) +" Called from filetype.vim and scripts.vim. +func polyglot#ft#SetFileTypeSH(name) if did_filetype() - # Filetype was already detected + " Filetype was already detected return endif if expand("<amatch>") =~ g:ft_ignore_pat return endif - if name =~ '\<csh\>' - # Some .sh scripts contain #!/bin/csh. - SetFileTypeShell("csh") + if a:name =~ '\<csh\>' + " Some .sh scripts contain #!/bin/csh. + call polyglot#ft#SetFileTypeShell("csh") return - elseif name =~ '\<tcsh\>' - # Some .sh scripts contain #!/bin/tcsh. - SetFileTypeShell("tcsh") + elseif a:name =~ '\<tcsh\>' + " Some .sh scripts contain #!/bin/tcsh. + call polyglot#ft#SetFileTypeShell("tcsh") return - elseif name =~ '\<zsh\>' - # Some .sh scripts contain #!/bin/zsh. - SetFileTypeShell("zsh") + elseif a:name =~ '\<zsh\>' + " Some .sh scripts contain #!/bin/zsh. + call polyglot#ft#SetFileTypeShell("zsh") return - elseif name =~ '\<ksh\>' - b:is_kornshell = 1 + elseif a:name =~ '\<ksh\>' + let b:is_kornshell = 1 if exists("b:is_bash") unlet b:is_bash endif if exists("b:is_sh") unlet b:is_sh endif - elseif exists("g:bash_is_sh") || name =~ '\<bash\>' || name =~ '\<bash2\>' - b:is_bash = 1 + elseif exists("g:bash_is_sh") || a:name =~ '\<bash\>' || a:name =~ '\<bash2\>' + let b:is_bash = 1 if exists("b:is_kornshell") unlet b:is_kornshell endif if exists("b:is_sh") unlet b:is_sh endif - elseif name =~ '\<sh\>' - b:is_sh = 1 + elseif a:name =~ '\<sh\>' + let b:is_sh = 1 if exists("b:is_kornshell") unlet b:is_kornshell endif @@ -617,76 +622,75 @@ export def SetFileTypeSH(name: string) unlet b:is_bash endif endif - SetFileTypeShell("sh") -enddef + call polyglot#ft#SetFileTypeShell("sh") +endfunc -# For shell-like file types, check for an "exec" command hidden in a comment, -# as used for Tcl. -# Also called from scripts.vim, thus can't be local to this script. -export def SetFileTypeShell(name: string) +" For shell-like file types, check for an "exec" command hidden in a comment, +" as used for Tcl. +" Also called from scripts.vim, thus can't be local to this script. +func polyglot#ft#SetFileTypeShell(name) if did_filetype() - # Filetype was already detected + " Filetype was already detected return endif if expand("<amatch>") =~ g:ft_ignore_pat return endif - var l = 2 + let l = 2 while l < 20 && l < line("$") && getline(l) =~ '^\s*\(#\|$\)' - # Skip empty and comment lines. - l += 1 + " Skip empty and comment lines. + let l = l + 1 endwhile if l < line("$") && getline(l) =~ '\s*exec\s' && getline(l - 1) =~ '^\s*#.*\\$' - # Found an "exec" line after a comment with continuation - var n = substitute(getline(l), '\s*exec\s\+\([^ ]*/\)\=', '', '') + " Found an "exec" line after a comment with continuation + let n = substitute(getline(l),'\s*exec\s\+\([^ ]*/\)\=', '', '') if n =~ '\<tclsh\|\<wish' setf tcl return endif endif - exe "setf " .. name -enddef + exe "setf " . a:name +endfunc -export def CSH() +func polyglot#ft#CSH() if did_filetype() - # Filetype was already detected + " Filetype was already detected return endif if exists("g:filetype_csh") - SetFileTypeShell(g:filetype_csh) + call polyglot#ft#SetFileTypeShell(g:filetype_csh) elseif &shell =~ "tcsh" - SetFileTypeShell("tcsh") + call polyglot#ft#SetFileTypeShell("tcsh") else - SetFileTypeShell("csh") + call polyglot#ft#SetFileTypeShell("csh") endif -enddef +endfunc -var ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*' -export def FTRules() - var path = expand('<amatch>:p') +let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*' +func polyglot#ft#FTRules() + let path = expand('<amatch>:p') if path =~ '/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$' setf udevrules return endif if path =~ '^/etc/ufw/' - setf conf # Better than hog + setf conf " Better than hog return endif if path =~ '^/\(etc\|usr/share\)/polkit-1/rules\.d' setf javascript return endif - var config_lines: list<string> try - config_lines = readfile('/etc/udev/udev.conf') + let config_lines = readfile('/etc/udev/udev.conf') catch /^Vim\%((\a\+)\)\=:E484/ setf hog return endtry - var dir = expand('<amatch>:p:h') + let dir = expand('<amatch>:p:h') for line in config_lines if line =~ s:ft_rules_udev_rules_pattern - var udev_rules = substitute(line, s:ft_rules_udev_rules_pattern, '\1', "") + let udev_rules = substitute(line, s:ft_rules_udev_rules_pattern, '\1', "") if dir == udev_rules setf udevrules endif @@ -694,24 +698,24 @@ export def FTRules() endif endfor setf hog -enddef +endfunc -export def SQL() +func polyglot#ft#SQL() if exists("g:filetype_sql") - exe "setf " .. g:filetype_sql + exe "setf " . g:filetype_sql else setf sql endif -enddef +endfunc -# If the file has an extension of 't' and is in a directory 't' or 'xt' then -# it is almost certainly a Perl test file. -# If the first line starts with '#' and contains 'perl' it's probably a Perl -# file. -# (Slow test) If a file contains a 'use' statement then it is almost certainly -# a Perl file. -export def FTperl(): number - var dirname = expand("%:p:h:t") +" If the file has an extension of 't' and is in a directory 't' or 'xt' then +" it is almost certainly a Perl test file. +" If the first line starts with '#' and contains 'perl' it's probably a Perl +" file. +" (Slow test) If a file contains a 'use' statement then it is almost certainly +" a Perl file. +func polyglot#ft#FTperl() + let dirname = expand("%:p:h:t") if expand("%:e") == 't' && (dirname == 't' || dirname == 'xt') setf perl return 1 @@ -720,88 +724,86 @@ export def FTperl(): number setf perl return 1 endif - var save_cursor = getpos('.') - call cursor(1, 1) - var has_use = search('^use\s\s*\k', 'c', 30) > 0 + let save_cursor = getpos('.') + call cursor(1,1) + let has_use = search('^use\s\s*\k', 'c', 30) call setpos('.', save_cursor) if has_use setf perl return 1 endif return 0 -enddef - -# Choose context, plaintex, or tex (LaTeX) based on these rules: -# 1. Check the first line of the file for "%&<format>". -# 2. Check the first 1000 non-comment lines for LaTeX or ConTeXt keywords. -# 3. Default to "plain" or to g:tex_flavor, can be set in user's vimrc. -export def FTtex() - var firstline = getline(1) - var format: string +endfunc + +" Choose context, plaintex, or tex (LaTeX) based on these rules: +" 1. Check the first line of the file for "%&<format>". +" 2. Check the first 1000 non-comment lines for LaTeX or ConTeXt keywords. +" 3. Default to "plain" or to g:tex_flavor, can be set in user's vimrc. +func polyglot#ft#FTtex() + let firstline = getline(1) if firstline =~ '^%&\s*\a\+' - format = tolower(matchstr(firstline, '\a\+')) - format = substitute(format, 'pdf', '', '') + let format = tolower(matchstr(firstline, '\a\+')) + let format = substitute(format, 'pdf', '', '') if format == 'tex' - format = 'latex' + let format = 'latex' elseif format == 'plaintex' - format = 'plain' + let format = 'plain' endif elseif expand('%') =~ 'tex/context/.*/.*.tex' - format = 'context' + let format = 'context' else - # Default value, may be changed later: - format = exists("g:tex_flavor") ? g:tex_flavor : 'plain' - # Save position, go to the top of the file, find first non-comment line. - var save_cursor = getpos('.') - call cursor(1, 1) - var firstNC = search('^\s*[^[:space:]%]', 'c', 1000) - if firstNC > 0 - # Check the next thousand lines for a LaTeX or ConTeXt keyword. - var lpat = 'documentclass\>\|usepackage\>\|begin{\|newcommand\>\|renewcommand\>' - var cpat = 'start\a\+\|setup\a\+\|usemodule\|enablemode\|enableregime\|setvariables\|useencoding\|usesymbols\|stelle\a\+\|verwende\a\+\|stel\a\+\|gebruik\a\+\|usa\a\+\|imposta\a\+\|regle\a\+\|utilisemodule\>' - var kwline = search('^\s*\\\%(' .. lpat .. '\)\|^\s*\\\(' .. cpat .. '\)', - 'cnp', firstNC + 1000) - if kwline == 1 # lpat matched - format = 'latex' - elseif kwline == 2 # cpat matched - format = 'context' - endif # If neither matched, keep default set above. - # let lline = search('^\s*\\\%(' . lpat . '\)', 'cn', firstNC + 1000) - # let cline = search('^\s*\\\%(' . cpat . '\)', 'cn', firstNC + 1000) - # if cline > 0 - # let format = 'context' - # endif - # if lline > 0 && (cline == 0 || cline > lline) - # let format = 'tex' - # endif - endif # firstNC + " Default value, may be changed later: + let format = exists("g:tex_flavor") ? g:tex_flavor : 'plain' + " Save position, go to the top of the file, find first non-comment line. + let save_cursor = getpos('.') + call cursor(1,1) + let firstNC = search('^\s*[^[:space:]%]', 'c', 1000) + if firstNC " Check the next thousand lines for a LaTeX or ConTeXt keyword. + let lpat = 'documentclass\>\|usepackage\>\|begin{\|newcommand\>\|renewcommand\>' + let cpat = 'start\a\+\|setup\a\+\|usemodule\|enablemode\|enableregime\|setvariables\|useencoding\|usesymbols\|stelle\a\+\|verwende\a\+\|stel\a\+\|gebruik\a\+\|usa\a\+\|imposta\a\+\|regle\a\+\|utilisemodule\>' + let kwline = search('^\s*\\\%(' . lpat . '\)\|^\s*\\\(' . cpat . '\)', + \ 'cnp', firstNC + 1000) + if kwline == 1 " lpat matched + let format = 'latex' + elseif kwline == 2 " cpat matched + let format = 'context' + endif " If neither matched, keep default set above. + " let lline = search('^\s*\\\%(' . lpat . '\)', 'cn', firstNC + 1000) + " let cline = search('^\s*\\\%(' . cpat . '\)', 'cn', firstNC + 1000) + " if cline > 0 + " let format = 'context' + " endif + " if lline > 0 && (cline == 0 || cline > lline) + " let format = 'tex' + " endif + endif " firstNC call setpos('.', save_cursor) - endif # firstline =~ '^%&\s*\a\+' + endif " firstline =~ '^%&\s*\a\+' - # Translation from formats to file types. TODO: add AMSTeX, RevTex, others? + " Translation from formats to file types. TODO: add AMSTeX, RevTex, others? if format == 'plain' setf plaintex elseif format == 'context' setf context - else # probably LaTeX + else " probably LaTeX setf tex endif return -enddef +endfunc -export def FTxml() - var n = 1 +func polyglot#ft#FTxml() + let n = 1 while n < 100 && n <= line("$") - var line = getline(n) - # DocBook 4 or DocBook 5. - var is_docbook4 = line =~ '<!DOCTYPE.*DocBook' - var is_docbook5 = line =~ ' xmlns="http://docbook.org/ns/docbook"' + let line = getline(n) + " DocBook 4 or DocBook 5. + let is_docbook4 = line =~ '<!DOCTYPE.*DocBook' + let is_docbook5 = line =~ ' xmlns="http://docbook.org/ns/docbook"' if is_docbook4 || is_docbook5 - b:docbk_type = "xml" + let b:docbk_type = "xml" if is_docbook5 - b:docbk_ver = 5 + let b:docbk_ver = 5 else - b:docbk_ver = 4 + let b:docbk_ver = 4 endif setf docbk return @@ -810,15 +812,15 @@ export def FTxml() setf xbl return endif - n += 1 + let n += 1 endwhile setf xml -enddef +endfunc -export def FTy() - var n = 1 +func polyglot#ft#FTy() + let n = 1 while n < 100 && n <= line("$") - var line = getline(n) + let line = getline(n) if line =~ '^\s*%' setf yacc return @@ -827,25 +829,25 @@ export def FTy() setf racc return endif - n += 1 + let n = n + 1 endwhile setf yacc -enddef +endfunc -export def Redif() - var lnum = 1 +func polyglot#ft#Redif() + let lnum = 1 while lnum <= 5 && lnum < line('$') if getline(lnum) =~ "^\ctemplate-type:" setf redif return endif - lnum += 1 + let lnum = lnum + 1 endwhile -enddef +endfunc -# This function is called for all files under */debian/patches/*, make sure not -# to non-dep3patch files, such as README and other text files. -export def Dep3patch() +" This function is called for all files under */debian/patches/*, make sure not +" to non-dep3patch files, such as README and other text files. +func polyglot#ft#Dep3patch() if expand('%:t') ==# 'series' return endif @@ -855,43 +857,44 @@ export def Dep3patch() setf dep3patch return elseif ln =~# '^---' - # end of headers found. stop processing + " end of headers found. stop processing return endif endfor -enddef - -# This function checks the first 15 lines for appearance of 'FoamFile' -# and then 'object' in a following line. -# In that case, it's probably an OpenFOAM file -export def FTfoam() - var ffile = 0 - var lnum = 1 +endfunc + +" This function checks the first 15 lines for appearance of 'FoamFile' +" and then 'object' in a following line. +" In that case, it's probably an OpenFOAM file +func polyglot#ft#FTfoam() + let ffile = 0 + let lnum = 1 while lnum <= 15 if getline(lnum) =~# '^FoamFile' - ffile = 1 + let ffile = 1 elseif ffile == 1 && getline(lnum) =~# '^\s*object' setf foam return endif - lnum += 1 + let lnum = lnum + 1 endwhile -enddef +endfunc -# Determine if a *.tf file is TF mud client or terraform -export def FTtf() - var numberOfLines = line('$') +" Determine if a *.tf file is TF mud client or terraform +func polyglot#ft#FTtf() + let numberOfLines = line('$') for i in range(1, numberOfLines) - var currentLine = trim(getline(i)) - var firstCharacter = currentLine[0] + let currentLine = trim(getline(i)) + let firstCharacter = currentLine[0] if firstCharacter !=? ";" && firstCharacter !=? "/" && firstCharacter !=? "" setf terraform return endif endfor setf tf -enddef +endfunc -# Uncomment this line to check for compilation errors early -# defcompile +" Restore 'cpoptions' +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/autoload/unison.vim b/autoload/unison.vim index e91699f0..292deda6 100644 --- a/autoload/unison.vim +++ b/autoload/unison.vim @@ -66,7 +66,7 @@ function! unison#Complete(findstart, base) abort " " (List.fol<cursor> " ^ - while start > 0 && line[start - 1] !~ '\v\s|[(){}\[\]]' + while start > 0 && line[start - 1] !~ '\v\s|[!(){}\[\]]' let start -= 1 endwhile return start diff --git a/extras/filetype.vim b/extras/filetype.vim index f9f1ae75..f6cb13a1 100644 --- a/extras/filetype.vim +++ b/extras/filetype.vim @@ -1547,9 +1547,6 @@ au BufNewFile,BufRead *.r,*.R call polyglot#ft#FTr() " Remind au BufNewFile,BufRead .reminders,*.remind,*.rem setf remind -" ReScript -au BufNewFile,BufRead *.res,*.resi setf rescript - " Resolv.conf au BufNewFile,BufRead resolv.conf setf resolv diff --git a/extras/menu.vim b/extras/menu.vim index 12924af6..5f4e395e 100644 --- a/extras/menu.vim +++ b/extras/menu.vim @@ -2,7 +2,7 @@ " You can also use this as a start for your own set of menus. " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2022 Feb 04 +" Last Change: 2021 Dec 22 " Note that ":an" (short for ":anoremenu") is often used to make a menu work " in all modes and avoid side effects from mappings defined by the user. @@ -33,7 +33,7 @@ if exists("v:lang") || &langmenu != "" if strlen(s:lang) > 1 && s:lang !~? '^en_us' " When the language does not include the charset add 'encoding' if s:lang =~ '^\a\a$\|^\a\a_\a\a$' - let s:lang = s:lang .. '.' .. &enc + let s:lang = s:lang . '.' . &enc endif " We always use a lowercase name. @@ -49,26 +49,26 @@ if exists("v:lang") || &langmenu != "" " same menu file for them. let s:lang = substitute(s:lang, 'iso_8859-15\=$', "latin1", "") menutrans clear - exe "runtime! lang/menu_" .. s:lang .. ".vim" + exe "runtime! lang/menu_" . s:lang . ".vim" if !exists("did_menu_trans") " There is no exact match, try matching with a wildcard added " (e.g. find menu_de_de.iso_8859-1.vim if s:lang == de_DE). let s:lang = substitute(s:lang, '\.[^.]*', "", "") - exe "runtime! lang/menu_" .. s:lang .. "[^a-z]*vim" + exe "runtime! lang/menu_" . s:lang . "[^a-z]*vim" if !exists("did_menu_trans") && s:lang =~ '_' " If the language includes a region try matching without that region. " (e.g. find menu_de.vim if s:lang == de_DE). let langonly = substitute(s:lang, '_.*', "", "") - exe "runtime! lang/menu_" .. langonly .. "[^a-z]*vim" + exe "runtime! lang/menu_" . langonly . "[^a-z]*vim" endif if !exists("did_menu_trans") && strlen($LANG) > 1 && s:lang !~ '^en_us' " On windows locale names are complicated, try using $LANG, it might " have been set by set_init_1(). But don't do this for "en" or "en_us". " But don't match "slovak" when $LANG is "sl". - exe "runtime! lang/menu_" .. tolower($LANG) .. "[^a-z]*vim" + exe "runtime! lang/menu_" . tolower($LANG) . "[^a-z]*vim" endif endif endif @@ -104,19 +104,19 @@ if exists(':tlmenu') tlnoremenu 9999.90 &Help.&About <C-W>:intro<CR> endif -def s:Helpfind() +fun! s:Helpfind() if !exists("g:menutrans_help_dialog") - g:menutrans_help_dialog = "Enter a command or word to find help on:\n\nPrepend i_ for Input mode commands (e.g.: i_CTRL-X)\nPrepend c_ for command-line editing commands (e.g.: c_<Del>)\nPrepend ' for an option name (e.g.: 'shiftwidth')" + let g:menutrans_help_dialog = "Enter a command or word to find help on:\n\nPrepend i_ for Input mode commands (e.g.: i_CTRL-X)\nPrepend c_ for command-line editing commands (e.g.: c_<Del>)\nPrepend ' for an option name (e.g.: 'shiftwidth')" endif - var h = inputdialog(g:menutrans_help_dialog) + let h = inputdialog(g:menutrans_help_dialog) if h != "" - v:errmsg = "" - silent! exe "help " .. h + let v:errmsg = "" + silent! exe "help " . h if v:errmsg != "" echo v:errmsg endif endif -enddef +endfun " File menu an 10.310 &File.&Open\.\.\.<Tab>:e :browse confirm e<CR> @@ -154,9 +154,16 @@ an 10.600 &File.-SEP4- <Nop> an 10.610 &File.Sa&ve-Exit<Tab>:wqa :confirm wqa<CR> an 10.620 &File.E&xit<Tab>:qa :confirm qa<CR> -def s:SelectAll() - exe "norm! gg" .. (&slm == "" ? "VG" : "gH\<C-O>G") -enddef +func s:SelectAll() + exe "norm! gg" . (&slm == "" ? "VG" : "gH\<C-O>G") +endfunc + +func s:FnameEscape(fname) + if exists('*fnameescape') + return fnameescape(a:fname) + endif + return escape(a:fname, " \t\n*?[{`$\\%#'\"|!<") +endfunc " Edit menu an 20.310 &Edit.&Undo<Tab>u u @@ -175,8 +182,8 @@ cnoremenu &Edit.&Paste<Tab>"+gP <C-R>+ if exists(':tlmenu') tlnoremenu &Edit.&Paste<Tab>"+gP <C-W>"+ endif -exe 'vnoremenu <script> &Edit.&Paste<Tab>"+gP ' .. paste#paste_cmd['v'] -exe 'inoremenu <script> &Edit.&Paste<Tab>"+gP ' .. paste#paste_cmd['i'] +exe 'vnoremenu <script> &Edit.&Paste<Tab>"+gP ' . paste#paste_cmd['v'] +exe 'inoremenu <script> &Edit.&Paste<Tab>"+gP ' . paste#paste_cmd['i'] nnoremenu 20.370 &Edit.Put\ &Before<Tab>[p [p inoremenu &Edit.Put\ &Before<Tab>[p <C-O>[p nnoremenu 20.380 &Edit.Put\ &After<Tab>]p ]p @@ -207,33 +214,32 @@ an 20.425 &Edit.-SEP3- <Nop> an 20.430 &Edit.Settings\ &Window :options<CR> an 20.435 &Edit.Startup\ &Settings :call <SID>EditVimrc()<CR> -def s:EditVimrc() - var fname: string +fun! s:EditVimrc() if $MYVIMRC != '' - fname = $MYVIMRC + let fname = $MYVIMRC elseif has("win32") if $HOME != '' - fname = $HOME .. "/_vimrc" + let fname = $HOME . "/_vimrc" else - fname = $VIM .. "/_vimrc" + let fname = $VIM . "/_vimrc" endif elseif has("amiga") - fname = "s:.vimrc" + let fname = "s:.vimrc" else - fname = $HOME .. "/.vimrc" + let fname = $HOME . "/.vimrc" endif - fname = fnameescape(fname) + let fname = s:FnameEscape(fname) if &mod - exe "split " .. fname + exe "split " . fname else - exe "edit " .. fname + exe "edit " . fname endif -enddef +endfun -def s:FixFText(): string - # Fix text in nameless register to be used with :promptfind. +fun! s:FixFText() + " Fix text in nameless register to be used with :promptfind. return substitute(@", "[\r\n]", '\\n', 'g') -enddef +endfun " Edit/Global Settings an 20.440.100 &Edit.&Global\ Settings.Toggle\ Pattern\ &Highlight<Tab>:set\ hls! :set hls! hls?<CR> @@ -266,34 +272,34 @@ an <silent> 20.440.320 &Edit.&Global\ Settings.Toggle\ &Bottom\ Scrollbar :call an <silent> 20.440.330 &Edit.&Global\ Settings.Toggle\ &Left\ Scrollbar :call <SID>ToggleGuiOption("l")<CR> an <silent> 20.440.340 &Edit.&Global\ Settings.Toggle\ &Right\ Scrollbar :call <SID>ToggleGuiOption("r")<CR> -def s:SearchP() +fun! s:SearchP() if !exists("g:menutrans_path_dialog") - g:menutrans_path_dialog = "Enter search path for files.\nSeparate directory names with a comma." + let g:menutrans_path_dialog = "Enter search path for files.\nSeparate directory names with a comma." endif - var n = inputdialog(g:menutrans_path_dialog, substitute(&path, '\\ ', ' ', 'g')) + let n = inputdialog(g:menutrans_path_dialog, substitute(&path, '\\ ', ' ', 'g')) if n != "" - &path = substitute(n, ' ', '\\ ', 'g') + let &path = substitute(n, ' ', '\\ ', 'g') endif -enddef +endfun -def s:TagFiles() +fun! s:TagFiles() if !exists("g:menutrans_tags_dialog") - g:menutrans_tags_dialog = "Enter names of tag files.\nSeparate the names with a comma." + let g:menutrans_tags_dialog = "Enter names of tag files.\nSeparate the names with a comma." endif - var n = inputdialog(g:menutrans_tags_dialog, substitute(&tags, '\\ ', ' ', 'g')) + let n = inputdialog(g:menutrans_tags_dialog, substitute(&tags, '\\ ', ' ', 'g')) if n != "" - &tags = substitute(n, ' ', '\\ ', 'g') + let &tags = substitute(n, ' ', '\\ ', 'g') endif -enddef +endfun -def s:ToggleGuiOption(option: string) - # If a:option is already set in guioptions, then we want to remove it - if match(&guioptions, "\\C" .. option) > -1 - exec "set go-=" .. option - else - exec "set go+=" .. option - endif -enddef +fun! s:ToggleGuiOption(option) + " If a:option is already set in guioptions, then we want to remove it + if match(&guioptions, "\\C" . a:option) > -1 + exec "set go-=" . a:option + else + exec "set go+=" . a:option + endif +endfun " Edit/File Settings @@ -325,36 +331,34 @@ an 20.440.620.80 &Edit.F&ile\ Settings.Soft\ &Tabstop.8 :set sts=8 sts?<CR> an <silent> 20.440.630 &Edit.F&ile\ Settings.Te&xt\ Width\.\.\. :call <SID>TextWidth()<CR> an <silent> 20.440.640 &Edit.F&ile\ Settings.&File\ Format\.\.\. :call <SID>FileFormat()<CR> - -def s:TextWidth() +fun! s:TextWidth() if !exists("g:menutrans_textwidth_dialog") - g:menutrans_textwidth_dialog = "Enter new text width (0 to disable formatting): " + let g:menutrans_textwidth_dialog = "Enter new text width (0 to disable formatting): " endif - var n = inputdialog(g:menutrans_textwidth_dialog, &tw .. '') + let n = inputdialog(g:menutrans_textwidth_dialog, &tw) if n != "" - # Remove leading zeros to avoid it being used as an octal number. - # But keep a zero by itself. - var tw = substitute(n, "^0*", "", "") - &tw = tw == '' ? 0 : tw + " Remove leading zeros to avoid it being used as an octal number. + " But keep a zero by itself. + let tw = substitute(n, "^0*", "", "") + let &tw = tw == '' ? 0 : tw endif -enddef +endfun -def s:FileFormat() +fun! s:FileFormat() if !exists("g:menutrans_fileformat_dialog") - g:menutrans_fileformat_dialog = "Select format for writing the file" + let g:menutrans_fileformat_dialog = "Select format for writing the file" endif if !exists("g:menutrans_fileformat_choices") - g:menutrans_fileformat_choices = "&Unix\n&Dos\n&Mac\n&Cancel" + let g:menutrans_fileformat_choices = "&Unix\n&Dos\n&Mac\n&Cancel" endif - var def_choice: number if &ff == "dos" - def_choice = 2 + let def = 2 elseif &ff == "mac" - def_choice = 3 + let def = 3 else - def_choice = 1 + let def = 1 endif - var n = confirm(g:menutrans_fileformat_dialog, g:menutrans_fileformat_choices, def_choice, "Question") + let n = confirm(g:menutrans_fileformat_dialog, g:menutrans_fileformat_choices, def, "Question") if n == 1 set ff=unix elseif n == 2 @@ -362,33 +366,32 @@ def s:FileFormat() elseif n == 3 set ff=mac endif -enddef +endfun let s:did_setup_color_schemes = 0 " Setup the Edit.Color Scheme submenu -def s:SetupColorSchemes() +func s:SetupColorSchemes() abort if s:did_setup_color_schemes return endif - s:did_setup_color_schemes = 1 + let s:did_setup_color_schemes = 1 - var n = globpath(&runtimepath, "colors/*.vim", 1, 1) - n += globpath(&packpath, "pack/*/start/*/colors/*.vim", 1, 1) - n += globpath(&packpath, "pack/*/opt/*/colors/*.vim", 1, 1) + let n = globpath(&runtimepath, "colors/*.vim", 1, 1) + let n += globpath(&packpath, "pack/*/start/*/colors/*.vim", 1, 1) + let n += globpath(&packpath, "pack/*/opt/*/colors/*.vim", 1, 1) - # Ignore case for VMS and windows, sort on name - var names = sort(map(n, 'substitute(v:val, "\\c.*[/\\\\:\\]]\\([^/\\\\:]*\\)\\.vim", "\\1", "")'), 1) + " Ignore case for VMS and windows, sort on name + let names = sort(map(n, 'substitute(v:val, "\\c.*[/\\\\:\\]]\\([^/\\\\:]*\\)\\.vim", "\\1", "")'), 1) - # define all the submenu entries - var idx = 100 + " define all the submenu entries + let idx = 100 for name in names - exe "an 20.450." .. idx .. ' &Edit.C&olor\ Scheme.' .. name .. " :colors " .. name .. "<CR>" - idx += 10 + exe "an 20.450." . idx . ' &Edit.C&olor\ Scheme.' . name . " :colors " . name . "<CR>" + let idx = idx + 10 endfor silent! aunmenu &Edit.Show\ C&olor\ Schemes\ in\ Menu -enddef - +endfun if exists("do_no_lazyload_menus") call s:SetupColorSchemes() else @@ -400,33 +403,31 @@ endif if has("keymap") let s:did_setup_keymaps = 0 - def s:SetupKeymaps() + func s:SetupKeymaps() abort if s:did_setup_keymaps return endif - s:did_setup_keymaps = 1 + let s:did_setup_keymaps = 1 - var names = globpath(&runtimepath, "keymap/*.vim", 1, 1) - if !empty(names) - var idx = 100 + let n = globpath(&runtimepath, "keymap/*.vim", 1, 1) + if !empty(n) + let idx = 100 an 20.460.90 &Edit.&Keymap.None :set keymap=<CR> - for name in names - # Ignore case for VMS and windows - var mapname = substitute(name, '\c.*[/\\:\]]\([^/\\:_]*\)\(_[0-9a-zA-Z-]*\)\=\.vim', '\1', '') - exe "an 20.460." .. idx .. ' &Edit.&Keymap.' .. mapname .. " :set keymap=" .. mapname .. "<CR>" - idx += 10 + for name in n + " Ignore case for VMS and windows + let name = substitute(name, '\c.*[/\\:\]]\([^/\\:_]*\)\(_[0-9a-zA-Z-]*\)\=\.vim', '\1', '') + exe "an 20.460." . idx . ' &Edit.&Keymap.' . name . " :set keymap=" . name . "<CR>" + let idx = idx + 10 endfor endif silent! aunmenu &Edit.Show\ &Keymaps\ in\ Menu - enddef - + endfun if exists("do_no_lazyload_menus") call s:SetupKeymaps() else an <silent> 20.460 &Edit.Show\ &Keymaps\ in\ Menu :call <SID>SetupKeymaps()<CR> endif endif - if has("win32") || has("gui_motif") || has("gui_gtk") || has("gui_kde") || has("gui_photon") || has("gui_mac") an 20.470 &Edit.Select\ Fo&nt\.\.\. :set guifont=*<CR> endif @@ -444,7 +445,7 @@ an 40.300 &Tools.&Jump\ to\ This\ Tag<Tab>g^] g<C-]> vunmenu &Tools.&Jump\ to\ This\ Tag<Tab>g^] vnoremenu &Tools.&Jump\ to\ This\ Tag<Tab>g^] g<C-]> an 40.310 &Tools.Jump\ &Back<Tab>^T <C-T> -an 40.320 &Tools.Build\ &Tags\ File :exe "!" .. g:ctags_command<CR> +an 40.320 &Tools.Build\ &Tags\ File :exe "!" . g:ctags_command<CR> if has("folding") || has("spell") an 40.330 &Tools.-SEP1- <Nop> @@ -468,47 +469,50 @@ if has("spell") an <silent> 40.335.270 &Tools.&Spelling.&Find\ More\ Languages :call <SID>SpellLang()<CR> let s:undo_spelllang = ['aun &Tools.&Spelling.&Find\ More\ Languages'] - def s:SpellLang() + func s:SpellLang() for cmd in s:undo_spelllang - exe "silent! " .. cmd + exe "silent! " . cmd endfor - s:undo_spelllang = [] + let s:undo_spelllang = [] - var enc = &enc == "iso-8859-15" ? "latin1" : &enc + if &enc == "iso-8859-15" + let enc = "latin1" + else + let enc = &enc + endif if !exists("g:menutrans_set_lang_to") - g:menutrans_set_lang_to = 'Set Language to' + let g:menutrans_set_lang_to = 'Set Language to' endif - var found = 0 - var _nm = '' - var names = globpath(&runtimepath, "spell/*." .. enc .. ".spl", 1, 1) - if !empty(names) - var n = 300 - for f in names - var nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "") + let found = 0 + let s = globpath(&runtimepath, "spell/*." . enc . ".spl", 1, 1) + if !empty(s) + let n = 300 + for f in s + let nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "") if nm != "en" && nm !~ '/' - _nm = nm - found += 1 - var menuname = '&Tools.&Spelling.' .. escape(g:menutrans_set_lang_to, "\\. \t|") .. '\ "' .. nm .. '"' - exe 'an 40.335.' .. n .. ' ' .. menuname .. ' :set spl=' .. nm .. ' spell<CR>' - s:undo_spelllang += ['aun ' .. menuname] + let _nm = nm + let found += 1 + let menuname = '&Tools.&Spelling.' . escape(g:menutrans_set_lang_to, "\\. \t|") . '\ "' . nm . '"' + exe 'an 40.335.' . n . ' ' . menuname . ' :set spl=' . nm . ' spell<CR>' + let s:undo_spelllang += ['aun ' . menuname] endif - n += 10 + let n += 10 endfor endif if found == 0 echomsg "Could not find other spell files" elseif found == 1 - echomsg "Found spell file " .. _nm + echomsg "Found spell file " . _nm else - echomsg "Found " .. found .. " more spell files" + echomsg "Found " . found . " more spell files" endif - # Need to redo this when 'encoding' is changed. + " Need to redo this when 'encoding' is changed. augroup spellmenu au! EncodingChanged * call <SID>SpellLang() augroup END - enddef + endfun endif @@ -577,67 +581,66 @@ an <silent> 40.540 &Tools.Conve&rt\ Back<Tab>:%!xxd\ -r " Use a function to do the conversion, so that it also works with 'insertmode' " set. -def s:XxdConv() - var mod = &mod +func s:XxdConv() + let mod = &mod if has("vms") - :%!mc vim:xxd + %!mc vim:xxd else - s:XxdFind() - exe '%!' .. g:xxdprogram + call s:XxdFind() + exe '%!' . g:xxdprogram endif - if getline(1) =~ "^0000000:" # only if it worked + if getline(1) =~ "^0000000:" " only if it worked set ft=xxd endif - &mod = mod -enddef + let &mod = mod +endfun -def s:XxdBack() - var mod = &mod +func s:XxdBack() + let mod = &mod if has("vms") - :%!mc vim:xxd -r + %!mc vim:xxd -r else - s:XxdFind() - exe '%!' .. g:xxdprogram .. ' -r' + call s:XxdFind() + exe '%!' . g:xxdprogram . ' -r' endif set ft= doautocmd filetypedetect BufReadPost - &mod = mod -enddef + let &mod = mod +endfun -def s:XxdFind() +func s:XxdFind() if !exists("g:xxdprogram") - # On the PC xxd may not be in the path but in the install directory + " On the PC xxd may not be in the path but in the install directory if has("win32") && !executable("xxd") - g:xxdprogram = $VIMRUNTIME .. (&shellslash ? '/' : '\') .. "xxd.exe" + let g:xxdprogram = $VIMRUNTIME . (&shellslash ? '/' : '\') . "xxd.exe" if g:xxdprogram =~ ' ' - g:xxdprogram = '"' .. g:xxdprogram .. '"' + let g:xxdprogram = '"' .. g:xxdprogram .. '"' endif else - g:xxdprogram = "xxd" + let g:xxdprogram = "xxd" endif endif -enddef +endfun let s:did_setup_compilers = 0 " Setup the Tools.Compiler submenu -def s:SetupCompilers() +func s:SetupCompilers() abort if s:did_setup_compilers return endif - s:did_setup_compilers = 1 - - var names = globpath(&runtimepath, "compiler/*.vim", 1, 1) - var idx = 100 - for name in names - # Ignore case for VMS and windows - var cname = substitute(name, '\c.*[/\\:\]]\([^/\\:]*\)\.vim', '\1', '') - exe "an 30.440." .. idx .. ' &Tools.Se&t\ Compiler.' .. cname .. " :compiler " .. cname .. "<CR>" - idx += 10 + let s:did_setup_compilers = 1 + + let n = globpath(&runtimepath, "compiler/*.vim", 1, 1) + let idx = 100 + for name in n + " Ignore case for VMS and windows + let name = substitute(name, '\c.*[/\\:\]]\([^/\\:]*\)\.vim', '\1', '') + exe "an 30.440." . idx . ' &Tools.Se&t\ Compiler.' . name . " :compiler " . name . "<CR>" + let idx = idx + 10 endfor silent! aunmenu &Tools.Show\ Compiler\ Se&ttings\ in\ Menu -enddef - +endfun if exists("do_no_lazyload_menus") call s:SetupCompilers() else @@ -646,13 +649,13 @@ endif " Load ColorScheme, Compiler Setting and Keymap menus when idle. if !exists("do_no_lazyload_menus") - def s:SetupLazyloadMenus() - s:SetupColorSchemes() - s:SetupCompilers() + func s:SetupLazyloadMenus() + call s:SetupColorSchemes() + call s:SetupCompilers() if has("keymap") - s:SetupKeymaps() + call s:SetupKeymaps() endif - enddef + endfunc augroup SetupLazyloadMenus au! au CursorHold,CursorHoldI * call <SID>SetupLazyloadMenus() | au! SetupLazyloadMenus @@ -677,133 +680,135 @@ if !exists("bmenu_priority") endif " invoked from a BufCreate or BufFilePost autocommand -def s:BMAdd() +func s:BMAdd() if s:bmenu_wait == 0 - # when adding too many buffers, redraw in short format + " when adding too many buffers, redraw in short format if s:bmenu_count == &menuitems && s:bmenu_short == 0 - s:BMShow() + call s:BMShow() else - var name = expand("<afile>") - var num = str2nr(expand("<abuf>")) + let name = expand("<afile>") + let num = expand("<abuf>") + 0 " add zero to convert to a number type if s:BMCanAdd(name, num) - s:BMFilename(name, num) - s:bmenu_count += 1 + call <SID>BMFilename(name, num) + let s:bmenu_count += 1 endif endif endif -enddef +endfunc " invoked from a BufDelete or BufFilePre autocommand -def s:BMRemove() +func s:BMRemove() if s:bmenu_wait == 0 - var bufnum = expand("<abuf>") + let bufnum = expand("<abuf>") if s:bmenu_items->has_key(bufnum) - var menu_name = s:bmenu_items[bufnum] - exe 'silent! aun &Buffers.' .. menu_name - s:bmenu_count = s:bmenu_count - 1 + let menu_name = s:bmenu_items[bufnum] + exe 'silent! aun &Buffers.' . menu_name + let s:bmenu_count = s:bmenu_count - 1 unlet s:bmenu_items[bufnum] endif endif -enddef +endfunc " Return non-zero if buffer with number "name" / "num" is useful to add in the " buffer menu. -def s:BMCanAdd(name: string, num: number): bool - # no directory or unlisted buffer - if isdirectory(name) || !buflisted(num) - return false +func s:BMCanAdd(name, num) + " no directory or unlisted buffer + if isdirectory(a:name) || !buflisted(a:num) + return 0 endif - # no name with control characters - if name =~ '[\x01-\x1f]' - return false + " no name with control characters + if a:name =~ '[\x01-\x1f]' + return 0 endif - # no special buffer, such as terminal or popup - var buftype = getbufvar(num, '&buftype') + " no special buffer, such as terminal or popup + let buftype = getbufvar(a:num, '&buftype') if buftype != '' && buftype != 'nofile' && buftype != 'nowrite' - return false + return 0 endif - # only existing buffers - return bufexists(num) -enddef + " only existing buffers + return bufexists(a:num) +endfunc " Create the buffer menu (delete an existing one first). -def s:BMShow() - s:bmenu_wait = 1 - s:bmenu_short = 1 - s:bmenu_count = 0 - s:bmenu_items = {} - - # Remove old menu, if it exists; keep one entry to avoid a torn off menu to - # disappear. Use try/catch to avoid setting v:errmsg - try - unmenu &Buffers - catch - endtry - exe 'noremenu ' .. g:bmenu_priority .. ".1 &Buffers.Dummy l" - try - unmenu! &Buffers - catch - endtry - - # create new menu - exe 'an <silent> ' .. g:bmenu_priority .. ".2 &Buffers.&Refresh\\ menu :call <SID>BMShow()<CR>" - exe 'an ' .. g:bmenu_priority .. ".4 &Buffers.&Delete :confirm bd<CR>" - exe 'an ' .. g:bmenu_priority .. ".6 &Buffers.&Alternate :confirm b #<CR>" - exe 'an ' .. g:bmenu_priority .. ".7 &Buffers.&Next :confirm bnext<CR>" - exe 'an ' .. g:bmenu_priority .. ".8 &Buffers.&Previous :confirm bprev<CR>" - exe 'an ' .. g:bmenu_priority .. ".9 &Buffers.-SEP- :" +func s:BMShow(...) + let s:bmenu_wait = 1 + let s:bmenu_short = 1 + let s:bmenu_count = 0 + let s:bmenu_items = {} + " + " get new priority, if exists + if a:0 == 1 + let g:bmenu_priority = a:1 + endif + + " Remove old menu, if it exists; keep one entry to avoid a torn off menu to + " disappear. Use try/catch to avoid setting v:errmsg + try | unmenu &Buffers | catch | endtry + exe 'noremenu ' . g:bmenu_priority . ".1 &Buffers.Dummy l" + try | unmenu! &Buffers | catch | endtry + + " create new menu; set 'cpo' to include the <CR> + let cpo_save = &cpo + set cpo&vim + exe 'an <silent> ' . g:bmenu_priority . ".2 &Buffers.&Refresh\\ menu :call <SID>BMShow()<CR>" + exe 'an ' . g:bmenu_priority . ".4 &Buffers.&Delete :confirm bd<CR>" + exe 'an ' . g:bmenu_priority . ".6 &Buffers.&Alternate :confirm b #<CR>" + exe 'an ' . g:bmenu_priority . ".7 &Buffers.&Next :confirm bnext<CR>" + exe 'an ' . g:bmenu_priority . ".8 &Buffers.&Previous :confirm bprev<CR>" + exe 'an ' . g:bmenu_priority . ".9 &Buffers.-SEP- :" + let &cpo = cpo_save unmenu &Buffers.Dummy - # figure out how many buffers there are - var buf = 1 + " figure out how many buffers there are + let buf = 1 while buf <= bufnr('$') if s:BMCanAdd(bufname(buf), buf) - s:bmenu_count = s:bmenu_count + 1 + let s:bmenu_count = s:bmenu_count + 1 endif - buf += 1 + let buf = buf + 1 endwhile if s:bmenu_count <= &menuitems - s:bmenu_short = 0 + let s:bmenu_short = 0 endif - # iterate through buffer list, adding each buffer to the menu: - buf = 1 + " iterate through buffer list, adding each buffer to the menu: + let buf = 1 while buf <= bufnr('$') - var name = bufname(buf) + let name = bufname(buf) if s:BMCanAdd(name, buf) - call s:BMFilename(name, buf) + call <SID>BMFilename(name, buf) endif - buf += 1 + let buf = buf + 1 endwhile - s:bmenu_wait = 0 + let s:bmenu_wait = 0 aug buffer_list - au! - au BufCreate,BufFilePost * call s:BMAdd() - au BufDelete,BufFilePre * call s:BMRemove() + au! + au BufCreate,BufFilePost * call <SID>BMAdd() + au BufDelete,BufFilePre * call <SID>BMRemove() aug END -enddef +endfunc -def s:BMHash(name: string): number - # Make name all upper case, so that chars are between 32 and 96 - var nm = substitute(name, ".*", '\U\0', "") - var sp: number +func s:BMHash(name) + " Make name all upper case, so that chars are between 32 and 96 + let nm = substitute(a:name, ".*", '\U\0', "") if has("ebcdic") - # HACK: Replace all non alphabetics with 'Z' - # Just to make it work for now. - nm = substitute(nm, "[^A-Z]", 'Z', "g") - sp = char2nr('A') - 1 + " HACK: Replace all non alphabetics with 'Z' + " Just to make it work for now. + let nm = substitute(nm, "[^A-Z]", 'Z', "g") + let sp = char2nr('A') - 1 else - sp = char2nr(' ') + let sp = char2nr(' ') endif - # convert first six chars into a number for sorting: + " convert first six chars into a number for sorting: return (char2nr(nm[0]) - sp) * 0x800000 + (char2nr(nm[1]) - sp) * 0x20000 + (char2nr(nm[2]) - sp) * 0x1000 + (char2nr(nm[3]) - sp) * 0x80 + (char2nr(nm[4]) - sp) * 0x20 + (char2nr(nm[5]) - sp) -enddef +endfunc -def s:BMHash2(name: string): string - var nm = substitute(name, ".", '\L\0', "") +func s:BMHash2(name) + let nm = substitute(a:name, ".", '\L\0', "") + " Not exactly right for EBCDIC... if nm[0] < 'a' || nm[0] > 'z' return '&others.' elseif nm[0] <= 'd' @@ -819,70 +824,72 @@ def s:BMHash2(name: string): string else return '&u-z.' endif -enddef +endfunc " Insert a buffer name into the buffer menu. -def s:BMFilename(name: string, num: number) - var munge = s:BMMunge(name, num) - var hash = s:BMHash(munge) - var cmd: string +func s:BMFilename(name, num) + let munge = <SID>BMMunge(a:name, a:num) + let hash = <SID>BMHash(munge) if s:bmenu_short == 0 - s:bmenu_items[num] = munge - cmd = 'an ' .. g:bmenu_priority .. '.' .. hash .. ' &Buffers.' .. munge + let s:bmenu_items[a:num] = munge + let cmd = 'an ' . g:bmenu_priority . '.' . hash . ' &Buffers.' . munge else - var menu_name = s:BMHash2(munge) .. munge - s:bmenu_items[num] = menu_name - cmd = 'an ' .. g:bmenu_priority .. '.' .. hash .. '.' .. hash .. ' &Buffers.' .. menu_name + let menu_name = <SID>BMHash2(munge) . munge + let s:bmenu_items[a:num] = menu_name + let cmd = 'an ' . g:bmenu_priority . '.' . hash . '.' . hash . ' &Buffers.' . menu_name endif - exe cmd .. ' :confirm b' .. num .. '<CR>' -enddef + " set 'cpo' to include the <CR> + let cpo_save = &cpo + set cpo&vim + exe cmd . ' :confirm b' . a:num . '<CR>' + let &cpo = cpo_save +endfunc " Truncate a long path to fit it in a menu item. if !exists("g:bmenu_max_pathlen") let g:bmenu_max_pathlen = 35 endif - -def s:BMTruncName(fname: string): string - var name = fname +func s:BMTruncName(fname) + let name = a:fname if g:bmenu_max_pathlen < 5 - name = "" + let name = "" else - var len = strlen(name) + let len = strlen(name) if len > g:bmenu_max_pathlen - var amountl = (g:bmenu_max_pathlen / 2) - 2 - var amountr = g:bmenu_max_pathlen - amountl - 3 - var pattern = '^\(.\{,' .. amountl .. '}\).\{-}\(.\{,' .. amountr .. '}\)$' - var left = substitute(name, pattern, '\1', '') - var right = substitute(name, pattern, '\2', '') + let amountl = (g:bmenu_max_pathlen / 2) - 2 + let amountr = g:bmenu_max_pathlen - amountl - 3 + let pattern = '^\(.\{,' . amountl . '}\).\{-}\(.\{,' . amountr . '}\)$' + let left = substitute(name, pattern, '\1', '') + let right = substitute(name, pattern, '\2', '') if strlen(left) + strlen(right) < len - name = left .. '...' .. right + let name = left . '...' . right endif endif endif return name -enddef +endfunc -def s:BMMunge(fname: string, bnum: number): string - var name = fname +func s:BMMunge(fname, bnum) + let name = a:fname if name == '' if !exists("g:menutrans_no_file") - g:menutrans_no_file = "[No Name]" + let g:menutrans_no_file = "[No Name]" endif - name = g:menutrans_no_file + let name = g:menutrans_no_file else - name = fnamemodify(name, ':p:~') + let name = fnamemodify(name, ':p:~') endif - # detach file name and separate it out: - var name2 = fnamemodify(name, ':t') - if bnum >= 0 - name2 = name2 .. ' (' .. bnum .. ')' + " detach file name and separate it out: + let name2 = fnamemodify(name, ':t') + if a:bnum >= 0 + let name2 = name2 . ' (' . a:bnum . ')' endif - name = name2 .. "\t" .. s:BMTruncName(fnamemodify(name, ':h')) - name = escape(name, "\\. \t|") - name = substitute(name, "&", "&&", "g") - name = substitute(name, "\n", "^@", "g") + let name = name2 . "\t" . <SID>BMTruncName(fnamemodify(name,':h')) + let name = escape(name, "\\. \t|") + let name = substitute(name, "&", "&&", "g") + let name = substitute(name, "\n", "^@", "g") return name -enddef +endfunc " When just starting Vim, load the buffer menu later if has("vim_starting") @@ -903,13 +910,13 @@ an 70.320 &Window.Sp&lit\ To\ #<Tab>^W^^ <C-W><C-^> an 70.330 &Window.Split\ &Vertically<Tab>^Wv <C-W>v an <silent> 70.332 &Window.Split\ File\ E&xplorer :call MenuExplOpen()<CR> if !exists("*MenuExplOpen") - def MenuExplOpen() + fun MenuExplOpen() if @% == "" - :20vsp . + 20vsp . else - exe ":20vsp " .. fnameescape(expand("%:p:h")) + exe "20vsp " . s:FnameEscape(expand("%:p:h")) endif - enddef + endfun endif an 70.335 &Window.-SEP1- <Nop> an 70.340 &Window.&Close<Tab>^Wc :confirm close<CR> @@ -936,8 +943,8 @@ vnoremenu 1.30 PopUp.&Copy "+y cnoremenu 1.30 PopUp.&Copy <C-Y> nnoremenu 1.40 PopUp.&Paste "+gP cnoremenu 1.40 PopUp.&Paste <C-R>+ -exe 'vnoremenu <script> 1.40 PopUp.&Paste ' .. paste#paste_cmd['v'] -exe 'inoremenu <script> 1.40 PopUp.&Paste ' .. paste#paste_cmd['i'] +exe 'vnoremenu <script> 1.40 PopUp.&Paste ' . paste#paste_cmd['v'] +exe 'inoremenu <script> 1.40 PopUp.&Paste ' . paste#paste_cmd['i'] vnoremenu 1.50 PopUp.&Delete x an 1.55 PopUp.-SEP2- <Nop> vnoremenu 1.60 PopUp.Select\ Blockwise <C-V> @@ -979,75 +986,77 @@ cnoremenu <script> <silent> 1.100 PopUp.Select\ &All <C-U>call <SID>SelectAll()< if has("spell") " Spell suggestions in the popup menu. Note that this will slow down the " appearance of the menu! - def s:SpellPopup() + func s:SpellPopup() if exists("s:changeitem") && s:changeitem != '' - call s:SpellDel() + call <SID>SpellDel() endif - # Return quickly if spell checking is not enabled. + " Return quickly if spell checking is not enabled. if !&spell || &spelllang == '' return endif - var curcol = col('.') - var w: string - var a: string - [w, a] = spellbadword() - if col('.') > curcol # don't use word after the cursor - w = '' + let curcol = col('.') + let [w, a] = spellbadword() + if col('.') > curcol " don't use word after the cursor + let w = '' endif if w != '' if a == 'caps' - s:suglist = [substitute(w, '.*', '\u&', '')] + let s:suglist = [substitute(w, '.*', '\u&', '')] else - s:suglist = spellsuggest(w, 10) + let s:suglist = spellsuggest(w, 10) endif if len(s:suglist) > 0 if !exists("g:menutrans_spell_change_ARG_to") - g:menutrans_spell_change_ARG_to = 'Change\ "%s"\ to' + let g:menutrans_spell_change_ARG_to = 'Change\ "%s"\ to' endif - s:changeitem = printf(g:menutrans_spell_change_ARG_to, escape(w, ' .')) - s:fromword = w - var pri = 1 + let s:changeitem = printf(g:menutrans_spell_change_ARG_to, escape(w, ' .')) + let s:fromword = w + let pri = 1 + " set 'cpo' to include the <CR> + let cpo_save = &cpo + set cpo&vim for sug in s:suglist - exe 'anoremenu 1.5.' .. pri .. ' PopUp.' .. s:changeitem .. '.' .. escape(sug, ' .') - \ .. ' :call <SID>SpellReplace(' .. pri .. ')<CR>' - pri += 1 + exe 'anoremenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .') + \ . ' :call <SID>SpellReplace(' . pri . ')<CR>' + let pri += 1 endfor if !exists("g:menutrans_spell_add_ARG_to_word_list") - g:menutrans_spell_add_ARG_to_word_list = 'Add\ "%s"\ to\ Word\ List' + let g:menutrans_spell_add_ARG_to_word_list = 'Add\ "%s"\ to\ Word\ List' endif - s:additem = printf(g:menutrans_spell_add_ARG_to_word_list, escape(w, ' .')) - exe 'anoremenu 1.6 PopUp.' .. s:additem .. ' :spellgood ' .. w .. '<CR>' + let s:additem = printf(g:menutrans_spell_add_ARG_to_word_list, escape(w, ' .')) + exe 'anoremenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>' if !exists("g:menutrans_spell_ignore_ARG") - g:menutrans_spell_ignore_ARG = 'Ignore\ "%s"' + let g:menutrans_spell_ignore_ARG = 'Ignore\ "%s"' endif - s:ignoreitem = printf(g:menutrans_spell_ignore_ARG, escape(w, ' .')) - exe 'anoremenu 1.7 PopUp.' .. s:ignoreitem .. ' :spellgood! ' .. w .. '<CR>' + let s:ignoreitem = printf(g:menutrans_spell_ignore_ARG, escape(w, ' .')) + exe 'anoremenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>' anoremenu 1.8 PopUp.-SpellSep- : + let &cpo = cpo_save endif endif - call cursor(0, curcol) # put the cursor back where it was - enddef + call cursor(0, curcol) " put the cursor back where it was + endfunc - def s:SpellReplace(n: number) - var l = getline('.') - # Move the cursor to the start of the word. + func s:SpellReplace(n) + let l = getline('.') + " Move the cursor to the start of the word. call spellbadword() - call setline('.', strpart(l, 0, col('.') - 1) .. s:suglist[n - 1] - \ .. strpart(l, col('.') + len(s:fromword) - 1)) - enddef - - def s:SpellDel() - exe "aunmenu PopUp." .. s:changeitem - exe "aunmenu PopUp." .. s:additem - exe "aunmenu PopUp." .. s:ignoreitem + call setline('.', strpart(l, 0, col('.') - 1) . s:suglist[a:n - 1] + \ . strpart(l, col('.') + len(s:fromword) - 1)) + endfunc + + func s:SpellDel() + exe "aunmenu PopUp." . s:changeitem + exe "aunmenu PopUp." . s:additem + exe "aunmenu PopUp." . s:ignoreitem aunmenu PopUp.-SpellSep- - s:changeitem = '' - enddef + let s:changeitem = '' + endfun augroup SpellPopupMenu au! MenuPopup * call <SID>SpellPopup() @@ -1080,8 +1089,8 @@ if has("toolbar") cnoremenu 1.80 ToolBar.Copy <C-Y> nnoremenu 1.90 ToolBar.Paste "+gP cnoremenu ToolBar.Paste <C-R>+ - exe 'vnoremenu <script> ToolBar.Paste ' .. paste#paste_cmd['v'] - exe 'inoremenu <script> ToolBar.Paste ' .. paste#paste_cmd['i'] + exe 'vnoremenu <script> ToolBar.Paste ' . paste#paste_cmd['v'] + exe 'inoremenu <script> ToolBar.Paste ' . paste#paste_cmd['i'] if !has("gui_athena") an 1.95 ToolBar.-sep3- <Nop> @@ -1099,7 +1108,7 @@ if has("toolbar") an 1.245 ToolBar.-sep6- <Nop> an 1.250 ToolBar.Make :make<CR> - an 1.270 ToolBar.RunCtags :exe "!" .. g:ctags_command<CR> + an 1.270 ToolBar.RunCtags :exe "!" . g:ctags_command<CR> an 1.280 ToolBar.TagJump g<C-]> an 1.295 ToolBar.-sep7- <Nop> @@ -1136,23 +1145,22 @@ else endif " Select a session to load; default to current session name if present -def s:LoadVimSesn() - var name: string +fun! s:LoadVimSesn() if strlen(v:this_session) > 0 - name = fnameescape(v:this_session) + let name = s:FnameEscape(v:this_session) else - name = "Session.vim" + let name = "Session.vim" endif - execute "browse so " .. name -enddef + execute "browse so " . name +endfun " Select a session to save; default to current session name if present -def s:SaveVimSesn() +fun! s:SaveVimSesn() if strlen(v:this_session) == 0 - v:this_session = "Session.vim" + let v:this_session = "Session.vim" endif - execute "browse mksession! " .. fnameescape(v:this_session) -enddef + execute "browse mksession! " . s:FnameEscape(v:this_session) +endfun endif @@ -1165,7 +1173,7 @@ if !exists("did_install_syntax_menu") an 50.214 &Syntax.A&utomatic :syn on<CR> an <silent> 50.216 &Syntax.On/Off\ for\ &This\ File :call <SID>SynOnOff()<CR> if !exists("*s:SynOnOff") - def s:SynOnOff() + fun s:SynOnOff() if has("syntax_items") syn clear else @@ -1174,7 +1182,7 @@ if !exists("did_install_syntax_menu") endif set syn=ON endif - enddef + endfun endif endif @@ -1201,9 +1209,6 @@ an 50.710 &Syntax.Co&lor\ Test :sp $VIMRUNTIME/syntax/colortest.vim<Bar>so %<CR an 50.720 &Syntax.&Highlight\ Test :runtime syntax/hitest.vim<CR> an 50.730 &Syntax.&Convert\ to\ HTML :runtime syntax/2html.vim<CR> -" Uncomment the next line to compile the functions early to find any mistakes -" defcompile - endif " !exists("did_install_syntax_menu") " Restore the previous value of 'cpoptions'. diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim index 3d0887b6..2e6a96fc 100644 --- a/ftplugin/crystal.vim +++ b/ftplugin/crystal.vim @@ -53,7 +53,7 @@ if get(g:, 'crystal_define_mappings', 1) nmap <buffer>gsc <Plug>(crystal-spec-run-current) endif -if &l:ofu ==# '' +if &l:ofu ==# '' && get(g:, 'crystal_enable_completion', 1) setlocal omnifunc=crystal_lang#complete endif diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim index dd84aa70..1213c6b7 100644 --- a/ftplugin/julia.vim +++ b/ftplugin/julia.vim @@ -26,7 +26,7 @@ setlocal fo-=t fo+=croql let b:julia_vim_loaded = 1 let b:undo_ftplugin = "setlocal include< suffixesadd< comments< commentstring<" - \ . " define< fo< shiftwidth< expandtab< indentexpr< indentkeys< cinoptions< completefunc<" + \ . " define< fo< indentexpr< indentkeys< cinoptions< completefunc<" \ . " | unlet! b:commentary_format" \ . " | unlet! b:smartcomment_force_linemode" \ . " | unlet! b:julia_vim_loaded" diff --git a/ftplugin/plantuml.vim b/ftplugin/plantuml.vim index 5d59c507..08855951 100644 --- a/ftplugin/plantuml.vim +++ b/ftplugin/plantuml.vim @@ -2,7 +2,6 @@ if polyglot#init#is_disabled(expand('<sfile>:p'), 'plantuml', 'ftplugin/plantuml finish endif -scriptencoding utf-8 " Vim filetype plugin file " Language: PlantUML " License: VIM LICENSE diff --git a/indent/plantuml.vim b/indent/plantuml.vim index 1bf9d13e..81dc5049 100644 --- a/indent/plantuml.vim +++ b/indent/plantuml.vim @@ -2,7 +2,6 @@ if polyglot#init#is_disabled(expand('<sfile>:p'), 'plantuml', 'indent/plantuml.v finish endif -scriptencoding utf-8 " Vim indent file " Language: PlantUML " License: VIM LICENSE diff --git a/indent/yaml.vim b/indent/yaml.vim index f19e7684..6c674b3b 100644 --- a/indent/yaml.vim +++ b/indent/yaml.vim @@ -3,18 +3,16 @@ if polyglot#init#is_disabled(expand('<sfile>:p'), 'yaml', 'indent/yaml.vim') endif " Vim indent file -" Language: YAML -" Maintainer: Nikolai Pavlov <zyx.vim@gmail.com> -" Last Change: 2019 Sep 28 +" Language: YAML +" Maintainer: Nikolai Pavlov <zyx.vim@gmail.com> +" Last Update: Lukas Reineke +" Last Change: 2021 Aug 13 " Only load this indent file when no other was loaded. if exists('b:did_indent') finish endif -let s:save_cpo = &cpo -set cpo&vim - let b:did_indent = 1 setlocal indentexpr=GetYAMLIndent(v:lnum) @@ -28,6 +26,9 @@ if exists('*GetYAMLIndent') finish endif +let s:save_cpo = &cpo +set cpo&vim + function s:FindPrevLessIndentedLine(lnum, ...) let prevlnum = prevnonblank(a:lnum-1) let curindent = a:0 ? a:1 : indent(a:lnum) @@ -57,7 +58,7 @@ let s:c_ns_anchor_name = s:c_ns_anchor_char.'+' let s:c_ns_anchor_property = '\v\&'.s:c_ns_anchor_name let s:ns_word_char = '\v[[:alnum:]_\-]' -let s:ns_tag_char = '\v%(%\x\x|'.s:ns_word_char.'|[#/;?:@&=+$.~*''()])' +let s:ns_tag_char = '\v%('.s:ns_word_char.'|[#/;?:@&=+$.~*''()])' let s:c_named_tag_handle = '\v\!'.s:ns_word_char.'+\!' let s:c_secondary_tag_handle = '\v\!\!' let s:c_primary_tag_handle = '\v\!' @@ -66,7 +67,7 @@ let s:c_tag_handle = '\v%('.s:c_named_tag_handle. \ '|'.s:c_primary_tag_handle.')' let s:c_ns_shorthand_tag = '\v'.s:c_tag_handle . s:ns_tag_char.'+' let s:c_non_specific_tag = '\v\!' -let s:ns_uri_char = '\v%(%\x\x|'.s:ns_word_char.'\v|[#/;?:@&=+$,.!~*''()[\]])' +let s:ns_uri_char = '\v%('.s:ns_word_char.'\v|[#/;?:@&=+$,.!~*''()[\]])' let s:c_verbatim_tag = '\v\!\<'.s:ns_uri_char.'+\>' let s:c_ns_tag_property = '\v'.s:c_verbatim_tag. \ '\v|'.s:c_ns_shorthand_tag. diff --git a/packages.yaml b/packages.yaml index 77979123..e0b3db52 100644 --- a/packages.yaml +++ b/packages.yaml @@ -1,6 +1,6 @@ --- name: 8th -remote: vim/vim:runtime +native: true glob: '**/8th.vim' filetypes: - name: 8th @@ -9,7 +9,7 @@ filetypes: - 8th --- name: a2ps -remote: vim/vim:runtime +native: true glob: '**/a2ps.vim' filetypes: - name: a2ps @@ -20,7 +20,7 @@ filetypes: - .a2psrc --- name: a65 -remote: vim/vim:runtime +native: true glob: '**/a65.vim' filetypes: - name: a65 @@ -29,7 +29,7 @@ filetypes: - a65 --- name: aap -remote: vim/vim:runtime +native: true glob: '**/aap.vim' filetypes: - name: aap @@ -38,7 +38,7 @@ filetypes: - aap --- name: abap -remote: vim/vim:runtime +native: true glob: '**/abap.vim' filetypes: - name: abap @@ -47,7 +47,7 @@ filetypes: - abap --- name: abaqus -remote: vim/vim:runtime +native: true glob: '**/abaqus.vim' filetypes: - name: abaqus @@ -55,7 +55,7 @@ filetypes: - inp --- name: abc -remote: vim/vim:runtime +native: true glob: '**/abc.vim' filetypes: - name: abc @@ -64,7 +64,7 @@ filetypes: - abc --- name: abel -remote: vim/vim:runtime +native: true glob: '**/abel.vim' filetypes: - name: abel @@ -73,7 +73,7 @@ filetypes: - abl --- name: acedb -remote: vim/vim:runtime +native: true glob: '**/acedb.vim' filetypes: - name: acedb @@ -90,7 +90,7 @@ filetypes: - dsl --- name: ada -remote: vim/vim:runtime +native: true glob: '**/ada.vim' filetypes: - name: ada @@ -104,7 +104,7 @@ filetypes: - ada_m --- name: ahdl -remote: vim/vim:runtime +native: true glob: '**/ahdl.vim' filetypes: - name: ahdl @@ -113,7 +113,7 @@ filetypes: - tdf --- name: aidl -remote: vim/vim:runtime +native: true glob: '**/aidl.vim' filetypes: - name: aidl @@ -122,7 +122,7 @@ filetypes: - aidl --- name: alsaconf -remote: vim/vim:runtime +native: true glob: '**/alsaconf.vim' filetypes: - name: alsaconf @@ -132,7 +132,7 @@ filetypes: - '*/etc/asound.conf' --- name: aml -remote: vim/vim:runtime +native: true glob: '**/aml.vim' filetypes: - name: aml @@ -140,7 +140,7 @@ filetypes: - aml --- name: ampl -remote: vim/vim:runtime +native: true glob: '**/ampl.vim' filetypes: - name: ampl @@ -149,7 +149,7 @@ filetypes: - run --- name: ant -remote: vim/vim:runtime +native: true glob: '**/ant.vim' filetypes: - name: ant @@ -157,7 +157,7 @@ filetypes: - build.xml --- name: apache -remote: vim/vim:runtime +native: true glob: '**/apache.vim' filetypes: - name: apache @@ -192,7 +192,7 @@ filetypes: linguist: AppleScript --- name: aptconf -remote: vim/vim:runtime +native: true glob: '**/aptconf.vim' filetypes: - name: aptconf @@ -208,7 +208,7 @@ filetypes: - '*/etc/apt/apt.conf.d/]\+.conf' --- name: arch -remote: vim/vim:runtime +native: true glob: '**/arch.vim' filetypes: - name: arch @@ -226,7 +226,7 @@ filetypes: - ino --- name: art -remote: vim/vim:runtime +native: true glob: '**/art.vim' filetypes: - name: art @@ -246,7 +246,7 @@ filetypes: linguist: AutoHotkey --- name: make -remote: vim/vim:runtime +native: true glob: '**/make.vim' filetypes: - name: make @@ -258,7 +258,7 @@ filetypes: - mk --- name: automake -remote: vim/vim:runtime +native: true glob: '**/automake.vim' filetypes: - name: automake @@ -267,7 +267,7 @@ filetypes: - GNUmakefile.am --- name: asn -remote: vim/vim:runtime +native: true glob: '**/asn.vim' filetypes: - name: asn @@ -276,7 +276,7 @@ filetypes: - asn1 --- name: aspvbs -remote: vim/vim:runtime +native: true globs: - '**/aspvbs.vim' filetypes: @@ -286,7 +286,7 @@ filetypes: - asp --- name: aspperl -remote: vim/vim:runtime +native: true globs: - '**/aspperl.vim' filetypes: @@ -295,7 +295,7 @@ filetypes: - asp --- name: atlas -remote: vim/vim:runtime +native: true glob: '**/atlas.vim' filetypes: - name: atlas @@ -304,7 +304,7 @@ filetypes: - as --- name: autoit -remote: vim/vim:runtime +native: true glob: '**/autoit.vim' filetypes: - name: autoit @@ -312,7 +312,7 @@ filetypes: - au3 --- name: ave -remote: vim/vim:runtime +native: true glob: '**/ave.vim' filetypes: - name: ave @@ -320,7 +320,7 @@ filetypes: - ave --- name: awk -remote: vim/vim:runtime +native: true glob: '**/awk.vim' filetypes: - name: awk @@ -513,7 +513,7 @@ filetypes: - 'docker-compose*.yml*' --- name: elf -remote: vim/vim:runtime +native: true glob: '**/elf.vim' filetypes: - name: elf @@ -589,7 +589,7 @@ filetypes: - fbs --- name: forth -remote: vim/vim:runtime +native: true glob: '**/forth.vim' filetypes: - name: forth @@ -705,7 +705,7 @@ dependencies: groovy filetypes: [] --- name: groovy -remote: vim/vim:runtime +native: true glob: '**/groovy.vim' filetypes: - name: groovy @@ -714,7 +714,7 @@ filetypes: - gradle --- name: grub -remote: vim/vim:runtime +native: true glob: '**/grub.vim' filetypes: - name: grub @@ -865,7 +865,7 @@ filetypes: - Jenkinsfile* --- name: htmldjango -remote: vim/vim:runtime +native: true globs: - '**/django.vim' - '**/htmldjango.vim' @@ -954,7 +954,7 @@ filetypes: - journal --- name: less -remote: vim/vim:runtime +native: true glob: '**/less.vim' filetypes: - name: less @@ -999,7 +999,7 @@ filetypes: linguist: Lua --- name: m4 -remote: vim/vim:runtime +native: true glob: '**/m4.vim' filetypes: - name: m4 @@ -1061,7 +1061,7 @@ filetypes: linguist: MoonScript --- name: murphi -remote: vim/vim:runtime +native: true glob: '**/murphi.vim' filetypes: - name: murphi @@ -1737,7 +1737,7 @@ filetypes: - vm --- name: vmasm -remote: vim/vim:runtime +native: true glob: '**/vmasm.vim' filetypes: - name: vmasm @@ -1788,9 +1788,9 @@ filetypes: - name: xsl linguist: XSLT --- -name: yaml # Fixes indentation issue: https://github.com/vim/vim/issues/6417 -remote: vim/vim@df44a27b53586fccfc6a3aedc89061fdd9a515ff:runtime +name: yaml +native: true glob: '**/yaml.vim' filetypes: - name: yaml @@ -1854,7 +1854,7 @@ filetypes: - zir --- name: trasys -remote: vim/vim:runtime +native: true glob: '**/trasys.vim' filetypes: - name: trasys @@ -1862,7 +1862,7 @@ filetypes: - inp --- name: basic -remote: vim/vim:runtime +native: true glob: '**/basic.vim' filetypes: - name: basic @@ -1870,7 +1870,7 @@ filetypes: - basic --- name: visual-basic -remote: vim/vim:runtime +native: true glob: '**/vb.vim' filetypes: - name: vb @@ -1885,7 +1885,7 @@ filetypes: - '*.vb' --- name: dosini -remote: vim/vim:runtime +native: true glob: '**/dosini.vim' filetypes: - name: dosini @@ -1907,7 +1907,7 @@ filetypes: linguist: Odin --- name: bzl -remote: vim/vim:runtime +native: true glob: '**/bzl.vim' filetypes: - name: bzl @@ -1917,7 +1917,7 @@ filetypes: - BUILD --- name: prolog -remote: vim/vim:runtime +native: true glob: '**/prolog.vim' filetypes: - name: prolog @@ -1926,7 +1926,7 @@ filetypes: - pdb --- name: tads -remote: vim/vim:runtime +native: true glob: '**/tads.vim' filetypes: - name: tads @@ -1943,7 +1943,7 @@ filetypes: - '*.git/info/exclude' --- name: sql -remote: vim/vim:runtime +native: true glob: - '**/sql.vim' - '**/sqloracle.vim' @@ -1956,7 +1956,7 @@ filetypes: - tyc --- name: conf -remote: vim/vim:runtime +native: true glob: '**/conf.vim' filetypes: - name: conf @@ -1968,7 +1968,7 @@ filetypes: - '*/etc/hosts' --- name: b -remote: vim/vim:runtime +native: true glob: '**/b.vim' filetypes: - name: b @@ -1978,7 +1978,7 @@ filetypes: - imp --- name: ibasic -remote: vim/vim:runtime +native: true glob: '**/ibasic.vim' filetypes: - name: ibasic @@ -1987,7 +1987,7 @@ filetypes: - ibi --- name: freebasic -remote: vim/vim:runtime +native: true glob: '**/freebasic.vim' filetypes: - name: freebasic @@ -1996,7 +1996,7 @@ filetypes: - bi --- name: hamster -remote: vim/vim:runtime +native: true glob: '**/hamster.vim' filetypes: - name: hamster @@ -2005,7 +2005,7 @@ filetypes: - hsm --- name: dosbatch -remote: vim/vim:runtime +native: true glob: "**/dosbatch.vim" filetypes: - name: dosbatch @@ -2014,7 +2014,7 @@ filetypes: description: Batch file for MSDOS. --- name: bc -remote: vim/vim:runtime +native: true glob: "**/bc.vim" filetypes: - name: bc @@ -2023,7 +2023,7 @@ filetypes: description: BC calculator --- name: bdf -remote: vim/vim:runtime +native: true glob: "**/bdf.vim" filetypes: - name: bdf @@ -2032,7 +2032,7 @@ filetypes: description: BDF font --- name: bib -remote: vim/vim:runtime +native: true glob: "**/bib.vim" filetypes: - name: bib @@ -2041,7 +2041,7 @@ filetypes: description: BibTeX bibliography database file --- name: bst -remote: vim/vim:runtime +native: true glob: "**/bst.vim" filetypes: - name: bst @@ -2050,7 +2050,7 @@ filetypes: description: BibTeX Bibliography Style --- name: named -remote: vim/vim:runtime +native: true glob: "**/named.vim" filetypes: - name: named @@ -2059,7 +2059,7 @@ filetypes: description: sudoedit uses namedXXXX.conf --- name: bindzone -remote: vim/vim:runtime +native: true glob: "**/bindzone.vim" filetypes: - name: bindzone @@ -2069,7 +2069,7 @@ filetypes: - pattern: "*/named/db.*,*/bind/db.*" --- name: blank -remote: vim/vim:runtime +native: true glob: "**/blank.vim" filetypes: - name: blank @@ -2078,7 +2078,7 @@ filetypes: description: Blank --- name: bsdl -remote: vim/vim:runtime +native: true glob: "**/bsdl.vim" filetypes: - name: bsdl @@ -2087,7 +2087,7 @@ filetypes: description: BSDL --- name: lpc -remote: vim/vim:runtime +native: true glob: "**/lpc.vim" filetypes: - name: lpc @@ -2096,7 +2096,7 @@ filetypes: description: C or lpc --- name: calendar -remote: vim/vim:runtime +native: true glob: "**/calendar.vim" filetypes: - name: calendar @@ -2106,7 +2106,7 @@ filetypes: - pattern: "*/.calendar/*,*/share/calendar/*/calendar.*,*/share/calendar/calendar.*" --- name: cs -remote: vim/vim:runtime +native: true glob: "**/cs.vim" filetypes: - name: cs @@ -2115,7 +2115,7 @@ filetypes: description: C# --- name: csdl -remote: vim/vim:runtime +native: true glob: "**/csdl.vim" filetypes: - name: csdl @@ -2124,7 +2124,7 @@ filetypes: description: CSDL --- name: cabal -remote: vim/vim:runtime +native: true glob: "**/cabal.vim" filetypes: - name: cabal @@ -2133,7 +2133,7 @@ filetypes: description: Cabal --- name: cdrtoc -remote: vim/vim:runtime +native: true glob: "**/cdrtoc.vim" filetypes: - name: cdrtoc @@ -2142,7 +2142,7 @@ filetypes: description: Cdrdao TOC --- name: cdrdaoconf -remote: vim/vim:runtime +native: true glob: "**/cdrdaoconf.vim" filetypes: - name: cdrdaoconf @@ -2151,7 +2151,7 @@ filetypes: description: Cdrdao config --- name: chaiscript -remote: vim/vim:runtime +native: true glob: "**/chaiscript.vim" filetypes: - name: chaiscript @@ -2160,7 +2160,7 @@ filetypes: description: ChaiScript --- name: cdl -remote: vim/vim:runtime +native: true glob: "**/cdl.vim" filetypes: - name: cdl @@ -2169,7 +2169,7 @@ filetypes: description: Comshare Dimension Definition Language --- name: conaryrecipe -remote: vim/vim:runtime +native: true glob: "**/conaryrecipe.vim" filetypes: - name: conaryrecipe @@ -2178,7 +2178,7 @@ filetypes: description: Conary Recipe --- name: crm -remote: vim/vim:runtime +native: true glob: "**/crm.vim" filetypes: - name: crm @@ -2187,7 +2187,7 @@ filetypes: description: Controllable Regex Mutilator --- name: cynpp -remote: vim/vim:runtime +native: true glob: "**/cynpp.vim" filetypes: - name: cynpp @@ -2196,7 +2196,7 @@ filetypes: description: Cyn++ --- name: ch -remote: vim/vim:runtime +native: true glob: "**/ch.vim" filetypes: - name: ch @@ -2205,7 +2205,7 @@ filetypes: description: Ch (CHscript) --- name: css -remote: vim/vim:runtime +native: true glob: "**/css.vim" filetypes: - name: css @@ -2214,7 +2214,7 @@ filetypes: description: Cascading Style Sheets --- name: cterm -remote: vim/vim:runtime +native: true glob: "**/cterm.vim" filetypes: - name: cterm @@ -2223,7 +2223,7 @@ filetypes: description: Century Term Command Scripts (*.cmd too) --- name: debchangelog -remote: vim/vim:runtime +native: true glob: "**/debchangelog.vim" filetypes: - name: debchangelog @@ -2231,7 +2231,7 @@ filetypes: - pattern: changelog.Debian,changelog.dch,NEWS.Debian,NEWS.dch,*/debian/changelog --- name: chill -remote: vim/vim:runtime +native: true glob: "**/chill.vim" filetypes: - name: chill @@ -2240,7 +2240,7 @@ filetypes: description: CHILL --- name: chordpro -remote: vim/vim:runtime +native: true glob: "**/chordpro.vim" filetypes: - name: chordpro @@ -2249,7 +2249,7 @@ filetypes: description: ChordPro --- name: clean -remote: vim/vim:runtime +native: true glob: "**/clean.vim" filetypes: - name: clean @@ -2258,7 +2258,7 @@ filetypes: description: Clean --- name: cl -remote: vim/vim:runtime +native: true glob: "**/cl.vim" filetypes: - name: cl @@ -2267,7 +2267,7 @@ filetypes: description: Clever --- name: cmusrc -remote: vim/vim:runtime +native: true glob: "**/cmusrc.vim" filetypes: - name: cmusrc @@ -2276,7 +2276,7 @@ filetypes: description: Cmusrc --- name: cobol -remote: vim/vim:runtime +native: true glob: "**/cobol.vim" filetypes: - name: cobol @@ -2285,7 +2285,7 @@ filetypes: description: Cobol --- name: coco -remote: vim/vim:runtime +native: true glob: "**/coco.vim" filetypes: - name: coco @@ -2294,7 +2294,7 @@ filetypes: description: Coco/R --- name: cf -remote: vim/vim:runtime +native: true glob: "**/cf.vim" filetypes: - name: cf @@ -2303,7 +2303,7 @@ filetypes: description: Cold Fusion --- name: config -remote: vim/vim:runtime +native: true glob: "**/config.vim" filetypes: - name: config @@ -2315,7 +2315,7 @@ filetypes: - pattern: "/etc/hostname.*" --- name: cuda -remote: vim/vim:runtime +native: true glob: "**/cuda.vim" filetypes: - name: cuda @@ -2324,7 +2324,7 @@ filetypes: description: CUDA Cumpute Unified Device Architecture --- name: dockerfile -remote: vim/vim:runtime +native: true glob: "**/dockerfile.vim" filetypes: - name: dockerfile @@ -2333,7 +2333,7 @@ filetypes: description: Dockerfile; Podman uses the same syntax with name Containerfile --- name: dcd -remote: vim/vim:runtime +native: true glob: "**/dcd.vim" filetypes: - name: dcd @@ -2342,7 +2342,7 @@ filetypes: description: WildPackets EtherPeek Decoder --- name: eterm -remote: vim/vim:runtime +native: true glob: "**/eterm.vim" filetypes: - name: eterm @@ -2351,7 +2351,7 @@ filetypes: description: Eterm --- name: lynx -remote: vim/vim:runtime +native: true glob: "**/lynx.vim" filetypes: - name: lynx @@ -2360,7 +2360,7 @@ filetypes: description: Lynx config files --- name: quake -remote: vim/vim:runtime +native: true glob: "**/quake.vim" filetypes: - name: quake @@ -2369,7 +2369,7 @@ filetypes: description: Quake --- name: cfg -remote: vim/vim:runtime +native: true glob: "**/cfg.vim" filetypes: - name: cfg @@ -2380,7 +2380,7 @@ filetypes: description: Mercurial config (looks like generic config file) --- name: csp -remote: vim/vim:runtime +native: true glob: "**/csp.vim" filetypes: - name: csp @@ -2389,7 +2389,7 @@ filetypes: description: Communicating Sequential Processes --- name: cupl -remote: vim/vim:runtime +native: true glob: "**/cupl.vim" filetypes: - name: cupl @@ -2398,7 +2398,7 @@ filetypes: description: CUPL logic description and simulation --- name: cuplsim -remote: vim/vim:runtime +native: true glob: "**/cuplsim.vim" filetypes: - name: cuplsim @@ -2407,7 +2407,7 @@ filetypes: description: CUPL logic description and simulation --- name: debcontrol -remote: vim/vim:runtime +native: true glob: "**/debcontrol.vim" filetypes: - name: debcontrol @@ -2416,7 +2416,7 @@ filetypes: description: Debian Control --- name: debcopyright -remote: vim/vim:runtime +native: true glob: "**/debcopyright.vim" filetypes: - name: debcopyright @@ -2425,7 +2425,7 @@ filetypes: description: Debian Copyright --- name: debsources -remote: vim/vim:runtime +native: true glob: "**/debsources.vim" filetypes: - name: debsources @@ -2434,7 +2434,7 @@ filetypes: description: Debian Sources.list --- name: denyhosts -remote: vim/vim:runtime +native: true glob: "**/denyhosts.vim" filetypes: - name: denyhosts @@ -2443,7 +2443,7 @@ filetypes: description: Deny hosts --- name: dnsmasq -remote: vim/vim:runtime +native: true glob: "**/dnsmasq.vim" filetypes: - name: dnsmasq @@ -2453,7 +2453,7 @@ filetypes: - pattern: "*/etc/dnsmasq.d/*" --- name: desc -remote: vim/vim:runtime +native: true glob: "**/desc.vim" filetypes: - name: desc @@ -2462,7 +2462,7 @@ filetypes: description: ROCKLinux package description --- name: desktop -remote: vim/vim:runtime +native: true glob: "**/desktop.vim" filetypes: - name: desktop @@ -2471,7 +2471,7 @@ filetypes: description: Desktop files --- name: dictconf -remote: vim/vim:runtime +native: true glob: "**/dictconf.vim" filetypes: - name: dictconf @@ -2480,7 +2480,7 @@ filetypes: description: Dict config --- name: dictdconf -remote: vim/vim:runtime +native: true glob: "**/dictdconf.vim" filetypes: - name: dictdconf @@ -2489,7 +2489,7 @@ filetypes: description: Dictd config --- name: diff -remote: vim/vim:runtime +native: true glob: "**/diff.vim" filetypes: - name: diff @@ -2498,7 +2498,7 @@ filetypes: description: Diff files --- name: dircolors -remote: vim/vim:runtime +native: true glob: "**/dircolors.vim" filetypes: - name: dircolors @@ -2507,7 +2507,7 @@ filetypes: description: Dircolors --- name: dot -remote: vim/vim:runtime +native: true glob: "**/dot.vim" filetypes: - name: dot @@ -2516,7 +2516,7 @@ filetypes: description: DOT --- name: dylanlid -remote: vim/vim:runtime +native: true glob: "**/dylanlid.vim" filetypes: - name: dylanlid @@ -2525,7 +2525,7 @@ filetypes: description: Dylan - lid files --- name: dylanintr -remote: vim/vim:runtime +native: true glob: "**/dylanintr.vim" filetypes: - name: dylanintr @@ -2534,7 +2534,7 @@ filetypes: description: Dylan - intr files (melange) --- name: dylan -remote: vim/vim:runtime +native: true glob: "**/dylan.vim" filetypes: - name: dylan @@ -2543,7 +2543,7 @@ filetypes: description: Dylan --- name: def -remote: vim/vim:runtime +native: true glob: "**/def.vim" filetypes: - name: def @@ -2552,7 +2552,7 @@ filetypes: description: Microsoft Module Definition --- name: dracula -remote: vim/vim:runtime +native: true glob: "**/dracula.vim" filetypes: - name: dracula @@ -2562,7 +2562,7 @@ filetypes: - pattern: drac.* --- name: datascript -remote: vim/vim:runtime +native: true glob: "**/datascript.vim" filetypes: - name: datascript @@ -2571,7 +2571,7 @@ filetypes: description: Datascript --- name: dsl -remote: vim/vim:runtime +native: true glob: "**/dsl.vim" filetypes: - name: dsl @@ -2580,7 +2580,7 @@ filetypes: description: dsl --- name: dtd -remote: vim/vim:runtime +native: true glob: "**/dtd.vim" filetypes: - name: dtd @@ -2589,7 +2589,7 @@ filetypes: description: DTD (Document Type Definition for XML) --- name: dts -remote: vim/vim:runtime +native: true glob: "**/dts.vim" filetypes: - name: dts @@ -2598,7 +2598,7 @@ filetypes: description: DTS/DSTI (device tree files) --- name: edif -remote: vim/vim:runtime +native: true glob: "**/edif.vim" filetypes: - name: edif @@ -2606,7 +2606,7 @@ filetypes: - pattern: "*.ed\\(f\\|if\\|o\\)" --- name: ecd -remote: vim/vim:runtime +native: true glob: "**/ecd.vim" filetypes: - name: ecd @@ -2615,7 +2615,7 @@ filetypes: description: Embedix Component Description --- name: elinks -remote: vim/vim:runtime +native: true glob: "**/elinks.vim" filetypes: - name: elinks @@ -2624,7 +2624,7 @@ filetypes: description: Elinks configuration --- name: elmfilt -remote: vim/vim:runtime +native: true glob: "**/elmfilt.vim" filetypes: - name: elmfilt @@ -2633,7 +2633,7 @@ filetypes: description: Elm Filter Rules file --- name: esmtprc -remote: vim/vim:runtime +native: true glob: "**/esmtprc.vim" filetypes: - name: esmtprc @@ -2642,7 +2642,7 @@ filetypes: description: ESMTP rc file --- name: esqlc -remote: vim/vim:runtime +native: true glob: "**/esqlc.vim" filetypes: - name: esqlc @@ -2651,7 +2651,7 @@ filetypes: description: ESQL-C --- name: esterel -remote: vim/vim:runtime +native: true glob: "**/esterel.vim" filetypes: - name: esterel @@ -2660,7 +2660,7 @@ filetypes: description: Esterel --- name: csc -remote: vim/vim:runtime +native: true glob: "**/csc.vim" filetypes: - name: csc @@ -2669,7 +2669,7 @@ filetypes: description: Essbase script --- name: exim -remote: vim/vim:runtime +native: true glob: "**/exim.vim" filetypes: - name: exim @@ -2678,7 +2678,7 @@ filetypes: description: Exim --- name: expect -remote: vim/vim:runtime +native: true glob: "**/expect.vim" filetypes: - name: expect @@ -2687,7 +2687,7 @@ filetypes: description: Expect --- name: exports -remote: vim/vim:runtime +native: true glob: "**/exports.vim" filetypes: - name: exports @@ -2697,7 +2697,7 @@ filetypes: --- # TODO: change after merge: name: falcon -remote: vim/vim:runtime +native: true glob: "**/falcon.vim" filetypes: - name: falcon @@ -2706,7 +2706,7 @@ filetypes: description: Falcon --- name: fan -remote: vim/vim:runtime +native: true glob: "**/fan.vim" filetypes: - name: fan @@ -2715,7 +2715,7 @@ filetypes: description: Fantom --- name: fetchmail -remote: vim/vim:runtime +native: true glob: "**/fetchmail.vim" filetypes: - name: fetchmail @@ -2724,7 +2724,7 @@ filetypes: description: Fetchmail RC file --- name: focexec -remote: vim/vim:runtime +native: true glob: "**/focexec.vim" filetypes: - name: focexec @@ -2733,7 +2733,7 @@ filetypes: description: Focus Executable --- name: master -remote: vim/vim:runtime +native: true glob: "**/master.vim" filetypes: - name: master @@ -2742,7 +2742,7 @@ filetypes: description: Focus Master file (but not for auto.master) --- name: reva -remote: vim/vim:runtime +native: true glob: "**/reva.vim" filetypes: - name: reva @@ -2751,7 +2751,7 @@ filetypes: description: Reva Forth --- name: fortran -remote: vim/vim:runtime +native: true glob: "**/fortran.vim" filetypes: - name: fortran @@ -2760,7 +2760,7 @@ filetypes: description: Fortran --- name: framescript -remote: vim/vim:runtime +native: true glob: "**/framescript.vim" filetypes: - name: framescript @@ -2769,7 +2769,7 @@ filetypes: description: Framescript --- name: fstab -remote: vim/vim:runtime +native: true glob: "**/fstab.vim" filetypes: - name: fstab @@ -2778,7 +2778,7 @@ filetypes: description: FStab --- name: gdb -remote: vim/vim:runtime +native: true glob: "**/gdb.vim" filetypes: - name: gdb @@ -2787,7 +2787,7 @@ filetypes: description: GDB command files --- name: gdmo -remote: vim/vim:runtime +native: true glob: "**/gdmo.vim" filetypes: - name: gdmo @@ -2796,7 +2796,7 @@ filetypes: description: GDMO --- name: gedcom -remote: vim/vim:runtime +native: true glob: "**/gedcom.vim" filetypes: - name: gedcom @@ -2806,7 +2806,7 @@ filetypes: - pattern: "*/tmp/lltmp*" --- name: gkrellmrc -remote: vim/vim:runtime +native: true glob: "**/gkrellmrc.vim" filetypes: - name: gkrellmrc @@ -2815,7 +2815,7 @@ filetypes: description: Gkrellmrc --- name: gp -remote: vim/vim:runtime +native: true glob: "**/gp.vim" filetypes: - name: gp @@ -2824,7 +2824,7 @@ filetypes: description: GP scripts (2.0 and onward) --- name: gpg -remote: vim/vim:runtime +native: true glob: "**/gpg.vim" filetypes: - name: gpg @@ -2833,7 +2833,7 @@ filetypes: description: GPG --- name: gnash -remote: vim/vim:runtime +native: true glob: "**/gnash.vim" filetypes: - name: gnash @@ -2842,7 +2842,7 @@ filetypes: description: gnash(1) configuration files --- name: gitolite -remote: vim/vim:runtime +native: true glob: "**/gitolite.vim" filetypes: - name: gitolite @@ -2852,7 +2852,7 @@ filetypes: - pattern: "*/gitolite-admin/conf/*" --- name: grads -remote: vim/vim:runtime +native: true glob: "**/grads.vim" filetypes: - name: grads @@ -2861,7 +2861,7 @@ filetypes: description: GrADS scripts --- name: gretl -remote: vim/vim:runtime +native: true glob: "**/gretl.vim" filetypes: - name: gretl @@ -2870,7 +2870,7 @@ filetypes: description: Gretl --- name: gsp -remote: vim/vim:runtime +native: true glob: "**/gsp.vim" filetypes: - name: gsp @@ -2879,7 +2879,7 @@ filetypes: description: GNU Server Pages --- name: group -remote: vim/vim:runtime +native: true glob: "**/group.vim" filetypes: - name: group @@ -2888,7 +2888,7 @@ filetypes: description: Group file --- name: gtkrc -remote: vim/vim:runtime +native: true glob: "**/gtkrc.vim" filetypes: - name: gtkrc @@ -2898,7 +2898,7 @@ filetypes: - pattern: ".gtkrc*,gtkrc*" --- name: lhaskell -remote: vim/vim:runtime +native: true glob: "**/lhaskell.vim" filetypes: - name: lhaskell @@ -2907,7 +2907,7 @@ filetypes: description: Haskell --- name: chaskell -remote: vim/vim:runtime +native: true glob: "**/chaskell.vim" filetypes: - name: chaskell @@ -2916,7 +2916,7 @@ filetypes: description: Haskell --- name: haste -remote: vim/vim:runtime +native: true glob: "**/haste.vim" filetypes: - name: haste @@ -2925,7 +2925,7 @@ filetypes: description: Haste --- name: hastepreproc -remote: vim/vim:runtime +native: true glob: "**/hastepreproc.vim" filetypes: - name: hastepreproc @@ -2934,7 +2934,7 @@ filetypes: description: Haste --- name: hercules -remote: vim/vim:runtime +native: true glob: "**/hercules.vim" filetypes: - name: hercules @@ -2943,7 +2943,7 @@ filetypes: description: Hercules --- name: hex -remote: vim/vim:runtime +native: true glob: "**/hex.vim" filetypes: - name: hex @@ -2952,7 +2952,7 @@ filetypes: description: HEX (Intel) --- name: hollywood -remote: vim/vim:runtime +native: true glob: "**/hollywood.vim" filetypes: - name: hollywood @@ -2961,7 +2961,7 @@ filetypes: description: Hollywood --- name: tilde -remote: vim/vim:runtime +native: true glob: "**/tilde.vim" filetypes: - name: tilde @@ -2970,7 +2970,7 @@ filetypes: description: Tilde (must be before HTML) --- name: htmlm4 -remote: vim/vim:runtime +native: true glob: "**/htmlm4.vim" filetypes: - name: htmlm4 @@ -2979,7 +2979,7 @@ filetypes: description: HTML with M4 --- name: template -remote: vim/vim:runtime +native: true glob: "**/template.vim" filetypes: - name: template @@ -2988,7 +2988,7 @@ filetypes: description: Some template. Used to be HTML Cheetah. --- name: hostconf -remote: vim/vim:runtime +native: true glob: "**/hostconf.vim" filetypes: - name: hostconf @@ -2997,7 +2997,7 @@ filetypes: description: Host config --- name: hostsaccess -remote: vim/vim:runtime +native: true glob: "**/hostsaccess.vim" filetypes: - name: hostsaccess @@ -3006,7 +3006,7 @@ filetypes: description: Hosts access --- name: hb -remote: vim/vim:runtime +native: true glob: "**/hb.vim" filetypes: - name: hb @@ -3015,7 +3015,7 @@ filetypes: description: Hyper Builder --- name: icon -remote: vim/vim:runtime +native: true glob: "**/icon.vim" filetypes: - name: icon @@ -3024,7 +3024,7 @@ filetypes: description: Icon --- name: msidl -remote: vim/vim:runtime +native: true glob: "**/msidl.vim" filetypes: - name: msidl @@ -3033,7 +3033,7 @@ filetypes: description: MOF = WMI (Windows Management Instrumentation) Managed Object Format --- name: icemenu -remote: vim/vim:runtime +native: true glob: "**/icemenu.vim" filetypes: - name: icemenu @@ -3042,7 +3042,7 @@ filetypes: description: Icewm menu --- name: indent -remote: vim/vim:runtime +native: true glob: "**/indent.vim" filetypes: - name: indent @@ -3053,7 +3053,7 @@ filetypes: description: Indent RC --- name: inform -remote: vim/vim:runtime +native: true glob: "**/inform.vim" filetypes: - name: inform @@ -3062,7 +3062,7 @@ filetypes: description: Inform --- name: initng -remote: vim/vim:runtime +native: true glob: "**/initng.vim" filetypes: - name: initng @@ -3071,7 +3071,7 @@ filetypes: description: Initng --- name: upstreamdat -remote: vim/vim:runtime +native: true glob: "**/upstreamdat.vim" filetypes: - name: upstreamdat @@ -3079,7 +3079,7 @@ filetypes: - pattern: upstream.dat\c,upstream.*.dat\c,*.upstream.dat\c --- name: upstreamlog -remote: vim/vim:runtime +native: true glob: "**/upstreamlog.vim" filetypes: - name: upstreamlog @@ -3087,7 +3087,7 @@ filetypes: - pattern: fdrupstream.log,upstream.log\c,upstream.*.log\c,*.upstream.log\c,UPSTREAM-*.log\c --- name: upstreaminstalllog -remote: vim/vim:runtime +native: true glob: "**/upstreaminstalllog.vim" filetypes: - name: upstreaminstalllog @@ -3095,7 +3095,7 @@ filetypes: - pattern: upstreaminstall.log\c,upstreaminstall.*.log\c,*.upstreaminstall.log\c --- name: usserverlog -remote: vim/vim:runtime +native: true glob: "**/usserverlog.vim" filetypes: - name: usserverlog @@ -3103,7 +3103,7 @@ filetypes: - pattern: usserver.log\c,usserver.*.log\c,*.usserver.log\c --- name: usw2kagtlog -remote: vim/vim:runtime +native: true glob: "**/usw2kagtlog.vim" filetypes: - name: usw2kagtlog @@ -3111,7 +3111,7 @@ filetypes: - pattern: usw2kagt.log\c,usw2kagt.*.log\c,*.usw2kagt.log\c --- name: ipfilter -remote: vim/vim:runtime +native: true glob: "**/ipfilter.vim" filetypes: - name: ipfilter @@ -3120,7 +3120,7 @@ filetypes: description: Ipfilter --- name: fgl -remote: vim/vim:runtime +native: true glob: "**/fgl.vim" filetypes: - name: fgl @@ -3129,7 +3129,7 @@ filetypes: description: Informix 4GL (source - canonical, include file, I4GL+M4 preproc.) --- name: inittab -remote: vim/vim:runtime +native: true glob: "**/inittab.vim" filetypes: - name: inittab @@ -3138,7 +3138,7 @@ filetypes: description: SysV Inittab --- name: iss -remote: vim/vim:runtime +native: true glob: "**/iss.vim" filetypes: - name: iss @@ -3147,7 +3147,7 @@ filetypes: description: Inno Setup --- name: j -remote: vim/vim:runtime +native: true glob: "**/j.vim" filetypes: - name: j @@ -3156,7 +3156,7 @@ filetypes: description: J --- name: jal -remote: vim/vim:runtime +native: true glob: "**/jal.vim" filetypes: - name: jal @@ -3165,7 +3165,7 @@ filetypes: description: JAL --- name: jam -remote: vim/vim:runtime +native: true glob: "**/jam.vim" filetypes: - name: jam @@ -3182,7 +3182,7 @@ filetypes: description: Java --- name: javacc -remote: vim/vim:runtime +native: true glob: "**/javacc.vim" filetypes: - name: javacc @@ -3191,7 +3191,7 @@ filetypes: description: JavaCC --- name: jsp -remote: vim/vim:runtime +native: true glob: "**/jsp.vim" filetypes: - name: jsp @@ -3200,7 +3200,7 @@ filetypes: description: Java Server Pages --- name: jproperties -remote: vim/vim:runtime +native: true glob: "**/jproperties.vim" filetypes: - name: jproperties @@ -3210,7 +3210,7 @@ filetypes: - pattern: "*.properties_??_??_*" --- name: jess -remote: vim/vim:runtime +native: true glob: "**/jess.vim" filetypes: - name: jess @@ -3219,7 +3219,7 @@ filetypes: description: Jess --- name: jgraph -remote: vim/vim:runtime +native: true glob: "**/jgraph.vim" filetypes: - name: jgraph @@ -3228,7 +3228,7 @@ filetypes: description: Jgraph --- name: jovial -remote: vim/vim:runtime +native: true glob: "**/jovial.vim" filetypes: - name: jovial @@ -3237,7 +3237,7 @@ filetypes: description: Jovial --- name: kix -remote: vim/vim:runtime +native: true glob: "**/kix.vim" filetypes: - name: kix @@ -3246,7 +3246,7 @@ filetypes: description: Kixtart --- name: kwt -remote: vim/vim:runtime +native: true glob: "**/kwt.vim" filetypes: - name: kwt @@ -3255,7 +3255,7 @@ filetypes: description: Kimwitu[++] --- name: kivy -remote: vim/vim:runtime +native: true glob: "**/kivy.vim" filetypes: - name: kivy @@ -3264,7 +3264,7 @@ filetypes: description: Kivy --- name: kscript -remote: vim/vim:runtime +native: true glob: "**/kscript.vim" filetypes: - name: kscript @@ -3273,7 +3273,7 @@ filetypes: description: KDE script --- name: kconfig -remote: vim/vim:runtime +native: true glob: "**/kconfig.vim" filetypes: - name: kconfig @@ -3283,7 +3283,7 @@ filetypes: - pattern: Kconfig.* --- name: lace -remote: vim/vim:runtime +native: true glob: "**/lace.vim" filetypes: - name: lace @@ -3292,7 +3292,7 @@ filetypes: description: Lace (ISE) --- name: latte -remote: vim/vim:runtime +native: true glob: "**/latte.vim" filetypes: - name: latte @@ -3301,7 +3301,7 @@ filetypes: description: Latte --- name: limits -remote: vim/vim:runtime +native: true glob: "**/limits.vim" filetypes: - name: limits @@ -3310,7 +3310,7 @@ filetypes: description: Limits --- name: lprolog -remote: vim/vim:runtime +native: true glob: "**/lprolog.vim" filetypes: - name: lprolog @@ -3319,7 +3319,7 @@ filetypes: description: LambdaProlog (*.mod too, see Modsim) --- name: ldif -remote: vim/vim:runtime +native: true glob: "**/ldif.vim" filetypes: - name: ldif @@ -3328,7 +3328,7 @@ filetypes: description: LDAP LDIF --- name: ld -remote: vim/vim:runtime +native: true glob: "**/ld.vim" filetypes: - name: ld @@ -3337,7 +3337,7 @@ filetypes: description: Ld loader --- name: lex -remote: vim/vim:runtime +native: true glob: "**/lex.vim" filetypes: - name: lex @@ -3346,7 +3346,7 @@ filetypes: description: Lex --- name: libao -remote: vim/vim:runtime +native: true glob: "**/libao.vim" filetypes: - name: libao @@ -3355,7 +3355,7 @@ filetypes: description: Libao --- name: sensors -remote: vim/vim:runtime +native: true glob: "**/sensors.vim" filetypes: - name: sensors @@ -3364,7 +3364,7 @@ filetypes: description: Libsensors --- name: lftp -remote: vim/vim:runtime +native: true glob: "**/lftp.vim" filetypes: - name: lftp @@ -3373,7 +3373,7 @@ filetypes: description: LFTP --- name: lifelines -remote: vim/vim:runtime +native: true glob: "**/lifelines.vim" filetypes: - name: lifelines @@ -3382,7 +3382,7 @@ filetypes: description: Lifelines (or Lex for C++!) --- name: lilo -remote: vim/vim:runtime +native: true glob: "**/lilo.vim" filetypes: - name: lilo @@ -3392,7 +3392,7 @@ filetypes: - pattern: lilo.conf* --- name: lisp -remote: vim/vim:runtime +native: true glob: "**/lisp.vim" filetypes: - name: lisp @@ -3404,7 +3404,7 @@ filetypes: description: SBCL implementation of Common Lisp --- name: liquid -remote: vim/vim:runtime +native: true glob: "**/liquid.vim" filetypes: - name: liquid @@ -3413,7 +3413,7 @@ filetypes: description: Liquid --- name: lite -remote: vim/vim:runtime +native: true glob: "**/lite.vim" filetypes: - name: lite @@ -3422,7 +3422,7 @@ filetypes: description: Lite --- name: litestep -remote: vim/vim:runtime +native: true glob: "**/litestep.vim" filetypes: - name: litestep @@ -3431,7 +3431,7 @@ filetypes: description: LiteStep RC files --- name: loginaccess -remote: vim/vim:runtime +native: true glob: "**/loginaccess.vim" filetypes: - name: loginaccess @@ -3440,7 +3440,7 @@ filetypes: description: Login access --- name: logindefs -remote: vim/vim:runtime +native: true glob: "**/logindefs.vim" filetypes: - name: logindefs @@ -3449,7 +3449,7 @@ filetypes: description: Login defs --- name: logtalk -remote: vim/vim:runtime +native: true glob: "**/logtalk.vim" filetypes: - name: logtalk @@ -3458,7 +3458,7 @@ filetypes: description: Logtalk --- name: lotos -remote: vim/vim:runtime +native: true glob: "**/lotos.vim" filetypes: - name: lotos @@ -3467,7 +3467,7 @@ filetypes: description: LOTOS --- name: lout -remote: vim/vim:runtime +native: true glob: "**/lout.vim" filetypes: - name: lout @@ -3476,7 +3476,7 @@ filetypes: description: 'Lout (also: *.lt)' --- name: lsl -remote: vim/vim:runtime +native: true glob: "**/lsl.vim" filetypes: - name: lsl @@ -3485,7 +3485,7 @@ filetypes: description: Linden Scripting Language (Second Life) --- name: lss -remote: vim/vim:runtime +native: true glob: "**/lss.vim" filetypes: - name: lss @@ -3494,7 +3494,7 @@ filetypes: description: Lynx style file (or LotusScript!) --- name: mgp -remote: vim/vim:runtime +native: true glob: "**/mgp.vim" filetypes: - name: mgp @@ -3503,7 +3503,7 @@ filetypes: description: MaGic Point --- name: mail -remote: vim/vim:runtime +native: true glob: "**/mail.vim" filetypes: - name: mail @@ -3511,7 +3511,7 @@ filetypes: - pattern: snd.\d\+,.letter,.letter.\d\+,.followup,.article,.article.\d\+,pico.\d\+,mutt{ng,}-*-\w\+,mutt[[:alnum:]_-]\\\{6\},neomutt-*-\w\+,neomutt[[:alnum:]_-]\\\{6\},ae\d\+.txt,/tmp/SLRN[0-9A-Z.]\+,*.eml,{neo,}mutt[[:alnum:]._-]\\\{6\},reportbug-* --- name: mailaliases -remote: vim/vim:runtime +native: true glob: "**/mailaliases.vim" filetypes: - name: mailaliases @@ -3520,7 +3520,7 @@ filetypes: description: Mail aliases --- name: mailcap -remote: vim/vim:runtime +native: true glob: "**/mailcap.vim" filetypes: - name: mailcap @@ -3529,7 +3529,7 @@ filetypes: description: Mailcap configuration file --- name: ist -remote: vim/vim:runtime +native: true glob: "**/ist.vim" filetypes: - name: ist @@ -3538,7 +3538,7 @@ filetypes: description: MakeIndex --- name: mallard -remote: vim/vim:runtime +native: true glob: "**/mallard.vim" filetypes: - name: mallard @@ -3547,7 +3547,7 @@ filetypes: description: Mallard --- name: manconf -remote: vim/vim:runtime +native: true glob: "**/manconf.vim" filetypes: - name: manconf @@ -3556,7 +3556,7 @@ filetypes: description: Man config --- name: maple -remote: vim/vim:runtime +native: true glob: "**/maple.vim" filetypes: - name: maple @@ -3565,7 +3565,7 @@ filetypes: description: Maple V --- name: mel -remote: vim/vim:runtime +native: true glob: "**/mel.vim" filetypes: - name: mel @@ -3574,7 +3574,7 @@ filetypes: description: Maya Extension Language --- name: hgcommit -remote: vim/vim:runtime +native: true glob: "**/hgcommit.vim" filetypes: - name: hgcommit @@ -3583,7 +3583,7 @@ filetypes: description: Mercurial (hg) commit file --- name: messages -remote: vim/vim:runtime +native: true glob: "**/messages.vim" filetypes: - name: messages @@ -3592,7 +3592,7 @@ filetypes: description: Messages (logs mostly) --- name: mf -remote: vim/vim:runtime +native: true glob: "**/mf.vim" filetypes: - name: mf @@ -3601,7 +3601,7 @@ filetypes: description: Metafont --- name: mp -remote: vim/vim:runtime +native: true glob: "**/mp.vim" filetypes: - name: mp @@ -3610,7 +3610,7 @@ filetypes: description: MetaPost --- name: mgl -remote: vim/vim:runtime +native: true glob: "**/mgl.vim" filetypes: - name: mgl @@ -3619,7 +3619,7 @@ filetypes: description: MGL --- name: mix -remote: vim/vim:runtime +native: true glob: "**/mix.vim" filetypes: - name: mix @@ -3628,7 +3628,7 @@ filetypes: description: MIX - Knuth assembly --- name: mmp -remote: vim/vim:runtime +native: true glob: "**/mmp.vim" filetypes: - name: mmp @@ -3637,7 +3637,7 @@ filetypes: description: Symbian meta-makefile definition (MMP) --- name: modula2 -remote: vim/vim:runtime +native: true glob: "**/modula2.vim" filetypes: - name: modula2 @@ -3646,7 +3646,7 @@ filetypes: description: Modula 2 (.md removed in favor of Markdown) --- name: modula3 -remote: vim/vim:runtime +native: true glob: "**/modula3.vim" filetypes: - name: modula3 @@ -3655,7 +3655,7 @@ filetypes: description: Modula 3 (.m3, .i3, .mg, .ig) --- name: monk -remote: vim/vim:runtime +native: true glob: "**/monk.vim" filetypes: - name: monk @@ -3664,7 +3664,7 @@ filetypes: description: Monk --- name: moo -remote: vim/vim:runtime +native: true glob: "**/moo.vim" filetypes: - name: moo @@ -3673,7 +3673,7 @@ filetypes: description: MOO --- name: modconf -remote: vim/vim:runtime +native: true glob: "**/modconf.vim" filetypes: - name: modconf @@ -3683,7 +3683,7 @@ filetypes: - pattern: "*/etc/modprobe.*" --- name: mplayerconf -remote: vim/vim:runtime +native: true glob: "**/mplayerconf.vim" filetypes: - name: mplayerconf @@ -3692,7 +3692,7 @@ filetypes: description: Mplayer config --- name: srec -remote: vim/vim:runtime +native: true glob: "**/srec.vim" filetypes: - name: srec @@ -3701,7 +3701,7 @@ filetypes: description: Motorola S record --- name: mrxvtrc -remote: vim/vim:runtime +native: true glob: "**/mrxvtrc.vim" filetypes: - name: mrxvtrc @@ -3710,7 +3710,7 @@ filetypes: description: Mrxvtrc --- name: msql -remote: vim/vim:runtime +native: true glob: "**/msql.vim" filetypes: - name: msql @@ -3719,7 +3719,7 @@ filetypes: description: Msql --- name: mysql -remote: vim/vim:runtime +native: true glob: "**/mysql.vim" filetypes: - name: mysql @@ -3728,7 +3728,7 @@ filetypes: description: Mysql --- name: muttrc -remote: vim/vim:runtime +native: true glob: "**/muttrc.vim" filetypes: - name: muttrc @@ -3738,7 +3738,7 @@ filetypes: description: Mutt setup file (also for Muttng) --- name: rc -remote: vim/vim:runtime +native: true glob: "**/rc.vim" filetypes: - name: rc @@ -3747,7 +3747,7 @@ filetypes: description: M$ Resource files --- name: mupad -remote: vim/vim:runtime +native: true glob: "**/mupad.vim" filetypes: - name: mupad @@ -3756,7 +3756,7 @@ filetypes: description: MuPAD source --- name: mush -remote: vim/vim:runtime +native: true glob: "**/mush.vim" filetypes: - name: mush @@ -3765,7 +3765,7 @@ filetypes: description: Mush --- name: n1ql -remote: vim/vim:runtime +native: true glob: "**/n1ql.vim" filetypes: - name: n1ql @@ -3774,7 +3774,7 @@ filetypes: description: N1QL --- name: nanorc -remote: vim/vim:runtime +native: true glob: "**/nanorc.vim" filetypes: - name: nanorc @@ -3783,7 +3783,7 @@ filetypes: description: Nano --- name: natural -remote: vim/vim:runtime +native: true glob: "**/natural.vim" filetypes: - name: natural @@ -3792,7 +3792,7 @@ filetypes: description: Natural --- name: neomuttrc -remote: vim/vim:runtime +native: true glob: "**/neomuttrc.vim" filetypes: - name: neomuttrc @@ -3802,7 +3802,7 @@ filetypes: - pattern: ".neomuttrc*,*/.neomutt/neomuttrc*,neomuttrc*,Neomuttrc*" --- name: netrc -remote: vim/vim:runtime +native: true glob: "**/netrc.vim" filetypes: - name: netrc @@ -3811,7 +3811,7 @@ filetypes: description: Netrc --- name: ninja -remote: vim/vim:runtime +native: true glob: "**/ninja.vim" filetypes: - name: ninja @@ -3820,7 +3820,7 @@ filetypes: description: Ninja file --- name: ncf -remote: vim/vim:runtime +native: true glob: "**/ncf.vim" filetypes: - name: ncf @@ -3829,7 +3829,7 @@ filetypes: description: Novell netware batch files --- name: nroff -remote: vim/vim:runtime +native: true glob: "**/nroff.vim" filetypes: - name: nroff @@ -3841,7 +3841,7 @@ filetypes: - pattern: tmac.* --- name: nqc -remote: vim/vim:runtime +native: true glob: "**/nqc.vim" filetypes: - name: nqc @@ -3850,7 +3850,7 @@ filetypes: description: Not Quite C --- name: nsis -remote: vim/vim:runtime +native: true glob: "**/nsis.vim" filetypes: - name: nsis @@ -3859,7 +3859,7 @@ filetypes: description: NSIS --- name: occam -remote: vim/vim:runtime +native: true glob: "**/occam.vim" filetypes: - name: occam @@ -3868,7 +3868,7 @@ filetypes: description: Occam --- name: omnimark -remote: vim/vim:runtime +native: true glob: "**/omnimark.vim" filetypes: - name: omnimark @@ -3877,7 +3877,7 @@ filetypes: description: Omnimark --- name: openroad -remote: vim/vim:runtime +native: true glob: "**/openroad.vim" filetypes: - name: openroad @@ -3886,7 +3886,7 @@ filetypes: description: OpenROAD --- name: opl -remote: vim/vim:runtime +native: true glob: "**/opl.vim" filetypes: - name: opl @@ -3895,7 +3895,7 @@ filetypes: description: OPL --- name: ora -remote: vim/vim:runtime +native: true glob: "**/ora.vim" filetypes: - name: ora @@ -3904,7 +3904,7 @@ filetypes: description: Oracle config file --- name: pf -remote: vim/vim:runtime +native: true glob: "**/pf.vim" filetypes: - name: pf @@ -3913,7 +3913,7 @@ filetypes: description: Packet filter conf --- name: pamconf -remote: vim/vim:runtime +native: true glob: "**/pamconf.vim" filetypes: - name: pamconf @@ -3923,7 +3923,7 @@ filetypes: - pattern: "*/etc/pam.d/*" --- name: pamenv -remote: vim/vim:runtime +native: true glob: "**/pamenv.vim" filetypes: - name: pamenv @@ -3932,7 +3932,7 @@ filetypes: description: Pam environment --- name: papp -remote: vim/vim:runtime +native: true glob: "**/papp.vim" filetypes: - name: papp @@ -3941,7 +3941,7 @@ filetypes: description: PApp --- name: passwd -remote: vim/vim:runtime +native: true glob: "**/passwd.vim" filetypes: - name: passwd @@ -3950,7 +3950,7 @@ filetypes: description: Password file --- name: pascal -remote: vim/vim:runtime +native: true glob: "**/pascal.vim" filetypes: - name: pascal @@ -3961,7 +3961,7 @@ filetypes: description: Delphi or Lazarus program file --- name: pdf -remote: vim/vim:runtime +native: true glob: "**/pdf.vim" filetypes: - name: pdf @@ -3970,7 +3970,7 @@ filetypes: description: PDF --- name: pike -remote: vim/vim:runtime +native: true glob: "**/pike.vim" dependencies: autodoc filetypes: @@ -3980,7 +3980,7 @@ filetypes: description: Pike and Cmod --- name: cmod -remote: vim/vim:runtime +native: true glob: "**/cmod.vim" dependencies: autodoc filetypes: @@ -3990,7 +3990,7 @@ filetypes: description: Pike and Cmod --- name: pinfo -remote: vim/vim:runtime +native: true glob: "**/pinfo.vim" filetypes: - name: pinfo @@ -3999,7 +3999,7 @@ filetypes: description: Pinfo config --- name: pilrc -remote: vim/vim:runtime +native: true glob: "**/pilrc.vim" filetypes: - name: pilrc @@ -4008,7 +4008,7 @@ filetypes: description: Palm Resource compiler --- name: pine -remote: vim/vim:runtime +native: true glob: "**/pine.vim" filetypes: - name: pine @@ -4017,7 +4017,7 @@ filetypes: description: Pine config --- name: pli -remote: vim/vim:runtime +native: true glob: "**/pli.vim" filetypes: - name: pli @@ -4026,7 +4026,7 @@ filetypes: description: PL/1, PL/I --- name: plm -remote: vim/vim:runtime +native: true glob: "**/plm.vim" filetypes: - name: plm @@ -4035,7 +4035,7 @@ filetypes: description: 'PL/M (also: *.inp)' --- name: plsql -remote: vim/vim:runtime +native: true glob: "**/plsql.vim" filetypes: - name: plsql @@ -4044,7 +4044,7 @@ filetypes: description: PL/SQL --- name: plp -remote: vim/vim:runtime +native: true glob: "**/plp.vim" filetypes: - name: plp @@ -4053,7 +4053,7 @@ filetypes: description: PLP --- name: po -remote: vim/vim:runtime +native: true glob: "**/po.vim" filetypes: - name: po @@ -4062,7 +4062,7 @@ filetypes: description: PO and PO template (GNU gettext) --- name: pfmain -remote: vim/vim:runtime +native: true glob: "**/pfmain.vim" filetypes: - name: pfmain @@ -4071,7 +4071,7 @@ filetypes: description: Postfix main config --- name: postscr -remote: vim/vim:runtime +native: true glob: "**/postscr.vim" filetypes: - name: postscr @@ -4080,7 +4080,7 @@ filetypes: description: PostScript (+ font files, encapsulated PostScript, Adobe Illustrator) --- name: ppd -remote: vim/vim:runtime +native: true glob: "**/ppd.vim" filetypes: - name: ppd @@ -4089,7 +4089,7 @@ filetypes: description: PostScript Printer Description --- name: pov -remote: vim/vim:runtime +native: true glob: "**/pov.vim" filetypes: - name: pov @@ -4098,7 +4098,7 @@ filetypes: description: Povray --- name: povini -remote: vim/vim:runtime +native: true glob: "**/povini.vim" filetypes: - name: povini @@ -4107,7 +4107,7 @@ filetypes: description: Povray configuration --- name: pccts -remote: vim/vim:runtime +native: true glob: "**/pccts.vim" filetypes: - name: pccts @@ -4116,7 +4116,7 @@ filetypes: description: "u BufNewFile,BufRead *.g\t\t\tsetf antrl" --- name: ppwiz -remote: vim/vim:runtime +native: true glob: "**/ppwiz.vim" filetypes: - name: ppwiz @@ -4125,7 +4125,7 @@ filetypes: description: PPWizard --- name: obj -remote: vim/vim:runtime +native: true glob: "**/obj.vim" filetypes: - name: obj @@ -4134,7 +4134,7 @@ filetypes: description: 'TODO: is there a way to avoid MS-Windows Object files?' --- name: privoxy -remote: vim/vim:runtime +native: true glob: "**/privoxy.vim" filetypes: - name: privoxy @@ -4143,7 +4143,7 @@ filetypes: description: Privoxy actions file --- name: procmail -remote: vim/vim:runtime +native: true glob: "**/procmail.vim" filetypes: - name: procmail @@ -4152,7 +4152,7 @@ filetypes: description: Procmail --- name: psf -remote: vim/vim:runtime +native: true glob: "**/psf.vim" filetypes: - name: psf @@ -4161,7 +4161,7 @@ filetypes: description: Software Distributor Product Specification File (POSIX 1387.2-1995) --- name: promela -remote: vim/vim:runtime +native: true glob: "**/promela.vim" filetypes: - name: promela @@ -4170,7 +4170,7 @@ filetypes: description: Promela --- name: protocols -remote: vim/vim:runtime +native: true glob: "**/protocols.vim" filetypes: - name: protocols @@ -4179,7 +4179,7 @@ filetypes: description: Protocols --- name: pyrex -remote: vim/vim:runtime +native: true glob: "**/pyrex.vim" filetypes: - name: pyrex @@ -4188,7 +4188,7 @@ filetypes: description: Pyrex --- name: radiance -remote: vim/vim:runtime +native: true glob: "**/radiance.vim" filetypes: - name: radiance @@ -4197,7 +4197,7 @@ filetypes: description: Radiance --- name: ratpoison -remote: vim/vim:runtime +native: true glob: "**/ratpoison.vim" filetypes: - name: ratpoison @@ -4206,7 +4206,7 @@ filetypes: description: Ratpoison config/command files --- name: rcs -remote: vim/vim:runtime +native: true glob: "**/rcs.vim" filetypes: - name: rcs @@ -4214,7 +4214,7 @@ filetypes: - pattern: "*\\,v" --- name: readline -remote: vim/vim:runtime +native: true glob: "**/readline.vim" filetypes: - name: readline @@ -4223,7 +4223,7 @@ filetypes: description: Readline --- name: rib -remote: vim/vim:runtime +native: true glob: "**/rib.vim" filetypes: - name: rib @@ -4232,7 +4232,7 @@ filetypes: description: Renderman Interface Bytestream --- name: rego -remote: vim/vim:runtime +native: true glob: "**/rego.vim" filetypes: - name: rego @@ -4241,7 +4241,7 @@ filetypes: description: Rego Policy Language --- name: rexx -remote: vim/vim:runtime +native: true glob: "**/rexx.vim" filetypes: - name: rexx @@ -4250,7 +4250,7 @@ filetypes: description: Rexx --- name: rnoweb -remote: vim/vim:runtime +native: true glob: "**/rnoweb.vim" filetypes: - name: rnoweb @@ -4259,7 +4259,7 @@ filetypes: description: R noweb file --- name: rmd -remote: vim/vim:runtime +native: true glob: "**/rmd.vim" filetypes: - name: rmd @@ -4268,7 +4268,7 @@ filetypes: description: R Markdown file --- name: rrst -remote: vim/vim:runtime +native: true glob: "**/rrst.vim" filetypes: - name: rrst @@ -4277,7 +4277,7 @@ filetypes: description: R reStructuredText file --- name: remind -remote: vim/vim:runtime +native: true glob: "**/remind.vim" filetypes: - name: remind @@ -4287,7 +4287,7 @@ filetypes: - pattern: ".reminders*" --- name: resolv -remote: vim/vim:runtime +native: true glob: "**/resolv.vim" filetypes: - name: resolv @@ -4296,7 +4296,7 @@ filetypes: description: Resolv.conf --- name: rnc -remote: vim/vim:runtime +native: true glob: "**/rnc.vim" filetypes: - name: rnc @@ -4305,7 +4305,7 @@ filetypes: description: Relax NG Compact --- name: rng -remote: vim/vim:runtime +native: true glob: "**/rng.vim" filetypes: - name: rng @@ -4314,7 +4314,7 @@ filetypes: description: Relax NG XML --- name: rpl -remote: vim/vim:runtime +native: true glob: "**/rpl.vim" filetypes: - name: rpl @@ -4323,7 +4323,7 @@ filetypes: description: RPL/2 --- name: robots -remote: vim/vim:runtime +native: true glob: "**/robots.vim" filetypes: - name: robots @@ -4332,7 +4332,7 @@ filetypes: description: Robots.txt --- name: rpcgen -remote: vim/vim:runtime +native: true glob: "**/rpcgen.vim" filetypes: - name: rpcgen @@ -4341,7 +4341,7 @@ filetypes: description: Rpcgen --- name: rtf -remote: vim/vim:runtime +native: true glob: "**/rtf.vim" filetypes: - name: rtf @@ -4350,7 +4350,7 @@ filetypes: description: RTF --- name: slang -remote: vim/vim:runtime +native: true glob: "**/slang.vim" filetypes: - name: slang @@ -4359,7 +4359,7 @@ filetypes: description: S-lang (or shader language, or SmallLisp) --- name: samba -remote: vim/vim:runtime +native: true glob: "**/samba.vim" filetypes: - name: samba @@ -4368,7 +4368,7 @@ filetypes: description: Samba config --- name: sas -remote: vim/vim:runtime +native: true glob: "**/sas.vim" filetypes: - name: sas @@ -4377,7 +4377,7 @@ filetypes: description: SAS script --- name: sass -remote: vim/vim:runtime +native: true glob: "**/sass.vim" filetypes: - name: sass @@ -4386,7 +4386,7 @@ filetypes: description: Sass --- name: sather -remote: vim/vim:runtime +native: true glob: "**/sather.vim" filetypes: - name: sather @@ -4395,7 +4395,7 @@ filetypes: description: Sather --- name: sbt -remote: vim/vim:runtime +native: true glob: "**/sbt.vim" filetypes: - name: sbt @@ -4404,7 +4404,7 @@ filetypes: description: SBT - Scala Build Tool --- name: scilab -remote: vim/vim:runtime +native: true glob: "**/scilab.vim" filetypes: - name: scilab @@ -4413,7 +4413,7 @@ filetypes: description: Scilab --- name: sd -remote: vim/vim:runtime +native: true glob: "**/sd.vim" filetypes: - name: sd @@ -4422,7 +4422,7 @@ filetypes: description: 'SD: Streaming Descriptors' --- name: sdl -remote: vim/vim:runtime +native: true glob: "**/sdl.vim" filetypes: - name: sdl @@ -4431,7 +4431,7 @@ filetypes: description: SDL --- name: sed -remote: vim/vim:runtime +native: true glob: "**/sed.vim" filetypes: - name: sed @@ -4440,7 +4440,7 @@ filetypes: description: sed --- name: sieve -remote: vim/vim:runtime +native: true glob: "**/sieve.vim" filetypes: - name: sieve @@ -4449,7 +4449,7 @@ filetypes: description: Sieve (RFC 3028, 5228) --- name: sm -remote: vim/vim:runtime +native: true glob: "**/sm.vim" filetypes: - name: sm @@ -4458,7 +4458,7 @@ filetypes: description: Sendmail --- name: services -remote: vim/vim:runtime +native: true glob: "**/services.vim" filetypes: - name: services @@ -4467,7 +4467,7 @@ filetypes: description: Services --- name: slpconf -remote: vim/vim:runtime +native: true glob: "**/slpconf.vim" filetypes: - name: slpconf @@ -4476,7 +4476,7 @@ filetypes: description: Service Location config --- name: slpreg -remote: vim/vim:runtime +native: true glob: "**/slpreg.vim" filetypes: - name: slpreg @@ -4485,7 +4485,7 @@ filetypes: description: Service Location registration --- name: slpspi -remote: vim/vim:runtime +native: true glob: "**/slpspi.vim" filetypes: - name: slpspi @@ -4494,7 +4494,7 @@ filetypes: description: Service Location SPI --- name: setserial -remote: vim/vim:runtime +native: true glob: "**/setserial.vim" filetypes: - name: setserial @@ -4503,7 +4503,7 @@ filetypes: description: Setserial config --- name: catalog -remote: vim/vim:runtime +native: true glob: "**/catalog.vim" filetypes: - name: catalog @@ -4513,7 +4513,7 @@ filetypes: - pattern: sgml.catalog* --- name: scheme -remote: vim/vim:runtime +native: true glob: "**/scheme.vim" filetypes: - name: scheme @@ -4522,7 +4522,7 @@ filetypes: description: Scheme --- name: screen -remote: vim/vim:runtime +native: true glob: "**/screen.vim" filetypes: - name: screen @@ -4531,7 +4531,7 @@ filetypes: description: Screen RC --- name: simula -remote: vim/vim:runtime +native: true glob: "**/simula.vim" filetypes: - name: simula @@ -4540,7 +4540,7 @@ filetypes: description: Simula --- name: sinda -remote: vim/vim:runtime +native: true glob: "**/sinda.vim" filetypes: - name: sinda @@ -4549,7 +4549,7 @@ filetypes: description: SINDA --- name: sisu -remote: vim/vim:runtime +native: true glob: "**/sisu.vim" filetypes: - name: sisu @@ -4558,7 +4558,7 @@ filetypes: description: SiSU --- name: skill -remote: vim/vim:runtime +native: true glob: "**/skill.vim" filetypes: - name: skill @@ -4567,7 +4567,7 @@ filetypes: description: SKILL --- name: slrnrc -remote: vim/vim:runtime +native: true glob: "**/slrnrc.vim" filetypes: - name: slrnrc @@ -4576,7 +4576,7 @@ filetypes: description: SLRN --- name: slrnsc -remote: vim/vim:runtime +native: true glob: "**/slrnsc.vim" filetypes: - name: slrnsc @@ -4585,7 +4585,7 @@ filetypes: description: SLRN --- name: st -remote: vim/vim:runtime +native: true glob: "**/st.vim" after: html filetypes: @@ -4595,7 +4595,7 @@ filetypes: description: Smalltalk (and TeX) --- name: smarty -remote: vim/vim:runtime +native: true glob: "**/smarty.vim" filetypes: - name: smarty @@ -4604,7 +4604,7 @@ filetypes: description: Smarty templates --- name: smith -remote: vim/vim:runtime +native: true glob: "**/smith.vim" filetypes: - name: smith @@ -4613,7 +4613,7 @@ filetypes: description: SMITH --- name: snobol4 -remote: vim/vim:runtime +native: true glob: "**/snobol4.vim" filetypes: - name: snobol4 @@ -4622,7 +4622,7 @@ filetypes: description: Snobol4 and spitbol --- name: mib -remote: vim/vim:runtime +native: true glob: "**/mib.vim" filetypes: - name: mib @@ -4631,7 +4631,7 @@ filetypes: description: SNMP MIB files --- name: hog -remote: vim/vim:runtime +native: true glob: "**/hog.vim" filetypes: - name: hog @@ -4640,7 +4640,7 @@ filetypes: description: Snort Configuration --- name: spec -remote: vim/vim:runtime +native: true glob: "**/spec.vim" filetypes: - name: spec @@ -4649,7 +4649,7 @@ filetypes: description: Spec (Linux RPM) --- name: spup -remote: vim/vim:runtime +native: true glob: "**/spup.vim" filetypes: - name: spup @@ -4658,7 +4658,7 @@ filetypes: description: Speedup (AspenTech plant simulator) --- name: slice -remote: vim/vim:runtime +native: true glob: "**/slice.vim" filetypes: - name: slice @@ -4667,7 +4667,7 @@ filetypes: description: Slice --- name: spice -remote: vim/vim:runtime +native: true glob: "**/spice.vim" filetypes: - name: spice @@ -4676,7 +4676,7 @@ filetypes: description: Spice --- name: spyce -remote: vim/vim:runtime +native: true glob: "**/spyce.vim" filetypes: - name: spyce @@ -4685,7 +4685,7 @@ filetypes: description: Spyce --- name: squid -remote: vim/vim:runtime +native: true glob: "**/squid.vim" filetypes: - name: squid @@ -4694,7 +4694,7 @@ filetypes: description: Squid --- name: sqlj -remote: vim/vim:runtime +native: true glob: "**/sqlj.vim" filetypes: - name: sqlj @@ -4703,7 +4703,7 @@ filetypes: description: SQLJ --- name: sqr -remote: vim/vim:runtime +native: true glob: "**/sqr.vim" filetypes: - name: sqr @@ -4712,7 +4712,7 @@ filetypes: description: SQR --- name: sshconfig -remote: vim/vim:runtime +native: true glob: "**/sshconfig.vim" filetypes: - name: sshconfig @@ -4721,7 +4721,7 @@ filetypes: description: OpenSSH configuration --- name: sshdconfig -remote: vim/vim:runtime +native: true glob: "**/sshdconfig.vim" filetypes: - name: sshdconfig @@ -4730,7 +4730,7 @@ filetypes: description: OpenSSH server configuration --- name: stata -remote: vim/vim:runtime +native: true glob: "**/stata.vim" filetypes: - name: stata @@ -4739,7 +4739,7 @@ filetypes: description: Stata --- name: smcl -remote: vim/vim:runtime +native: true glob: "**/smcl.vim" filetypes: - name: smcl @@ -4748,7 +4748,7 @@ filetypes: description: SMCL --- name: stp -remote: vim/vim:runtime +native: true glob: "**/stp.vim" filetypes: - name: stp @@ -4757,7 +4757,7 @@ filetypes: description: Stored Procedures --- name: sml -remote: vim/vim:runtime +native: true glob: "**/sml.vim" filetypes: - name: sml @@ -4766,7 +4766,7 @@ filetypes: description: Standard ML --- name: voscm -remote: vim/vim:runtime +native: true glob: "**/voscm.vim" filetypes: - name: voscm @@ -4775,7 +4775,7 @@ filetypes: description: Sratus VOS command macro --- name: swiftgyb -remote: vim/vim:runtime +native: true glob: "**/swiftgyb.vim" filetypes: - name: swiftgyb @@ -4784,7 +4784,7 @@ filetypes: description: Swift --- name: sil -remote: vim/vim:runtime +native: true glob: "**/sil.vim" filetypes: - name: sil @@ -4793,7 +4793,7 @@ filetypes: description: Swift Intermediate Language --- name: sysctl -remote: vim/vim:runtime +native: true glob: "**/sysctl.vim" filetypes: - name: sysctl @@ -4802,7 +4802,7 @@ filetypes: description: Sysctl --- name: sdc -remote: vim/vim:runtime +native: true glob: "**/sdc.vim" filetypes: - name: sdc @@ -4811,7 +4811,7 @@ filetypes: description: Synopsys Design Constraints --- name: sudoers -remote: vim/vim:runtime +native: true glob: "**/sudoers.vim" filetypes: - name: sudoers @@ -4820,7 +4820,7 @@ filetypes: description: Sudoers --- name: tags -remote: vim/vim:runtime +native: true glob: "**/tags.vim" filetypes: - name: tags @@ -4829,7 +4829,7 @@ filetypes: description: Tags --- name: tak -remote: vim/vim:runtime +native: true glob: "**/tak.vim" filetypes: - name: tak @@ -4838,7 +4838,7 @@ filetypes: description: TAK --- name: taskdata -remote: vim/vim:runtime +native: true glob: "**/taskdata.vim" filetypes: - name: taskdata @@ -4847,7 +4847,7 @@ filetypes: description: Task --- name: taskedit -remote: vim/vim:runtime +native: true glob: "**/taskedit.vim" filetypes: - name: taskedit @@ -4856,7 +4856,7 @@ filetypes: description: Task --- name: tcl -remote: vim/vim:runtime +native: true glob: "**/tcl.vim" filetypes: - name: tcl @@ -4865,7 +4865,7 @@ filetypes: description: Tcl (JACL too) --- name: tli -remote: vim/vim:runtime +native: true glob: "**/tli.vim" filetypes: - name: tli @@ -4874,7 +4874,7 @@ filetypes: description: TealInfo --- name: tsalt -remote: vim/vim:runtime +native: true glob: "**/tsalt.vim" filetypes: - name: tsalt @@ -4883,7 +4883,7 @@ filetypes: description: Telix Salt --- name: teraterm -remote: vim/vim:runtime +native: true glob: "**/teraterm.vim" filetypes: - name: teraterm @@ -4892,7 +4892,7 @@ filetypes: description: Tera Term Language --- name: terminfo -remote: vim/vim:runtime +native: true glob: "**/terminfo.vim" filetypes: - name: terminfo @@ -4901,7 +4901,7 @@ filetypes: description: Terminfo --- name: tex -remote: vim/vim:runtime +native: true glob: "**/tex.vim" extract_in_after: true filetypes: @@ -4911,7 +4911,7 @@ filetypes: description: TeX --- name: texinfo -remote: vim/vim:runtime +native: true glob: "**/texinfo.vim" filetypes: - name: texinfo @@ -4920,7 +4920,7 @@ filetypes: description: Texinfo --- name: texmf -remote: vim/vim:runtime +native: true glob: "**/texmf.vim" filetypes: - name: texmf @@ -4929,7 +4929,7 @@ filetypes: description: TeX configuration --- name: tidy -remote: vim/vim:runtime +native: true glob: "**/tidy.vim" filetypes: - name: tidy @@ -4938,7 +4938,7 @@ filetypes: description: Tidy config --- name: tf -remote: vim/vim:runtime +native: true glob: "**/tf.vim" filetypes: - name: tf @@ -4947,7 +4947,7 @@ filetypes: description: TF mud client --- name: tpp -remote: vim/vim:runtime +native: true glob: "**/tpp.vim" filetypes: - name: tpp @@ -4956,7 +4956,7 @@ filetypes: description: TPP - Text Presentation Program --- name: treetop -remote: vim/vim:runtime +native: true glob: "**/treetop.vim" filetypes: - name: treetop @@ -4965,7 +4965,7 @@ filetypes: description: Treetop --- name: trustees -remote: vim/vim:runtime +native: true glob: "**/trustees.vim" filetypes: - name: trustees @@ -4974,7 +4974,7 @@ filetypes: description: Trustees --- name: tssgm -remote: vim/vim:runtime +native: true glob: "**/tssgm.vim" filetypes: - name: tssgm @@ -4983,7 +4983,7 @@ filetypes: description: TSS - Geometry --- name: tssop -remote: vim/vim:runtime +native: true glob: "**/tssop.vim" filetypes: - name: tssop @@ -4992,7 +4992,7 @@ filetypes: description: TSS - Optics --- name: tsscl -remote: vim/vim:runtime +native: true glob: "**/tsscl.vim" filetypes: - name: tsscl @@ -5001,7 +5001,7 @@ filetypes: description: TSS - Command Line (temporary) --- name: twig -remote: vim/vim:runtime +native: true glob: "**/twig.vim" filetypes: - name: twig @@ -5010,7 +5010,7 @@ filetypes: description: TWIG files --- name: uil -remote: vim/vim:runtime +native: true glob: "**/uil.vim" filetypes: - name: uil @@ -5019,7 +5019,7 @@ filetypes: description: Motif UIT/UIL files --- name: udevconf -remote: vim/vim:runtime +native: true glob: "**/udevconf.vim" filetypes: - name: udevconf @@ -5028,7 +5028,7 @@ filetypes: description: Udev conf --- name: udevperm -remote: vim/vim:runtime +native: true glob: "**/udevperm.vim" filetypes: - name: udevperm @@ -5037,7 +5037,7 @@ filetypes: description: Udev permissions --- name: uc -remote: vim/vim:runtime +native: true glob: "**/uc.vim" filetypes: - name: uc @@ -5046,7 +5046,7 @@ filetypes: description: UnrealScript --- name: updatedb -remote: vim/vim:runtime +native: true glob: "**/updatedb.vim" filetypes: - name: updatedb @@ -5055,7 +5055,7 @@ filetypes: description: Updatedb --- name: upstart -remote: vim/vim:runtime +native: true glob: "**/upstart.vim" filetypes: - name: upstart @@ -5064,7 +5064,7 @@ filetypes: description: Upstart (init(8)) config files --- name: vera -remote: vim/vim:runtime +native: true glob: "**/vera.vim" filetypes: - name: vera @@ -5073,7 +5073,7 @@ filetypes: description: Vera --- name: verilog -remote: vim/vim:runtime +native: true glob: "**/verilog.vim" filetypes: - name: verilog @@ -5082,7 +5082,7 @@ filetypes: description: Verilog HDL --- name: verilogams -remote: vim/vim:runtime +native: true glob: "**/verilogams.vim" filetypes: - name: verilogams @@ -5091,7 +5091,7 @@ filetypes: description: Verilog-AMS HDL --- name: systemverilog -remote: vim/vim:runtime +native: true glob: "**/systemverilog.vim" filetypes: - name: systemverilog @@ -5100,7 +5100,7 @@ filetypes: description: SystemVerilog --- name: vhdl -remote: vim/vim:runtime +native: true glob: "**/vhdl.vim" filetypes: - name: vhdl @@ -5118,7 +5118,7 @@ filetypes: - pattern: "*vimrc*" --- name: viminfo -remote: vim/vim:runtime +native: true glob: "**/viminfo.vim" filetypes: - name: viminfo @@ -5127,7 +5127,7 @@ filetypes: description: Viminfo file --- name: vgrindefs -remote: vim/vim:runtime +native: true glob: "**/vgrindefs.vim" filetypes: - name: vgrindefs @@ -5136,7 +5136,7 @@ filetypes: description: Vgrindefs file --- name: vrml -remote: vim/vim:runtime +native: true glob: "**/vrml.vim" filetypes: - name: vrml @@ -5145,7 +5145,7 @@ filetypes: description: VRML V1.0c --- name: vroom -remote: vim/vim:runtime +native: true glob: "**/vroom.vim" filetypes: - name: vroom @@ -5154,7 +5154,7 @@ filetypes: description: Vroom (vim testing and executable documentation) --- name: wast -remote: vim/vim:runtime +native: true glob: "**/wast.vim" filetypes: - name: wast @@ -5163,7 +5163,7 @@ filetypes: description: WebAssembly --- name: webmacro -remote: vim/vim:runtime +native: true glob: "**/webmacro.vim" filetypes: - name: webmacro @@ -5172,7 +5172,7 @@ filetypes: description: Webmacro --- name: wget -remote: vim/vim:runtime +native: true glob: "**/wget.vim" filetypes: - name: wget @@ -5181,7 +5181,7 @@ filetypes: description: Wget config --- name: wml -remote: vim/vim:runtime +native: true glob: "**/wml.vim" filetypes: - name: wml @@ -5190,7 +5190,7 @@ filetypes: description: Website MetaLanguage --- name: winbatch -remote: vim/vim:runtime +native: true glob: "**/winbatch.vim" filetypes: - name: winbatch @@ -5199,7 +5199,7 @@ filetypes: description: Winbatch --- name: wsml -remote: vim/vim:runtime +native: true glob: "**/wsml.vim" filetypes: - name: wsml @@ -5208,7 +5208,7 @@ filetypes: description: WSML --- name: wvdial -remote: vim/vim:runtime +native: true glob: "**/wvdial.vim" filetypes: - name: wvdial @@ -5217,7 +5217,7 @@ filetypes: description: WvDial --- name: cvsrc -remote: vim/vim:runtime +native: true glob: "**/cvsrc.vim" filetypes: - name: cvsrc @@ -5226,7 +5226,7 @@ filetypes: description: CVS RC file --- name: cvs -remote: vim/vim:runtime +native: true glob: "**/cvs.vim" filetypes: - name: cvs @@ -5234,7 +5234,7 @@ filetypes: - pattern: cvs\d\+ --- name: wsh -remote: vim/vim:runtime +native: true glob: "**/wsh.vim" filetypes: - name: wsh @@ -5243,7 +5243,7 @@ filetypes: description: Windows Scripting Host and Windows Script Component --- name: xhtml -remote: vim/vim:runtime +native: true glob: "**/xhtml.vim" filetypes: - name: xhtml @@ -5252,7 +5252,7 @@ filetypes: description: XHTML --- name: xinetd -remote: vim/vim:runtime +native: true glob: "**/xinetd.vim" filetypes: - name: xinetd @@ -5262,7 +5262,7 @@ filetypes: - pattern: "*/etc/xinetd.d/*" --- name: xdefaults -remote: vim/vim:runtime +native: true glob: "**/xdefaults.vim" filetypes: - name: xdefaults @@ -5272,7 +5272,7 @@ filetypes: - pattern: Xresources*,*/app-defaults/*,*/Xresources/* --- name: xmath -remote: vim/vim:runtime +native: true glob: "**/xmath.vim" filetypes: - name: xmath @@ -5281,7 +5281,7 @@ filetypes: description: Xmath --- name: xmodmap -remote: vim/vim:runtime +native: true glob: "**/xmodmap.vim" filetypes: - name: xmodmap @@ -5291,7 +5291,7 @@ filetypes: - pattern: "*xmodmap*" --- name: xquery -remote: vim/vim:runtime +native: true glob: "**/xquery.vim" filetypes: - name: xquery @@ -5300,7 +5300,7 @@ filetypes: description: Xquery --- name: xsd -remote: vim/vim:runtime +native: true glob: "**/xsd.vim" filetypes: - name: xsd @@ -5309,7 +5309,7 @@ filetypes: description: XSD --- name: xslt -remote: vim/vim:runtime +native: true glob: "**/xslt.vim" filetypes: - name: xslt @@ -5318,7 +5318,7 @@ filetypes: description: Xslt --- name: yacc -remote: vim/vim:runtime +native: true glob: "**/yacc.vim" filetypes: - name: yacc @@ -5327,7 +5327,7 @@ filetypes: description: Yacc --- name: zimbu -remote: vim/vim:runtime +native: true glob: "**/zimbu.vim" filetypes: - name: zimbu @@ -5336,7 +5336,7 @@ filetypes: description: Zimbu --- name: z8a -remote: vim/vim:runtime +native: true glob: "**/z8a.vim" filetypes: - name: z8a @@ -5345,7 +5345,7 @@ filetypes: description: Z80 assembler asz80 --- name: apachestyle -remote: vim/vim:runtime +native: true glob: "**/apachestyle.vim" filetypes: - name: apachestyle @@ -5353,7 +5353,7 @@ filetypes: - pattern: "*/etc/proftpd/*.conf*,*/etc/proftpd/conf.*/*,proftpd.conf*" --- name: asterisk -remote: vim/vim:runtime +native: true glob: "**/asterisk.vim" filetypes: - name: asterisk @@ -5361,7 +5361,7 @@ filetypes: - pattern: "*asterisk/*.conf*" --- name: asteriskvm -remote: vim/vim:runtime +native: true glob: "**/asteriskvm.vim" filetypes: - name: asteriskvm @@ -5369,7 +5369,7 @@ filetypes: - pattern: "*asterisk*/*voicemail.conf*" --- name: bzr -remote: vim/vim:runtime +native: true glob: "**/bzr.vim" filetypes: - name: bzr @@ -5378,7 +5378,7 @@ filetypes: description: Bazaar version control --- name: crontab -remote: vim/vim:runtime +native: true glob: "**/crontab.vim" filetypes: - name: crontab @@ -5386,7 +5386,7 @@ filetypes: - pattern: crontab,crontab.*,*/etc/cron.d/* --- name: fvwm -remote: vim/vim:runtime +native: true glob: "**/fvwm.vim" filetypes: - name: fvwm @@ -5394,7 +5394,7 @@ filetypes: - pattern: "*/.fvwm/*" --- name: logcheck -remote: vim/vim:runtime +native: true glob: "**/logcheck.vim" filetypes: - name: logcheck @@ -5402,7 +5402,7 @@ filetypes: - pattern: "*/etc/logcheck/*.d*/*" --- name: svn -remote: vim/vim:runtime +native: true glob: "**/svn.vim" filetypes: - name: svn @@ -5411,7 +5411,7 @@ filetypes: description: Subversion commit file --- name: text -remote: vim/vim:runtime +native: true glob: "**/text.vim" filetypes: - name: text @@ -5420,7 +5420,7 @@ filetypes: description: the "conf" type being used if there is a line starting with '#'. --- name: autodoc -remote: vim/vim:runtime +native: true glob: "**/autodoc.vim" # Needed by c, cmod, and pike filetypes: [] @@ -5431,7 +5431,7 @@ dependencies: html filetypes: [] --- name: xf86conf -remote: vim/vim:runtime +native: true glob: "**/xf86conf.vim" filetypes: - name: xf86conf @@ -5439,14 +5439,14 @@ filetypes: - pattern: "XF86Config-4*,XF86Config*,*/xorg.conf.d/*.conf,xorg.conf,xorg.conf-4" --- name: xpm -remote: vim/vim:runtime +native: true glob: "**/xpm.vim" filetypes: - name: xpm linguist: X PixMap --- name: xpm2 -remote: vim/vim:runtime +native: true glob: "**/xpm2.vim" filetypes: - name: xpm2 diff --git a/scripts/build b/scripts/build index c0a80b4f..8ff113f3 100755 --- a/scripts/build +++ b/scripts/build @@ -896,16 +896,16 @@ def show_warnings(all_filetypes, expected_filetypes) end def generate_fallback - filetype_content = File.read('tmp/vim/vim/runtime/filetype.vim') + filetype_content = File.read('tmp/vim/vim-v8.2.4274/runtime/filetype.vim') filetype_content.gsub!('runtime! ftdetect/*.vim', '') filetype_content.gsub!(/^au BufNewFile,BufRead \*\n.+?runtime!.+?endif/m) {} filetype_content.gsub!(/^au StdinReadPost \* .+?runtime!.+?endif/m) {} filetype_content.gsub!(/^au filetypedetect BufNewFile,BufRead,StdinReadPost \*\n.+?endif/m) {} filetype_content.gsub!("dist#ft#", "polyglot#ft#") File.write('extras/filetype.vim', filetype_content) - File.write('extras/menu.vim', File.read('tmp/vim/vim/runtime/menu.vim')) + File.write('extras/menu.vim', File.read('tmp/vim/vim-v8.2.4274/runtime/menu.vim')) - autoload_content = File.read('tmp/vim/vim/runtime/autoload/dist/ft.vim') + autoload_content = File.read('tmp/vim/vim-v8.2.4274/runtime/autoload/dist/ft.vim') autoload_content.gsub!('dist#ft#', 'polyglot#ft#') File.write('autoload/polyglot/ft.vim', autoload_content) end @@ -919,6 +919,11 @@ if __FILE__ == $0 Dir.mkdir('tmp') unless File.exists?('tmp') packages, heuristics = load_data() + packages.each do |package| + if package["native"] == true + package["remote"] = "vim/vim@v8.2.4274:runtime" + end + end download(packages) extract(packages) generate_fallback() diff --git a/syntax/plantuml.vim b/syntax/plantuml.vim index 6e8ecf2d..50e08dc1 100644 --- a/syntax/plantuml.vim +++ b/syntax/plantuml.vim @@ -2,7 +2,6 @@ if polyglot#init#is_disabled(expand('<sfile>:p'), 'plantuml', 'syntax/plantuml.v finish endif -scriptencoding utf-8 " Vim syntax file " Language: PlantUML " License: VIM LICENSE diff --git a/syntax/solidity.vim b/syntax/solidity.vim index 55e007bd..516f207f 100644 --- a/syntax/solidity.vim +++ b/syntax/solidity.vim @@ -120,11 +120,11 @@ syn region solFuncModParens contained contains=solString,solFuncCall,solCo \ end=')' syn keyword solFuncReturn contained nextgroup=solFuncRetParens skipwhite skipempty returns syn region solFuncRetParens contains=solValueType,solFuncStorageType nextgroup=solFuncBody skipempty skipwhite - \ start='(' - \ end=')' + \ start='(' + \ end=')' syn region solFuncBody contained contains=solDestructure,solComment,solAssemblyBlock,solEmitEvent,solTypeCast,solMethod,solValueType,solConstant,solKeyword,solRepeat,solLabel,solException,solStructure,solFuncStorageType,solOperator,solNumber,solString,solFuncCall,solIf,solElse,solLoop skipempty skipwhite - \ start='{' - \ end='}' + \ start='{' + \ end='}' syn match solFuncCall contained skipempty skipwhite nextgroup=solCallOptions,solFuncCallParens \ '\v%(%(<if>|<uint>|<int>|<ufixed>|<bytes>|<address>|<string>|<bool>)\s*)@<!<[a-zA-Z_][0-9a-zA-Z_]*\s*%((\{(\n|.|\s)*\})?\s*(\((\n|.|\s)*\)))@=' syn region solFuncCallParens contained transparent contains=solComment,solString,solFuncCall,solConstant,solNumber,solMethod,solTypeCast,solComma,solOperator @@ -185,6 +185,12 @@ hi def link solEventName Function hi def link solEventParamMod Keyword hi def link solEmitEvent Special +" Errors +syn match solError /\<error\>/ nextgroup=solErrorName,solFuncParams skipwhite +syn match solErrorName /\<[a-zA-Z_][0-9a-zA-Z_]*/ nextgroup=solFuncParam contained skipwhite + +hi def link solErrorName Function + " Constants syn keyword solConstant true false wei szabo finney ether seconds minutes hours days weeks years now super syn keyword solConstant block msg now tx this abi |