Starting Vim at a certain position (line and column) of a file

后端 未结 1 1804
醉酒成梦
醉酒成梦 2021-02-06 22:18

To start at a specific line I would use:

$ vim FILE +LINE

But what parameter needs to be passed to vim to position the cursor in a certain colu

1条回答
  •  遇见更好的自我
    2021-02-06 23:11

    One way to do that would be:

    vim "+call cursor(, )"
    

    For completeness this is another way:

    vim "+normal G|"
    

    0 讨论(0)
提交回复
热议问题