Commit Graph

4 Commits

Author SHA1 Message Date
Akshay Hegde
6c38a6b82a Conform to existing conventions for Vim ftplugin
This commit adds standard conventions for Vim filetype plugins:

- Allows users to opt out of using the provided ftplugin file, if they
  choose to install and use another set of runtime files for Swift
  (which offers its own version of ftplugin for Swift), It also prevents
  this ftplugin file from being sourced again if a ftplugin file for
  Swift was already sourced. Vim's documentation on this recommends
  offering users this option as well, under the "DISABLING" section
  of `:help write-filetype-plugin`).

- Adds the `b:undo_ftplugin` buffer local variable, which is used to
  undo the filetype settings when the `:setfiletype` command is used
  (See :help `undo_ftplugin`). Also prefer using the full names for Vim
  settings instead of short ones as they are more readable.

The above conventions are in place in many of the ftplugin files
shipped with Vim, so they can be used as a reference, as well.
2020-12-24 01:01:04 -08:00
Emir Sarı
399d74ce1f Add licence notice to Vim syntax files 2020-01-21 22:00:47 +03:00
Max Moiseev
bc46ab5bc5 Minor tweaks to vim syntax highlighting
Highlighting #if/#endif, @attributes, mutating and some more keywords
2015-12-01 15:44:43 -08:00
Dmitri Hrybenko
ac6306ced8 vim integration: recognize /// comments for indentation purposes
Swift SVN r29884
2015-07-02 05:18:23 +00:00