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
Concealed text causes vim to wrap before window width #260
Comments
Original comment by Attachments: |
Original comment by
|
Original comment by |
Original comment by |
What about when edit: whoops, didn't see |
Also, horizontal scrolling doesn't scroll on only visible text. |
@nhooyr It should, but it's not the case. |
@louwers in the original post, the person has |
@nhooyr Yes, so for that setting it's incorrect that it would create a wobbling effect or that it would be slow. However, there's still the issue of it being a lot of work to implement. Are you working on a patch? Personally I think it would be worth it, because without correct wrapping the conceal feature has little use, at least to me. |
And as mentioned by @brammool in https://groups.google.com/forum/#!topic/vim_dev/ZQTXsL4Tdyg on lines where there is some concealed text, positioning the cursor with the mouse also fails. As aside effect of these bugs the AnsiEsc plugin which uses |
I know this is wontfix, but I would like to add my 2c that it be reconsidered. My use case: I write notes in markdown syntax, using this plugin for syntax highlighting. The plugin helpfully defines conceals for URL patterns (like I'd like my notes to remain reasonably readable. With long URLs, it becomes a challenge. The "correct" answer here is The behaviour I think anyone would expect is that wrapping happens based on visible characters only. If we can map out what all needs to be done to implement this change, I'd be willing to help. |
For pages that contain reference information or a solution (most of my cases) I do this:
A quick way I've come up with to get nicely-formatted, easily "yankable" content from a URL is to use Pandoc and pipe the output right into vim: $ pandoc -o - -t markdown ${SOME_URL} | vim - Creating my own page is a bit more up-front work but has a couple of nice advantages:
If there are cases where this solution wouldn't work or would be annoying, I might use a URL shortener. But I'm finding that most things I need to link to directly every time are site home pages or maybe one level deep, so they aren't causing issues to begin with. |
I want to make the same point as this comment, but mainly using the below screenshots to give an idea: This is how emacs markdown-mode looks like (with the equivalence of |
+1 to this. The visual example above is great, and there are many other use cases this would enable (hide footnotes, or notes to self in long prose work). |
Another vote for fixing this issue. I love Vim and use it for almost everything, but I still find myself using Emacs for Markdown and Org files. The ability to conceal links and still have properly wrapped lines is a huge advantage; I almost never need to bother with a separate viewer application. |
Adding a vote for a fix to this issue — definitely funky for invisible content to cause wrapping. |
I'd also love this to be reconsidered. I use comments in Markdown a lot and would like to conceal them, but it truly messes up my lines. |
Bump Am using orgmode, also need it XD |
Just something random I have been dealing with: conceal also affects hard tab character positioning. In fact, if you read Vim documentation, it makes liberal uses of hard tabs and the alignment of the docs assume that conceal characters still count towards the hard tabs (in fact vimhelp.org only recently fixed this issue to make the online documentation look correct alignment-wise c4rlo/vimhelp#23). So if we fix this this probably need to be a toggleable option unless we fix up all the docs (and not sure if others rely on this as well). |
See vim/vim#260. Might be fixed by NeoVIM soonish with their "anticonceal" project. Also: nvim-neorg/neorg#292 Also: neovim/neovim#14409 Also: neovim/neovim#9496 Including `gettysburg.md` to check when conceal is working property, if ever. Note that everyone claims that concel works better in Emacs.
Original issue reported on code.google.com by
dbarn...@google.com
on 22 Sep 2014 at 6:41The text was updated successfully, but these errors were encountered: