annotate runtime/ftplugin/aap.vim @ 28582:278a14b00896 v8.2.4815

patch 8.2.4815: cannot build with older GTK version Commit: https://github.com/vim/vim/commit/d42b83942e6741de2bb630ee17a2e9fcc03d6b43 Author: Ernie Rael <errael@raelity.com> Date: Sat Apr 23 19:52:23 2022 +0100 patch 8.2.4815: cannot build with older GTK version Problem: Cannot build with older GTK version. Solution: Use gtk_window_get_size() instead of gdk_window_get_width() and gdk_window_get_height(). (Ernie Rael, closes #10257)
author Bram Moolenaar <Bram@vim.org>
date Sat, 23 Apr 2022 21:00:03 +0200
parents 624439a39432
children 4027cefc2aab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Aap recipe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
4 " Last Change: 2021 Nov 14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
14 " Reset 'formatoptions', 'comments', 'commentstring' and 'expandtab' to undo
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
15 " this plugin.
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
16 let b:undo_ftplugin = "setl fo< com< cms< et<"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Set 'formatoptions' to break comment lines but not other lines,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " and insert the comment leader when hitting <CR> or using "o".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 setlocal fo-=t fo+=croql
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Set 'comments' to format dashed lists in comments.
4264
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
23 setlocal comments=s:#\ -,m:#\ \ ,e:#,n:#,fb:-
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
24 setlocal commentstring=#\ %s
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Expand tabs to spaces to avoid trouble.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 setlocal expandtab
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
28
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
29 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
30 let b:browsefilter = "Aap Recipe Files (*.aap)\t*.aap\nAll Files (*.*)\t*.*\n"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
31 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
32 endif