Commit Graph

73 Commits

Author SHA1 Message Date
Peter Aronoff
5b4110dade Update links to point to preservim 2022-02-13 07:17:05 -05:00
Caleb Maclennan
7d1e536d1d Map g0/g$ to what used to be 0/$ (similar to j->gj/gj->j) 2019-11-16 12:21:17 +03:00
Caleb Maclennan
788a6870c7 Bind to whatever users may have remapped 0/$ to instead of directly to 0/$ 2019-11-16 12:17:39 +03:00
Caleb Maclennan
b9c7f44616 Fix Mapkey to return queried key instead of 0 if no match 2019-11-16 12:08:27 +03:00
Caleb Maclennan
8848dedb70 Use full option names instead of abreviations 2019-11-15 11:02:32 +03:00
Caleb Maclennan
dae22f99b5 Use single quoted strings by default 2019-11-15 10:59:26 +03:00
Caleb Maclennan
ed3630df12 Use robust comparison operators 2019-11-15 10:55:43 +03:00
Caleb Maclennan
c6727cac47 Add missing abort option to autoload function 2019-11-15 10:53:36 +03:00
Caleb Maclennan
460b8a0304 Explicitly set script encoding so RegEx behave 2019-11-15 10:52:33 +03:00
Caleb Maclennan
907d26ecfd Merge pull request #50 from dangerginger/sane-mvmt-key-remap
Sane defaults for movement key remaps
2019-11-15 10:28:07 +03:00
BlueDrink9
013587c347 fix #77 Map gk in soft mode 2019-05-02 17:25:24 +12:00
Reed Esau
f5f456ccdc New optional key mapping to suspend autoformat #48
When using hard line break mode, autoformat is enabled by default.

Blacklisting is the existing mechanism to suspend autoformat for code blocks. You can now optionally map a buffer-scoped 'modifier' key to suspend autoformat for the Insert.

Also simplified README by moving things to the advanced section.
2016-08-17 11:32:38 -06:00
james
341403d115 Change the remapping of movement keys when Pencil mode is enabled to
check for user remaps and use those as a sane default.

Fixes #49
2016-07-22 10:32:42 -07:00
Reed Esau
470f9ca44c ongoing 2016-06-13 17:08:16 -06:00
Reed Esau
f9cbfca887 ongoing 2016-06-11 15:13:24 -06:00
Reed Esau
01a3a95c72 Merge branch 'master' of https://github.com/reedes/vim-pencil 2016-06-10 21:26:31 -06:00
Reed Esau
08ee355694 map <cr> only if not already mapped 2016-06-10 21:26:23 -06:00
Florian Baumann
5e6ba37a94 Compatibility changes for vim 7.2 in colorcolumn 2016-06-09 12:17:46 +02: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
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
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
72d0a6d5f7 Additional tweaks for #25
Further improvements to README as well.
2015-01-10 12:58:15 -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
b60e5ba728 Merge branch 'master' of https://github.com/reedes/vim-pencil 2014-11-12 14:35:42 -07:00
Reed Esau
9ec2c3cbea Break out of whitelist loop; reword install docs 2014-11-12 14:35:27 -07:00
Reed Esau
9897c951ab Reconsidered colon for iskeyword 2014-11-12 06:42:15 -07:00
Reed Esau
8e8aeb7451 Minor changes to iskeyword and indent settings 2014-11-11 18:14:11 -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
d41f5954a0 Ensure home/end/up/down key overrides are local to buffer 2014-10-05 23:08:00 -06:00
Reed Esau
4e4ba394bc Support two new filetypes: rst and tex 2014-10-01 00:53:40 -06:00
Reed Esau
6964928289 Compatibility improvements 2014-09-17 06:40:04 -06:00
Reed Esau
55b432a55f Add breakindent support for #10 2014-09-17 05:33:06 -06:00
Reed Esau
93ee3e1a12 Refactor for performance 2014-09-17 05:32:08 -06:00
Reed Esau
66ddded258 Expand word definitions to fix #12 2014-09-03 05:56:44 -06:00
Reed Esau
eec3dc455e Ensure iskeyword is prose-oriented for buffer - fixes #15 2014-09-03 05:23:36 -06:00
Reed Esau
a997444f39 Remove a bit of experiment-related cruft (#13) 2014-08-31 19:06:02 -06:00
Reed Esau
1b6b0c83be Improve comment for #13 change. 2014-08-31 18:36:39 -06:00
Reed Esau
403163f85d Preserve indent based on 2nd line, fixes #13
I think this mostly applies to HardPencil mode.
2014-08-31 18:34:56 -06:00
Reed Esau
a275f35c6f New indicator for use in status line; fixes #6 2014-08-31 03:48:12 -06:00
Reed Esau
f18b74bac5 Ensure the global options have init() equivalents 2014-08-28 23:37:49 -06:00
Reed Esau
4880c4b1e1 Scan for syntax stack for autoformat
A fix for #11 where there wasn't any syntax stack at the end of a line containing text where we don't want to initiate autoformat.
2014-08-27 21:32:29 -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
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
74e5b86409 Better docs and new defaults for Vim's conceal feature 2014-08-24 23:46:18 -06:00
Reed Esau
78c8b46f91 Only set concealable for vims with 'conceal' 2014-08-22 00:51:24 -06:00
Reed Esau
e7d12db91a Only set concealable for vims with 'conceal' 2014-08-22 00:10:40 -06:00
Reed Esau
55b4a6e690 Support Conceal for Markdown; disable smartindent 2014-08-21 21:55:18 -06:00