diff options
author | Akshay <[email protected]> | 2021-02-15 08:52:32 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-02-15 08:52:32 +0000 |
commit | fcaf13a267b7bacd26ad8b2e952a793645e42bba (patch) | |
tree | 6e795b46b1fbefb05151e95c0346951d67fac4e7 /ftplugin/kotlin.vim |
init
Diffstat (limited to 'ftplugin/kotlin.vim')
-rw-r--r-- | ftplugin/kotlin.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ftplugin/kotlin.vim b/ftplugin/kotlin.vim new file mode 100644 index 0000000..d001ac1 --- /dev/null +++ b/ftplugin/kotlin.vim | |||
@@ -0,0 +1,19 @@ | |||
1 | setlocal tabstop=4 | ||
2 | setlocal softtabstop=4 | ||
3 | setlocal shiftwidth=4 | ||
4 | setlocal expandtab | ||
5 | setlocal autoindent | ||
6 | setlocal smarttab | ||
7 | setlocal formatoptions=croql | ||
8 | |||
9 | setlocal comments=:// | ||
10 | setlocal commentstring=//\ %s | ||
11 | |||
12 | setlocal makeprg=ktlint | ||
13 | |||
14 | augroup KtLint | ||
15 | autocmd! | ||
16 | autocmd BufWritePost *.kt silent make! <afile> | silent redraw | ||
17 | autocmd QuickFixCmdPost [^l]* cwindow | ||
18 | augroup END | ||
19 | |||