I'm going off on a tangent, but while we have you markdown geeks here: does anyone have any experience editing it with Vim? Do you recommend any plugins or similar?
The only real problem I have with markdown is that if I have editor soft-wraps, Vim doesn't work that well (I can't properly navigate soft-wrap lines, because there is a mismatch between what I see and what the editor understands as a line). If I do hard-wraps (new-lines), then the doc loses copy-paste portability to something like Docs. Anyone know how to solve this?
You can always use `gj`/`gk` instead of `j`/`k` to move down/up a visual (soft-wrapped) line. If you find it inconvenient, you can always remap bindings to work however you like [0]. You can even limit the mapping to specific file type (e.g. markdown).
Comments (387) 94 threads
Show all comments
Showing thread 37 of 94
The only real problem I have with markdown is that if I have editor soft-wraps, Vim doesn't work that well (I can't properly navigate soft-wrap lines, because there is a mismatch between what I see and what the editor understands as a line). If I do hard-wraps (new-lines), then the doc loses copy-paste portability to something like Docs.
Anyone know how to solve this?
As for copying to other formats, I stick to 80-character line length limit, so when I need to copy markdown text somewhere else I simply copy it from a rendered markdown document.
[0] https://vim.fandom.com/wiki/Move_cursor_by_display_lines_whe...