This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3acb56
commit d3cf09c
Showing
5 changed files
with
44 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
# cairo.vim | ||
|
||
> [Cairo lang](https://www.cairo-lang.org/) plugin for Vim. | ||
> A [Cairo lang](https://www.cairo-lang.org/) plugin for Vim | ||
## Install with Plug | ||
|
||
```vim | ||
Plug 'miguelmota/cairo.vim' | ||
``` | ||
|
||
## Options | ||
|
||
Auto-format on save: | ||
|
||
```vim | ||
let g:cairo_linter_autosave = 1 | ||
``` | ||
|
||
## License | ||
|
||
[MIT](LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
autocmd BufNewFile,BufRead *.cairo setfiletype cairo | ||
" augroup prevents duplicated autocmds when sourcing | ||
augroup cairo | ||
autocmd! | ||
autocmd BufNewFile,BufRead *.cairo setfiletype cairo | ||
autocmd BufWritePost * :call CairoSave() | ||
augroup END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
" number of space characters for tab | ||
setlocal tabstop=4 | ||
|
||
" tab indent size in spaces | ||
setlocal shiftwidth=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters