File tree Expand file tree Collapse file tree 4 files changed +33
-8
lines changed Expand file tree Collapse file tree 4 files changed +33
-8
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,6 @@ function! VimtexIndent(lnum) abort " {{{1
51
51
return empty (l: line ) ? indent (l: prev_lnum ) : indent (a: lnum )
52
52
endif
53
53
54
- " Use previous indentation for comments
55
- if l: line = ~# ' ^\s*%'
56
- return indent (l: prev_lnum )
57
- endif
58
-
59
54
" Remove comments before subsequent checks
60
55
let l: line = s: clean_line (l: line )
61
56
Original file line number Diff line number Diff line change
1
+ \documentclass {minimal }
2
+ \begin {document }
3
+
4
+ \begin {flushleft }
5
+ % this comment IS indented like line below
6
+ Hello world!
7
+ \end {flushleft }
8
+
9
+ \begin {equation }
10
+ a = b \\
11
+ % comment
12
+ c = d
13
+ \end {equation }
14
+
15
+ \end {document }
Original file line number Diff line number Diff line change
1
+ \documentclass {minimal }
2
+ \begin {document }
3
+
4
+ \begin {flushleft }
5
+ % this comment IS indented like line below
6
+ Hello world!
7
+ \end {flushleft }
8
+
9
+ \begin {equation }
10
+ a = b \\
11
+ % comment
12
+ c = d
13
+ \end {equation }
14
+
15
+ \end {document }
Original file line number Diff line number Diff line change 10
10
\begin {tikzpicture }
11
11
\draw [solid] let \p {I} = (0,0) in (1,1) -|
12
12
(\x {I}-1cm,-1cm) node [yshift=-.25cm] {(i)};
13
- % Just some comment
13
+ % Just some comment
14
14
\end {tikzpicture }
15
15
16
16
\begin {tikzpicture }
17
- % (i) center contact head
17
+ % (i) center contact head
18
18
\draw [solid] let \p {I} = (centerContactHead) in (centerContactHead) -|
19
19
(\x {I}-.75cm,-2.5)
20
20
node [yshift=-.25cm] {(i)};
21
21
22
- % (ii) outer conductor of the contact head
22
+ % (ii) outer conductor of the contact head
23
23
\coordinate (outerContactHead) at (.8,-1.7);
24
24
\draw [solid] let \p {O} = (outerContactHead)
25
25
in (outerContactHead) -- (\x {O},-2.5)
You can’t perform that action at this time.
0 commit comments