Skip to content

Commit

Permalink
カーソル上のメッセージを仮ハイライト(先頭メッセージは無視)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamecha committed Nov 28, 2023
1 parent 413b228 commit b7c321b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoload/helper.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ function! helper#define_highlight() abort
highlight! VtraQUserName ctermfg=lightgray guifg=lightgray cterm=bold
highlight! VtraQScreenName ctermfg=lightmagenta guifg=lightmagenta cterm=bold
highlight! link VtraQQuote Comment
highlight! link VtraQMessage Keyword
endfunction
2 changes: 2 additions & 0 deletions ftplugin/traqvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ augroup traqvim
\ if &ft == 'traqvim' |
\ call traqvim#redraw_recursive(winlayout()) |
\ endif
autocmd CursorMoved *
\ :match VtraQMessage '\v^─*%(─%#|%#─)─*\n%(%(.*[^─].*|)\n)+─+$|^─+\n%(%(.*[^─].*|)\n)+─*%(─%#|%#─)─*$|^─+\n%(%(.*[^─].*|)\n)*%(.*[^─].*%#.*|.*%#.*[^─].*|%#)\n%(%(.*[^─].*|)\n)*─+$'
augroup END

0 comments on commit b7c321b

Please sign in to comment.