commit b1fc21bbf108cfa694925f41a3ebb14a3df78a80 parent 871e0d2a31ee674412a0ff3e6532ad76598f6170 Author: Lukas Joswiak <lukas@lukasjoswiak.com> Date: Wed, 8 Apr 2020 22:02:21 -0700 Add indentation rules for Arduino files Diffstat:
| M | .vimrc | | | 9 | ++++++--- |
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/.vimrc b/.vimrc @@ -46,14 +46,17 @@ set softtabstop=4 set hlsearch " Indent with 2 spaces in cpp files -autocmd Filetype cpp setlocal shiftwidth=2 softtabstop=2 expandtab +autocmd FileType cpp setlocal shiftwidth=2 softtabstop=2 expandtab " Indent with 2 spaces in C files -autocmd Filetype c setlocal shiftwidth=2 softtabstop=2 expandtab +autocmd FileType c setlocal shiftwidth=2 softtabstop=2 expandtab + +" Indent with 2 spaces in Arduino files +autocmd FileType arduino setlocal shiftwidth=2 softtabstop=2 expandtab " Ledger shortcuts " Indent with 2 spaces in ledger files -autocmd Filetype ledger setlocal shiftwidth=2 softtabstop=2 expandtab +autocmd FileType ledger setlocal shiftwidth=2 softtabstop=2 expandtab " Toggle between posting status au FileType ledger nnoremap <Leader>rd :call ledger#transaction_state_toggle(line('.'), ' *!')<CR>