Danh mục chính với các thẻ có thể được thực hiện thông qua các lệnh vi sau đây: thẻ tên ở vị trí con trỏ, nhìn nó trong file tag (s) và điều hướng đến nó, tương tự như: lệnh ta cũ. Lệnh này cũng nhớ các tập tin hiện tại và vị trí trên các ngăn xếp thẻ. Các lệnh sau đây sử dụng các ngăn xếp thẻ để trở lại vị trí trước đó. | Learning the vi editor Print version - Wikibooks http w title Learning_the. Navigation to tags can be done via the following vi command Take the tag-name at the cursor position look it up in the tag file s and navigate to it similar to the ta ex command. The command also remembers the current file and position on the tag stack. The following command uses the tag stack to go back to the previous position. Older vi s don t have it implemented T Get the previous position and file from the tag stack and return to it. The data is removed from the file. Command Line Vi can also be started with a tag name instead of a file name. See the -t command line option. Shell escape While one is working in vi there might arise a need to run another operating system command. In these modern days this is not a big issue. One can open another terminal window and do as pleased. However this is not necessary when working with vi. Vi like many of the older interactive Unix tools contains features to run operating system commands or start a command line interpreter shell from within the editor. This dates back to the times when there were no graphical user interfaces and an editor like vi would take up the complete screen of the terminal a real terminal of course not a terminal emulation . Being able to run commands from vi spares one the need to first quit the editor just to look something up . in a manual page. In addition vi provides features to insert the text output of other commands directly into the text under editing. Ex Commands The editor commands to run another command from within vi are in fact implemented as ex commands. That is they start with the familiar in command mode. To execute one command from within vi one would type command CR CR I At the end of the command one has to hit Return the second CR shown above to go back to vi. Vi then repaints the screen and continues where editing was left. In order to repeat the last .