preservim / vim-markdown

Markdown Vim Mode
4.69k stars 524 forks source link

is there any possible to indent `#` (shell comments) inside the code block via `>>` #645

Open marslo opened 1 year ago

marslo commented 1 year ago

Normally I'm using >> to indent links, and it not work for comments in shell code block. i.e.:

sample scenario:

  ```bash
  |# sample code
  ^
  |
 cursor here, and type `>>`
  ...

I was tried to modified the indent/markdown.vim as below, but still no lucky :

62     elseif s:IsHeaderLine(cline) && !s:IsMkdCode(v:lnum)
63        return ind

so I have to ctrl + v for code block move, it's really inconvenient.

details: vim-markdown-indent