4 ms·
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 simi
by arcturus17 4y ago
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?
- potas 4y agoYou 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). 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_when_wrapping https://vim.fandom.com/wiki/Move_cursor_by_display_lines_whe...