1
0
Fork 0
mirror of synced 2024-11-10 11:18:58 -05:00
ultimate-vim/sources_non_forked/swift.vim
2017-11-27 13:43:13 +08:00
..
ale_linters/swift add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
ctags add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
example add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
ftdetect add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
ftplugin add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
indent add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
plugin add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
screenshots add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
syntax add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
syntax_checkers/swift add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
LICENSE add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00
README.md add cocoa.vim & swift.vim 2017-11-27 13:43:13 +08:00

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.swift file.

  • SwiftLint integration will be automatically enabled if you have SwiftLint installed and if you're running vim from a directory containing a .swiftlint.yml file.

  • To enable both at once add this to your vimrc:

let g:syntastic_swift_checkers = ['swiftpm', 'swiftlint']