blob: fd6b8418fe005844cc03eef59795fa8cd69b4a94 [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)
Riley Bruinsa0316cd2025-06-10 20:57:14 +02008" 2025 Jun 08 by Riley Bruins <ribru17@gmail.com> ('comments', 'commentstring')
Bram Moolenaarbf884932013-04-05 22:26:15 +02009" --------------------------------------------------------------------------
10
11" Only do this when not done yet for this buffer
12if (exists("b:did_ftplugin"))
13 finish
14endif
15let b:did_ftplugin = 1
16
17let s:cpo_save = &cpo
18set cpo&vim
19
20setlocal softtabstop=2 shiftwidth=2
21setlocal suffixesadd=.abap
Riley Bruinsa0316cd2025-06-10 20:57:14 +020022setlocal commentstring=\"\ %s
23setlocal comments=:\",:*
Bram Moolenaarbf884932013-04-05 22:26:15 +020024
Riley Bruinsa0316cd2025-06-10 20:57:14 +020025let b:undo_ftplugin = "setl sts< sua< sw< com< cms<"
dkearnsf937ab32023-08-29 05:32:27 +100026
Bram Moolenaarbf884932013-04-05 22:26:15 +020027" Windows allows you to filter the open file dialog
Doug Kearns93197fd2024-01-14 20:59:02 +010028if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
29 let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n"
30 if has("win32")
31 let b:browsefilter ..= "All Files (*.*)\t*\n"
32 else
33 let b:browsefilter ..= "All Files (*)\t*\n"
34 endif
35 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
Bram Moolenaarbf884932013-04-05 22:26:15 +020036endif
37
38let &cpo = s:cpo_save
39unlet s:cpo_save
40
41" vim: set sw=4 sts=4 et tw=80 :