Skip to content

Commit

Permalink
keymap/vi: fix up f25a6e8
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Feb 22, 2021
1 parent f25a6e8 commit 462918d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions keymap/vi.sh
Expand Up @@ -367,12 +367,12 @@ function ble/keymap:vi/script/get-mode {

# /[nvV^VsS^S]?/
case $kmap:${_ble_edit_mark_active%+} in
(vi_xmap:vi_line) mode=$mode'v' ;;
(vi_xmap:vi_block)mode=$mode'V' ;;
(vi_xmap:*) mode=$mode$'\x16' ;; # C-v
(vi_smap:vi_line) mode=$mode's' ;;
(vi_smap:vi_block)mode=$mode'S' ;;
(vi_smap:*) mode=$mode$'\x13' ;; # C-s
(vi_xmap:vi_line) mode=$mode'V' ;;
(vi_xmap:vi_block)mode=$mode$'\x16' ;; # C-v
(vi_xmap:*) mode=$mode'v' ;;
(vi_smap:vi_line) mode=$mode'S' ;;
(vi_smap:vi_block)mode=$mode$'\x13' ;; # C-s
(vi_smap:*) mode=$mode's' ;;
(vi_[no]map:*) mode=$mode'n' ;;
(vi_cmap:*) mode=$mode'c' ;;
(vi_imap:*) ;;
Expand Down
5 changes: 4 additions & 1 deletion memo/D1488.vim-mode-in-status.bash
Expand Up @@ -32,7 +32,10 @@ function 0neGal/set-up-status-line {
esac
}

bleopt prompt_status_line='\q{0neGal/currentmode}'
# In this example, we put the mode string, date and time, and the
# current working directory in the status line.
bleopt prompt_status_line='\q{0neGal/currentmode} \D{%F %H:%M} \e[96m\w\e[m'
#bleopt prompt_status_line='\r\e[$((COLUMNS-17))C\D{%F %H:%M}\r\q{0neGal/currentmode} \e[96m\w\e[m'

}
blehook/eval-after-load keymap_vi 0neGal/set-up-status-line

0 comments on commit 462918d

Please sign in to comment.