mirror of
https://github.com/vim/vim.git
synced 2026-02-01 11:34:23 +01:00
Problem: No indention support when editing bpftrace files. Solution: Add indention settings based on cindent with custom options. closes: #19030 Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl> Signed-off-by: Christian Brabandt <cb@256bit.org>
20 lines
489 B
VimL
20 lines
489 B
VimL
" Vim indent file
|
|
" Language: bpftrace
|
|
" Author: Stanislaw Gruszka <stf_xl@wp.pl>
|
|
" Last Change: 2025 Dec 27
|
|
|
|
" Only load this indent file when no other was loaded.
|
|
if exists("b:did_indent")
|
|
finish
|
|
endif
|
|
let b:did_indent = 1
|
|
|
|
setlocal noautoindent nosmartindent
|
|
|
|
setlocal cindent
|
|
setlocal cinoptions=+0,(0,[0,Ws,J1,j1,m1,>s
|
|
setlocal cinkeys=0{,0},!^F,o,O,#0
|
|
setlocal cinwords=
|
|
|
|
let b:undo_indent = "setlocal autoindent< smartindent< cindent< cinoptions< cinkeys< cinwords<"
|