The vi / vim text editor supports running any : command using the following syntax:
To open file and go to line number 546, enter:
vi +commandHere fileName
vi +/searchTermHere fileName
vi +/LineNumberHere fileName
vim +/LineNumberHere fileName
$ vim +546 functions
Sample outputs:
To open file and go to function called killproc(), enter:
$ vim +/killproc functions
Sample outputs:
No comments:
Post a Comment