xref: /vim-8.2.3635/runtime/ftplugin/abap.vim (revision bf88493c)
1*bf88493cSBram Moolenaar" Vim filetype plugin file
2*bf88493cSBram Moolenaar" Language:	ABAP
3*bf88493cSBram Moolenaar" Author:	Steven Oliver <[email protected]>
4*bf88493cSBram Moolenaar" Copyright:	Copyright (c) 2013 Steven Oliver
5*bf88493cSBram Moolenaar" License:	You may redistribute this under the same terms as Vim itself
6*bf88493cSBram Moolenaar" --------------------------------------------------------------------------
7*bf88493cSBram Moolenaar
8*bf88493cSBram Moolenaar" Only do this when not done yet for this buffer
9*bf88493cSBram Moolenaarif (exists("b:did_ftplugin"))
10*bf88493cSBram Moolenaar  finish
11*bf88493cSBram Moolenaarendif
12*bf88493cSBram Moolenaarlet b:did_ftplugin = 1
13*bf88493cSBram Moolenaar
14*bf88493cSBram Moolenaarlet s:cpo_save = &cpo
15*bf88493cSBram Moolenaarset cpo&vim
16*bf88493cSBram Moolenaar
17*bf88493cSBram Moolenaarsetlocal softtabstop=2 shiftwidth=2
18*bf88493cSBram Moolenaarsetlocal suffixesadd=.abap
19*bf88493cSBram Moolenaar
20*bf88493cSBram Moolenaar" Windows allows you to filter the open file dialog
21*bf88493cSBram Moolenaarif has("gui_win32") && !exists("b:browsefilter")
22*bf88493cSBram Moolenaar  let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n" .
23*bf88493cSBram Moolenaar                     \ "All Files (*.*)\t*.*\n"
24*bf88493cSBram Moolenaarendif
25*bf88493cSBram Moolenaar
26*bf88493cSBram Moolenaarlet &cpo = s:cpo_save
27*bf88493cSBram Moolenaarunlet s:cpo_save
28*bf88493cSBram Moolenaar
29*bf88493cSBram Moolenaar" vim: set sw=4 sts=4 et tw=80 :
30