abap.vim 800 B

123456789101112131415161718192021222324252627282930
  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. " --------------------------------------------------------------------------
  7. " Only do this when not done yet for this buffer
  8. if (exists("b:did_ftplugin"))
  9. finish
  10. endif
  11. let b:did_ftplugin = 1
  12. let s:cpo_save = &cpo
  13. set cpo&vim
  14. setlocal softtabstop=2 shiftwidth=2
  15. setlocal suffixesadd=.abap
  16. " Windows allows you to filter the open file dialog
  17. if has("gui_win32") && !exists("b:browsefilter")
  18. let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n" .
  19. \ "All Files (*.*)\t*.*\n"
  20. endif
  21. let &cpo = s:cpo_save
  22. unlet s:cpo_save
  23. " vim: set sw=4 sts=4 et tw=80 :