Browse Source

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

Get current version at https://netvor.info/scripts/mdvimb
Alois Mahdal 6 years ago
parent
commit
7b6ebd31bf
1 changed files with 2 additions and 12 deletions
  1. 2
    12
      dotfiles/bash/main.bashrc

+ 2
- 12
dotfiles/bash/main.bashrc View File

258
     rm "$cache"
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
 nlfor() {
261
 nlfor() {
274
     #
262
     #
275
     # Replace $1 (or blank space) with newlines and fix final newline
263
     # Replace $1 (or blank space) with newlines and fix final newline
507
 export PRETTY=color
495
 export PRETTY=color
508
 export PRETTY_DEBUG_EXCLUDE=inigrep
496
 export PRETTY_DEBUG_EXCLUDE=inigrep
509
 
497
 
498
+export MDVIMB__CONVERTER=commonmark
499
+
510
 #shellcheck disable=SC2034
500
 #shellcheck disable=SC2034
511
 {
501
 {
512
     GIT_PS1_SHOWDIRTYSTATE=true
502
     GIT_PS1_SHOWDIRTYSTATE=true