TOOL » NEOVIM

Editing

Edit a file

CommandDescription
edit findEdit a file.
OptionDescription
+NOpen the file and move cursor to the specified line number.
+/searchOpen the file and jump to the first result of the search.

Argument list

Open files as arguments:

vim
:args notes/**/*.md

Argument navigation:

CommandDescription
arList arguments or define new argument list.
n NNext or previous argument.
fir laJump to first or last argument.
arguJump to argument NUM, defaults to current.

Write to file

CommandDescription
write updateWrite buffer contents to file, or only if there are changes.
saveasSave as

Current directory

Use pwd to get the current directory name.

CommandChange directory scope
cd chdGlobal
tcd tchTab only
lcd lchLocal (current window)

File searching

PathDescription
*File or folder name globbing. Ex: test*.py
**Folders globbing. Ex: src/**/file.py
%:hPath to the current directory.
scp://srv-name/Path to a remote file. Path defaults to home directory. Add one more / for absolute path.

When using globs, use Tab to auto-complete one entry, or C-a to auto-complete all available entries.