diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-05-20 14:15:53 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-05-20 14:43:12 +0200 |
commit | 2dfce05ec9fba1bd16b63355e7d75864090295ca (patch) | |
tree | 7f3e677f308dac6f1bcf4331ae33f7f1bf43ea4b /runtime/indent/arduino.vim | |
parent | 7d6a8438c927693701ee60be9d09581a12345270 (diff) | |
download | rneovim-2dfce05ec9fba1bd16b63355e7d75864090295ca.tar.gz rneovim-2dfce05ec9fba1bd16b63355e7d75864090295ca.tar.bz2 rneovim-2dfce05ec9fba1bd16b63355e7d75864090295ca.zip |
vim-patch:957d903cb7af
runtime(arduino): Add Arduino ftplugin and indent files (vim/vim#14811)
We already have Arduino syntax file, but we didn't have ftplugin and
indent files.
This commit adds a basic ftplugin file and a basic indent file.
Both of them are derived from {ftplugin,indent}/c.vim.
https://github.com/vim/vim/commit/957d903cb7af41539efd3195d053293987af85d9
Co-authored-by: K.Takata <kentkt@csc.jp>
Diffstat (limited to 'runtime/indent/arduino.vim')
-rw-r--r-- | runtime/indent/arduino.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/indent/arduino.vim b/runtime/indent/arduino.vim new file mode 100644 index 0000000000..88717ac00d --- /dev/null +++ b/runtime/indent/arduino.vim @@ -0,0 +1,16 @@ +" Vim indent file +" Language: Arduino +" Maintainer: The Vim Project <https://github.com/vim/vim> +" Ken Takata <https://github.com/k-takata> +" Last Change: 2024 Apr 03 + +" Only load this indent file when no other was loaded. +if exists("b:did_indent") + finish +endif +let b:did_indent = 1 + +" Use C indenting. +setlocal cindent + +let b:undo_indent = "setl cin<" |