51 Commits

Author SHA1 Message Date
Reed Es
c9d7f686f1 Unnecessary regex modifier on my recent change 2023-04-03 11:21:09 -06:00
Reed Es
449be7a8e6 Blacklist support Jekyll front matter #92 2023-04-01 19:14:20 -06:00
Peter Aronoff
5b4110dade Update links to point to preservim 2022-02-13 07:17:05 -05:00
James Sully
2135374d48 Add -bar suffix to commands to allow use as first of series of commands with | (#94)
For example, `Pencil|Goyo`. Commands which can be followed by a `|` must be declared with `command-bar` (not entirely clear to me why).

My use case is in making an alias for a pager for prose: `vim -c 'Pencil|Goyo'`, but it could be potentially useful for a variety of reasons.
2021-02-06 10:00:30 +03:00
JudeLakkis
0945852760 Add highlight groups to blacklist in RST (#86)
Co-authored-by: Reed Esau <reed@esau.org>
2019-12-13 09:00:21 +03:00
Caleb Maclennan
8848dedb70 Use full option names instead of abreviations 2019-11-15 11:02:32 +03:00
Caleb Maclennan
ed3630df12 Use robust comparison operators 2019-11-15 10:55:43 +03:00
Caleb Maclennan
460b8a0304 Explicitly set script encoding so RegEx behave 2019-11-15 10:52:33 +03:00
Damien Burke
9ad784bc23 Add vim-pandoc support
Do not autoformat code, HTML, LaTeX math blocks, lists, tables or
YAML in pandoc documents.
2017-01-02 22:37:32 -08:00
Reed Esau
fd75347422 mkdNonListItemBlock shouldn't be blacklisted 2016-10-05 23:29:52 -06:00
Reed Esau
f113c8c929 Blacklist updates for plasticboy markdown syntax 2016-10-02 23:40:51 -06:00
Reed Esau
ad18a74cf0 Blacklisting texStatement, per #43 2016-06-29 20:09:26 -06:00
Reed Esau
ebbfc350b8 Disable legacy commands by default, as per schedule 2016-01-03 13:27:13 -07:00
Reed Esau
dd8321a2d5 Additional changes for #33, file type specific autoformat config 2015-09-07 12:18:19 -06:00
Reed Esau
f89a3ac998 Blacklist (and whitelist) config by file type 2015-09-07 00:26:37 -06:00
Reed Esau
290b0872d0 Added 'auto' mode indicator to fix #18
An indicator to show that Vim's autoformat is activated while in HardPencil mode.
2015-09-07 00:19:42 -06:00
Reed Esau
632ae63c2c Removed MarkdownOrderedListMarker from default blacklist
Numbered whole paragraphs makes for a strong use case to keep Vim's autoformat enabled.
2015-09-05 12:46:25 -06:00
Reed Esau
45f4c46cfe Better behavior for #31, autoformat lists in Markdown
For tpope's markdown syntax, restored standard autoformat behavior for unordered lists, which is generally pretty good.

Ordered lists had annoying behavior for autoformat, so simply disabling autoformat if detected when insert is entered. This isn't ideal, but it's not clear what else can be done now.

Fixed bug for PFormatToggle, where it wasn't properly disabling Vim's autoformat.

Provided help in README for mapping key to toggle autoformat.
2015-05-06 00:56:49 -06:00
Reed Esau
536311e98c Blacklist markdownListMarker #31
To make it easier to add new items to a list in HardPencil mode
2015-04-24 00:17:48 -06:00
Reed Esau
c465e30c19 Improve autoformat support for asciidoc #28
For all document types, autoformat blacklisting now sneaks a look a the start of the previous line, to allow for non-heading text to immediately follow, without autoformat being engaged in a way that will cause the heading to be captured in the auto formatted text.
2015-03-15 16:04:30 -06:00
Reed Esau
320c7fc284 Reprieve for original HardPencil and SoftPencil commands
PencilHard and PencilSoft benefited from autocomplete when you didn't know the commands, but they are awkward when you do know the commands.

So, there's PencilHard and HardPencil.
PencilSoft and SoftPencil
PencilToggle and TogglePencil
PencilOff and NoPencil

Additional blacklist adjustment for the plasticboy plugin, though I'll be doing more work in the coming weeks to get things tuned better.
2015-01-30 13:57:35 -07:00
Reed Esau
02283c81e6 Addl blacklist to better support plasticboy/markdown 2015-01-29 00:36:44 -07:00
Reed Esau
ad195ab208 Added rough asciidoc support, per #25
See the ticket for current limitations.

Also improved README.
2015-01-10 01:48:07 -07:00
Reed Esau
4d0a377928 more blacklist additions for #22
A couple of other blacklist changes for plasticboy/vim-markdown to match those added for tpope/vim-markdown
2014-11-05 05:34:29 -07:00
Reed Esau
e661e83bea Fixes for #19 and #22
#19 Reorganized commands, making them prefix-oriented. (e.g., old: HardPencil, new: PencilHard). Legacy commands still enabled by default.

#22 Better support of inline syntax for PencilHard mode
2014-11-05 05:05:23 -07:00
Reed Esau
623088f6db Switch to single-char indicators
There were problems with double-width indicator characters not displaying correctly when editing.
2014-10-07 01:47:07 -06:00
Reed Esau
4e4ba394bc Support two new filetypes: rst and tex 2014-10-01 00:53:40 -06:00
Reed Esau
d494547e7a Additional indicator tweaking for #6 2014-08-31 22:20:13 -06:00
Reed Esau
676e72a793 Swapped order of indicator chars
To address a rendering problem in MacVim that required a screen redraw in some cases.
2014-08-31 03:58:44 -06:00
Reed Esau
a275f35c6f New indicator for use in status line; fixes #6 2014-08-31 03:48:12 -06:00
Reed Esau
0fc7d8caad Additional blacklist items for links
Avoid entering autoformat when entering link definitions.
2014-08-27 05:40:14 -06:00
Reed Esau
ad8c4b4504 Added table highlight to autoformat blacklist
mattly/vim-markdown-enhancements defines a highlight for tables in markdown. We can use that to avoid inadvertent reformat of those tables by not enabling autoformat in those tables.
2014-08-27 05:17:38 -06:00
Reed Esau
14f49ac597 various naming/reliability
Added breakat chars to preserve footnote and email addresses.
Rename 'exclude' global to 'blacklist'
Removed formatoptions that were interfering with syntax module.
2014-08-27 04:34:01 -06:00
Reed Esau
8c5ecaa8c1 More highlight groups for autoformat exclude list 2014-08-25 02:24:25 -06:00
Reed Esau
19c1dba18f #7 fix - avoid enabling autoformat for code blocks
Found a bug with new feature and fixed.
2014-08-25 02:11:37 -06:00
Reed Esau
a7996a75b5 #7 fix - avoid enabling autoformat for code blocks
At least a partial fix for the problem of autoformat wreaking havoc on code blocks.

Couldn't find any highlighting groups for tables. If anybody can find them, we can add them to the exclude list.
2014-08-25 01:25:02 -06:00
Reed Esau
72d617c482 Tweaking the conceal defaults
Not seeing the concealed markup in normal mode made for a poor experience.
2014-08-24 23:54:54 -06:00
Reed Esau
74e5b86409 Better docs and new defaults for Vim's conceal feature 2014-08-24 23:46:18 -06:00
Reed Esau
72c8788b47 Disable new Conceal feature by default
For terminal users, the install is involved.
2014-08-21 23:29:57 -06:00
Reed Esau
55b4a6e690 Support Conceal for Markdown; disable smartindent 2014-08-21 21:55:18 -06:00
Reed Esau
1f05effbd0 Support NoPencil command as synonym to DropPencil 2014-02-05 10:23:05 -07:00
Reed Esau
ffebe64a88 detect optimization; boosted line count to 20 2014-01-15 09:00:22 -07:00
Reed Esau
d634989c87 added wrap mode detect via line sampling; now ignores wm 2014-01-14 23:37:09 -07:00
Reed Esau
fd6f590d4a restored cursorwrap default; fixed autoformat issue for quotable 2014-01-12 21:24:16 -07:00
Reed Esau
af65cf4197 temporarily disabled cursorwrap, as ve=onemore breaks vim-quotable 2014-01-12 17:28:54 -07:00
Reed Esau
20c2f296a5 improved header 2014-01-08 00:15:51 -07:00
Reed Esau
fbcc755bd6 restored name to toggle command 2014-01-07 21:59:34 -07:00
Reed Esau
e4f00286de changed to friendlier command names 2014-01-07 21:50:19 -07:00
Reed Esau
3d267d2e8d whichwrap, autoindent, fo, reorg of README 2014-01-07 21:06:55 -07:00
Reed Esau
2114bd1db0 command names now friendlier 2014-01-05 22:50:59 -07:00