How can I open vim with a particular line number at the top?

后端 未结 3 1161
难免孤独
难免孤独 2020-12-23 19:13

I know it is possible to have vim open a file at particular line number using this syntax:

vim +500 filename

However, I would like it to op

3条回答
  •  爱一瞬间的悲伤
    2020-12-23 20:04

    As an alternative (because I ended up here searching for it), if you want to have the syntax vim :, eg vim test.rb:45, you can use vim-fetch with Vundle:

    Plugin 'kopischke/vim-fetch'
    

提交回复
热议问题