Skip to content

Commit 40d9dbb

Browse files
committed
adding gitignore to ignore doc/tags
2 parents 60ad748 + ac95a29 commit 40d9dbb

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
doc/tags

ftplugin/pandoc.vim

+14-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,25 @@
66

77
" Soft/hard word wrapping
88
if exists("g:pandoc_use_hard_wraps") && g:pandoc_use_hard_wraps
9+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
10+
" hard wrapping at 79 chars (like in gq default)
911
if &textwidth == 0
1012
setlocal textwidth=79
1113
endif
14+
" t: wrap on &textwidth
15+
" n: keep inner indent for list items.
1216
setlocal formatoptions=tn
17+
" will detect numbers, letters, *, +, and - as list headers, according to
18+
" pandoc syntax.
19+
" TODO: add support for roman numerals
20+
setlocal formatlistpat=^\\s*\\([*+-]\\\|\\((*\\d\\+[.)]\\+\\)\\\|\\((*\\l[.)]\\+\\)\\)\\s\\+
21+
1322
if exists("g:pandoc_auto_format") && g:pandoc_auto_format
14-
setlocal formatoptions+=wa
23+
" a: auto-format
24+
" w: lines with trailing spaces mark continuing
25+
" paragraphs, and lines ending on non-spaces end paragraphs.
26+
" we add `w` as a workaround to `a` joining compact lists.
27+
setlocal formatoptions+=aw
1528
endif
1629
else
1730
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

0 commit comments

Comments
 (0)