swift.vim 733 B

123456789101112131415161718192021222324
  1. " This source file is part of the Swift.org open source project
  2. "
  3. " Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
  4. " Licensed under Apache License v2.0 with Runtime Library Exception
  5. "
  6. " See https://swift.org/LICENSE.txt for license information
  7. " See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
  8. "
  9. " Vim maintainer: Emir SARI <bitigchi@me.com>
  10. " Last Change: 2021 Jan 08
  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. let b:undo_ftplugin = "setlocal comments< expandtab< tabstop< shiftwidth< smartindent<"
  17. setlocal comments=s1:/*,mb:*,ex:*/,:///,://
  18. setlocal expandtab
  19. setlocal sw=4 sts=4
  20. setlocal smartindent