LoginSignup
16
14

More than 5 years have passed since last update.

Vimで入力モードにいるまま簡単な計算をして結果を入力

Posted at

入力モードにいるときに<Ctrl-r>=3*15<CR>と入力してみてください。(Ctrlrを同時押ししたあとに=を入力。その後の数字も順に入力。CREnterのことです。)

上記例では3 * 15の結果がテキスト中に入力されると思います。

四則演算や余り計算ができますので、簡単な計算だけならVimで済んでしまいますね!!

16
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
14