Skip to content

Commit 4a3d551

Browse files
committed
vim: fix indenting enums and macros
Now vim indenting goes from: fn main() { enum t { a: int, b: int } #error("hello world"); } to: fn main() { enum t { a: int, b: int } #error("hello world"); }
1 parent 6b280c6 commit 4a3d551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/etc/vim/indent/rust.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ if exists("b:did_indent")
55
endif
66

77
let b:did_indent = 1
8-
98
setlocal cindent
9+
setlocal cinkeys-=0#
10+
setlocal cino=j1,J1

0 commit comments

Comments
 (0)