mirror of
https://github.com/keith/swift.vim.git
synced 2025-12-22 12:14:13 +01:00
40d53b215fd455e4b7fd413eaf14d1a028a504ab
Swift.vim
Syntax and indent files for Swift
If you don't have a preferred installation method check out vim-plug.
Examples
Syntastic Integration
swift.vim can show errors inline from swift package manager or from swiftlint using syntastic.
Usage
-
Install syntastic
-
swiftpm integration will be automatically enabled if you're running vim from a directory containing a
Package.swiftfile. -
SwiftLint integration will be automatically enabled if you have SwiftLint installed and if you're running vim from a directory containing a
.swiftlint.ymlfile. -
To enable both at once add this to your vimrc:
let g:syntastic_swift_checkers = ['swiftpm', 'swiftlint']
Languages
Vim Script
67.3%
Swift
32%
Shell
0.7%


