-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Remove backslashes in man pages using Vim script #12557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Depending on Col's provenance, tabs may be substituted for Compare output: { man col | col -bx; } > /tmp/col.1.x
{ man col | col -bh; } > /tmp/col.1.h
{ man col | col -b; } > /tmp/col.1
diff -q /tmp/col.1.h /tmp/col.1
vimdiff -o /tmp/col.1.x /tmp/col.1 |
I think referring to the issue is sufficient. There are other details left out of the comment that are equally relevant. Brevity requires that a number of details be omitted, which is why the link to the issue was added. Personally, I would much rather remove any attempt to reformat the output of If |
Codecov Report
@@ Coverage Diff @@
## master #12557 +/- ##
==========================================
- Coverage 82.09% 82.08% -0.01%
==========================================
Files 160 160
Lines 193650 193650
Branches 43481 43468 -13
==========================================
- Hits 158978 158966 -12
- Misses 21826 21840 +14
+ Partials 12846 12844 -2
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
should be okay to include. One question however: |
|
thanks! |
…2557) Closes: vim#12301 Co-authored-by: Jason Franklin <[email protected]>
|
Actually, I found the issue. It's because I have I think we can fix it like so (I will open PR): diff --git a/runtime/autoload/dist/man.vim b/runtime/autoload/dist/man.vim
index 315636a2ef..e517714f58 100644
--- a/runtime/autoload/dist/man.vim
+++ b/runtime/autoload/dist/man.vim
@@ -196,7 +196,11 @@ func dist#man#GetPage(cmdmods, ...)
" Emulate piping the buffer through the "col -b" command.
" Ref: https://github.com/vim/vim/issues/12301
- silent! keepjumps keeppatterns %s/\v(.)\b\ze\1?//ge
+ if &gdefault
+ silent! keepjumps keeppatterns %s/\v(.)\b\ze\1?//e
+ else
+ silent! keepjumps keeppatterns %s/\v(.)\b\ze\1?//ge
+ endif
if unsetwidth
let $MANWIDTH = ''The docs for Feels to me we should just expose a way to do substitution that can ignore |
Fix the issue introduced by vim#12557. `:substitue` commands in plugins need to take into account whether `gdefault` is set or not because that depends on the user.
Fix the issue introduced by #12557. `:substitute` commands in plugins need to take into account whether `gdefault` is set or not because that depends on the user. closes: #13097 Signed-off-by: Christian Brabandt <[email protected]>
…2557) Closes: vim#12301 Co-authored-by: Jason Franklin <[email protected]>


Closes: #12301