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

后端 未结 1 1803
醉酒成梦
醉酒成梦 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(<LINE>, <COLUMN>)"
    

    For completeness this is another way:

    vim "+normal <LINE>G<COLUMN>|"
    
    0 讨论(0)
提交回复
热议问题