VIM Editor's tips

Enter the command

 vi -t type name, the structure or function names

 

The system will find the appropriate object, the default is the current directory tags search, for example, we're looking stat structure,

Enter vi -t stat

Then press q

Exit Select, enter an option, I chose 3

                            Procedure : vi -t stat 

                                       Press q to exit 

                                       Choice number (<Enter> cancels):

                                           Input 3

If the nested structure occurs, i.e., the structure has a structure, move cursor to the structure

         Hold down ctrl +] key combination jumps definition of a structure,

         Key combination ctrl + t is returned.

         At this point, we can use this method to query FILE,

         vi -t FILE end up

 

vi full name: Visual interface

    Enter at the command line mode? And the string you want to find  "string"

?string<Enter>

Press the SPACE key, a turning back B forwardly to turn a key

 

Execute command in line mode:

:!command  

例:  !ls  /home

Show Line Numbers:

         set nu (can enter visual display line numbers)

Guess you like

Origin www.cnblogs.com/xiaosanxian/p/11106313.html