neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

abap.vim (1273B)


      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 " --------------------------------------------------------------------------
     10 
     11 " Only do this when not done yet for this buffer
     12 if (exists("b:did_ftplugin"))
     13  finish
     14 endif
     15 let b:did_ftplugin = 1
     16 
     17 let s:cpo_save = &cpo
     18 set cpo&vim
     19 
     20 setlocal softtabstop=2 shiftwidth=2
     21 setlocal suffixesadd=.abap
     22 setlocal commentstring=\"\ %s
     23 setlocal comments=:\",:*
     24 
     25 let b:undo_ftplugin = "setl sts< sua< sw< com< cms<"
     26 
     27 " Windows allows you to filter the open file dialog
     28 if (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"
     36 endif
     37 
     38 let &cpo = s:cpo_save
     39 unlet s:cpo_save
     40 
     41 " vim: set sw=4 sts=4 et tw=80 :