I wrote this notes in the era of Swift 2, so it is very outdated. So this is for history interest only.
Tested on Linux.
- No code highlight if code has not been compiled once.
- Code completion does not work on import modules,
including
Foundation
.
-
Syntax highlight: Swift for F*ing Sublime has "goto symbol" support, better than Swift (no "goto" support).
-
Lint: SublimeLinter-contrib-swiftlint depends on SwiftLint, which has no Linux support yet.
-
Completion:
- SwiftKitten depends on SourceKit, which requires Mac OS X.
- swift-api-to-snippet is a command line tool
for parsing swift files in a directory
and outputting a
.sublime-completions
json file, which can then be used by Sublime Text to give completion suggestions. - Swift Foundation Completions uses swift-api-to-snippet
to generate completions for
Foundation
. It has basic completions for methods and properties.
Vim has several plugins for Swift file type (syntax). The only completion plugin uses SourceKit, which requires Mac OS X. Thus vim has less support for Swift than Sublime Text on Linux.