开发者

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

To start at a specific line I would use:

$ vim FILE +开发者_JS百科LINE

But what parameter needs to be passed to vim to position the cursor in a certain column of this line?


One way to do that would be:

vim "+call cursor(<LINE>, <COLUMN>)"

For completeness this is another way:

vim "+normal <LINE>G<COLUMN>|"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜