Created
April 22, 2015 14:57
vimで保存時にslimの構文チェックする
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
"gem install slim_lint が必要 | |
function! SlimLint() | |
let slim_lint = "slim-lint" | |
silent cexpr system(slim_lint . " " . shellescape(expand('%'))) | |
copen | |
endfunction | |
"augroupで適当にくくったほうがいい | |
autocmd BufWritePost *.slim call SlimLint() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
動作確認用のアレ