浏览代码

Moved mdvimb to a standalone script (local, so far)

Get current version at https://netvor.info/scripts/mdvimb
Alois Mahdal 6 年前
父节点
当前提交
7b6ebd31bf
共有 1 个文件被更改,包括 2 次插入12 次删除
  1. 2
    12
      dotfiles/bash/main.bashrc

+ 2
- 12
dotfiles/bash/main.bashrc 查看文件

@@ -258,18 +258,6 @@ fixnl() {
258 258
     rm "$cache"
259 259
 }
260 260
 
261
-mdvimb() {
262
-    #
263
-    # Open Markdown file in Vimb (no junk)
264
-    #
265
-    local file=$1; shift
266
-    case $file in
267
-        "") Markdown | vimb - "$@" ;;
268
-        -)  Markdown | vimb - "$@" ;;
269
-        *)  Markdown < "$file" | vimb - "$@"
270
-    esac
271
-}
272
-
273 261
 nlfor() {
274 262
     #
275 263
     # Replace $1 (or blank space) with newlines and fix final newline
@@ -507,6 +495,8 @@ export LESS=' -R '
507 495
 export PRETTY=color
508 496
 export PRETTY_DEBUG_EXCLUDE=inigrep
509 497
 
498
+export MDVIMB__CONVERTER=commonmark
499
+
510 500
 #shellcheck disable=SC2034
511 501
 {
512 502
     GIT_PS1_SHOWDIRTYSTATE=true