robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
7945732ed7
master
1" 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 6" Last Change: 2023 Aug 28 by Vim Project (undo_ftplugin) 7" 2024 Jan 14 by Vim Project (browsefilter) 8" 2025 Jun 08 by Riley Bruins <ribru17@gmail.com> ('comments', 'commentstring') 9" 2026 Jun 27 by Vim Project (add recommended style guard) 10" -------------------------------------------------------------------------- 11 12" Only do this when not done yet for this buffer 13if ( exists ( "b:did_ftplugin" )) 14finish 15endif 16let b: did_ftplugin = 1 17 18let s: cpo_save = & cpo 19set cpo & vim 20 21if get ( g:, 'abap_recommended_style' , 22 \get ( g:, 'filetype_recommended_style' , 1 )) 23setlocal softtabstop = 2 shiftwidth = 2 24endif 25setlocal suffixesadd = .abap 26setlocal commentstring = \"\ %s 27setlocal comments = :\",:* 28 29let b: undo_ftplugin = "setl sts< sua< sw< com< cms<" 30 31" Windows allows you to filter the open file dialog 32if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 33let b: browsefilter = "ABAP Source Files (*.abap)\t*.abap\n" 34if has ( "win32" ) 35let b: browsefilter ..= "All Files (*.*)\t*\n" 36else 37let b: browsefilter ..= "All Files (*)\t*\n" 38endif 39let b: undo_ftplugin ..= " | unlet! b:browsefilter" 40endif 41 42let & cpo = s: cpo_save 43unlet s: cpo_save 44 45" vim: set sw=4 sts=4 et tw=80 :