Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0069c5f

Browse files
committed
Improvement: gqq autowrap leading :: definition as &l:comments (#1279)
1 parent738e241 commit0069c5f

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

‎doc/vimwiki.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4020,6 +4020,11 @@ master is retained as a legacy mirror of the dev branch.
40204020

40214021
This is somewhat experimental, and will probably be refined over time.
40224022

4023+
New:~
4024+
* Issue #1279: Fix/Improvement: When re-wrap a long line in a definition
4025+
by'gq' it should insert ':: ' at the new line
4026+
4027+
40234028
2023.04.04~
40244029

40254030
Fixed:~

‎ftplugin/vimwiki.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ for bullet in vimwiki#vars#get_syntaxlocal('bullet_types')
149149
" list
150150
letcomments.=',fb:' . bullet
151151
endfor
152+
" Add :: for vimwiki default syntax (#1279)
153+
if'default'==#vimwiki#vars#get_wikilocal('syntax')
154+
letcomments.=',b:::'
155+
endif
152156
let &l:comments=comments
153157

154158
" Set Format Options: (:h fo-table)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Non regression tests for issue: #1279
2+
# Fix/Improvement: When re-wrap a long line in a definition by 'gq' it should insert ':: ' at the new line
3+
4+
5+
Given vimwiki (Dummy heading):
6+
:: aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa
7+
8+
Do (gqq):
9+
gqq
10+
11+
Expect (Heading6):
12+
:: aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa
13+
:: aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa
14+
:: aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa
15+
:: aaa aaa aaa

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp