blob: 8b2040e5aa72c1bddfc3106e69b066436abdb805 [file] [log] [blame]
Bram Moolenaarbf884932013-04-05 22:26:15 +02001" Vim filetype plugin file
2" Language: ABAP
3" Author: Steven Oliver <oliver.steven@gmail.com>
4" Copyright: Copyright (c) 2013 Steven Oliver
5" License: You may redistribute this under the same terms as Vim itself
Doug Kearns93197fd2024-01-14 20:59:02 +01006" Last Change: 2023 Aug 28 by Vim Project (undo_ftplugin)
7" 2024 Jan 14 by Vim Project (browsefilter)
Bram Moolenaarbf884932013-04-05 22:26:15 +02008" --------------------------------------------------------------------------
9
10" Only do this when not done yet for this buffer
11if (exists("b:did_ftplugin"))
12 finish
13endif
14let b:did_ftplugin = 1
15
16let s:cpo_save = &cpo
17set cpo&vim
18
19setlocal softtabstop=2 shiftwidth=2
20setlocal suffixesadd=.abap
21
dkearnsf937ab32023-08-29 05:32:27 +100022let b:undo_ftplugin = "setl sts< sua< sw<"
23
Bram Moolenaarbf884932013-04-05 22:26:15 +020024" Windows allows you to filter the open file dialog
Doug Kearns93197fd2024-01-14 20:59:02 +010025if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
26 let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n"
27 if has("win32")
28 let b:browsefilter ..= "All Files (*.*)\t*\n"
29 else
30 let b:browsefilter ..= "All Files (*)\t*\n"
31 endif
32 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
Bram Moolenaarbf884932013-04-05 22:26:15 +020033endif
34
35let &cpo = s:cpo_save
36unlet s:cpo_save
37
38" vim: set sw=4 sts=4 et tw=80 :