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>|"
精彩评论