The commands for vim

less than 1 minute read

Useful short command for VIM

% Open a new file in netrw’s current directory x View file with an associated program X Execute filename under cursor via |system()|

v Enter the file/directory under the cursor in a new browser window. A vertical split is used.

U Change to subsequently-visited directory u Change to recently-visited directory

t Enter the file/directory under the cursor in a new tab

s Select sorting style: by name, time, or gilr size r Reverse sorting order p Preview the file P Browse in the previously used window

O obtain a file specified by cursor o Enter the file/directory under the cursor in a new brower window. A horizontal split is used

d Make a directory D Attempt to remove the file/directory

C Setting the editing windows

cd Make browsing directory the current directory

Tags:

Categories:

Updated: