LoginSignup
24
17

More than 5 years have passed since last update.

vimでファイルを行数指定で開く

Last updated at Posted at 2013-11-28

エラーログやknown_hostsで行数を指定されたとき、ファイルを開いてから
指定行まで移動することがあるけど、行指定で開くことも可能

$ vim +864 ~/.ssh/known_hosts

-cでも良い

$ vim -c 864 ~/.ssh/known_hosts
24
17
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
24
17