Suppose if you want to open multiple files in Vi editor than do the following commands
CTRL + W + s - That means it will open the same file(whatever file you opened currently for example if you open one file currently) again and the window split into Horizontally.
CTRL + W + v - That means it will open the same file in vertical manner.
After that if you want to open the new file on splinted window than do the following commands
:e <path of the file name> - It will open new file whatever you mentioned in the path.
Switch between multiple files:
ctrl + w + w - means it will go to next file(next tab). If you keep on pressing, you can easilly navigate which file you want to work.
ctrl+w+(h j k l) - It means it will navigate through you desired position either LEFT DOWN UP RIGHT manner.
How to close the opened multiple files
ctrl - w - o - It means it will close all windows other than current file(cursor located/pointing file).
ctrl - w - c - It means it will close only current window file not rest of them.
CTRL + W + v - That means it will open the same file in vertical manner.
After that if you want to open the new file on splinted window than do the following commands
:e <path of the file name> - It will open new file whatever you mentioned in the path.
Switch between multiple files:
ctrl + w + w - means it will go to next file(next tab). If you keep on pressing, you can easilly navigate which file you want to work.
ctrl+w+(h j k l) - It means it will navigate through you desired position either LEFT DOWN UP RIGHT manner.
How to close the opened multiple files
ctrl - w - o - It means it will close all windows other than current file(cursor located/pointing file).
ctrl - w - c - It means it will close only current window file not rest of them.
No comments :
Post a Comment