annotate runtime/ftplugin/abap.vim @ 27557:ce72087b601f v8.2.4305

patch 8.2.4305: tex filetype detection fails Commit: https://github.com/vim/vim/commit/e5b7897585eccec84431d8b23df5cde2e283828c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 5 19:50:34 2022 +0000 patch 8.2.4305: tex filetype detection fails Problem: Tex filetype detection fails. Solution: Check value to be positive. (closes https://github.com/vim/vim/issues/9704)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Feb 2022 21:00:03 +0100
parents 2d1383658bb4
children 02939ae3aaca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4264
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: ABAP
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Author: Steven Oliver <oliver.steven@gmail.com>
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " Copyright: Copyright (c) 2013 Steven Oliver
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " License: You may redistribute this under the same terms as Vim itself
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 " --------------------------------------------------------------------------
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 " Only do this when not done yet for this buffer
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 if (exists("b:did_ftplugin"))
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 finish
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 endif
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 let b:did_ftplugin = 1
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 let s:cpo_save = &cpo
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 set cpo&vim
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 setlocal softtabstop=2 shiftwidth=2
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 setlocal suffixesadd=.abap
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 " Windows allows you to filter the open file dialog
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 if has("gui_win32") && !exists("b:browsefilter")
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n" .
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 \ "All Files (*.*)\t*.*\n"
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 endif
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 let &cpo = s:cpo_save
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 unlet s:cpo_save
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 " vim: set sw=4 sts=4 et tw=80 :