物置き

暗記シート的にVimを使う

下記のようにシンタックスを設定する。

syn match hideBlock /\[.\{-}\]/ transparent contains=hideText
syn match hideText /[^\[\]]*/ contained
syn match hideText /\^\[\\{-}]/hs=s+1,he=e-1 containedin=ALL
highlight link hideText Ignore

すると、[]で括られたテキストが非表示になる。*1

選択すると非表示になっている部分が表示されるので、英単語を覚える時の暗記シート的にVimを活用することができる!*2

ということで中高生はみんなVimを使えばいいと思います。

さらに

こんな感じでマッピングしておけば、表示/非表示も気軽にできて勉強がはかどるかも!

function! s:toggleHide()
  if exists('b:synhideText')==0
    syn match hideBlock /\[.\{-}\]/ transparent contains=hideText
    syn match hideText /[^\[\]]*/ contained
    syn match hideText /\^\[\\{-}]/hs=s+1,he=e-1
    let b:synhideText=1
  else
    syn clear hideBlock hideText
    syn clear hideText
    unlet b:synhideText
  endif
  if synIDattr(synIDtrans(hlID('hideText')), 'name') != 'Ignore'
    hi link hideText Ignore
  endif
endfunction
noremap  hi :call toggleHide()

(hiで表示/非表示を切り替え)

*1:注意:既存のファイルタイプにこれを設定する際、[...]という構文パターンがぶつかるとうまく非表示にならない場合がある

*2:カラースキームによっては見づらいこともあるけど