*editing.text - For Vim version 8.0
- Introduction
- Editing a file
- The argument list
- Writing
- Writing and quitting
- Dialogs
- The current directory
- Editing binary files
- Excryption
- Timestamps
- File Searching
keys | description | NOTE |
---|---|---|
:_% |
current file | |
:_# |
alternate file | :keepalt is used. |
:keepalt {cmd} , :keepa {cmd} |
execute {cmd} while keeping the current alternate file name |
commands invoked directly (e.g., with a function) may still set the alternate file name. |
CTRL-G ,:f ,:fi ,:file |
prints the current file name (as typed, unless the :cd was used), cursor position (unless the ruler option is set) and the file status |
see the shortmess option about how to make the message shorter |
:file! |
don't trunctate the name even when shortmess indicate this |
|
{count}CTRL-G |
prints the current file name with full path | if the count is higher than 1 the current buffer number is also given. |
g CTRL-G |
Prints the current position of the cursor if 5 ways: Column, Line, Word, Character, and Bytes | <Tab> or special character), both the real column and the screen comun are shown, separated with a dash.ruler option and the wordcount() function. |
{Visual}g CTRL-G |