What does special character @ mean in gvim?

showkey

Register % contains the name of the current file, and register # contains the name of the alternate file. These registers allow the name of the current or alternate files to be displayed or inserted. The name, or full path, or directory containing the file can be used.

For example, in directory /abc the command vim def/my.txt would edit file /abc/def/my.txt. The following commands could be entered to display the information shown.

:echo @%    def/my.txt  directory/name of file     

I want to know what does @ mean here.

Ingo Karkat

The @ is a sigil, or special prefix attached to a variable name, that interprets a register like a variable. Other sigils are $ for environment variables, and & for Vim options.

:echo f  " prints variable named f
:echo @f " prints contents of register f
:echo $f " prints contents of environment variable f
:echo &fenc " prints the value of :set fileencodings?

Instead of @a, you could also use getreg('a'), which is the corresponding Vimscript function. The @ is just a convenient shortcut.

You'll find this in the help under :help expression-syntax (expr9)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What does special character @ mean in gvim?

From Dev

What does character mean in R?

From Dev

what does it mean to subtract a character from a character

From Dev

What does the "$#" special parameter mean in Bash?

From Java

What does ^M character mean in Vim?

From Dev

What does the "at" @ sign/symbol/character mean in Git?

From Dev

What does "be representable in execution character set" mean?

From Dev

What does the character '>' and '&' mean in bootstrap less modules?

From Dev

What does space character mean in a MySQL query?

From Dev

What does "be representable in execution character set" mean?

From Dev

what does it mean disallowed character in URI?

From Dev

What does the '|' (pipe character) mean in a regular expression?

From Dev

What does the newline character mean to computer

From Dev

What does the "|" character before a package name mean?

From Dev

What does "type" mean and is there is a special use for a question mark in ECMA 6?

From Dev

what is this special kind of character?

From Dev

what is this special kind of character?

From Dev

What does the dollar character in the brackets of a Perl subroutine mean?

From Dev

What does it mean that string and character comparisons in Swift are not locale-sensitive?

From Dev

what does a bang character mean in a windows bat file?

From Dev

What does the '|' (vertical bar) character mean in a Terminal command?

From Dev

What does the '|' (vertical bar) character mean in a Terminal command?

From Dev

What does the ^ character mean in sequences like ^X^I?

From Dev

what does a bang character mean in a windows bat file?

From Dev

Python2.7, what does the special characters mean in the utf-32 encoding output of a unicode string?

From Dev

What does Windows mean by a device that is "on the device path for a special file (such as the paging file, hibernate file, or crash dump file)"?

From Dev

What does "++=" mean in Scala

From Java

What does "is { }" mean?

From Dev

What does "%&" mean in Clojure?

Related Related

  1. 1

    What does special character @ mean in gvim?

  2. 2

    What does character mean in R?

  3. 3

    what does it mean to subtract a character from a character

  4. 4

    What does the "$#" special parameter mean in Bash?

  5. 5

    What does ^M character mean in Vim?

  6. 6

    What does the "at" @ sign/symbol/character mean in Git?

  7. 7

    What does "be representable in execution character set" mean?

  8. 8

    What does the character '>' and '&' mean in bootstrap less modules?

  9. 9

    What does space character mean in a MySQL query?

  10. 10

    What does "be representable in execution character set" mean?

  11. 11

    what does it mean disallowed character in URI?

  12. 12

    What does the '|' (pipe character) mean in a regular expression?

  13. 13

    What does the newline character mean to computer

  14. 14

    What does the "|" character before a package name mean?

  15. 15

    What does "type" mean and is there is a special use for a question mark in ECMA 6?

  16. 16

    what is this special kind of character?

  17. 17

    what is this special kind of character?

  18. 18

    What does the dollar character in the brackets of a Perl subroutine mean?

  19. 19

    What does it mean that string and character comparisons in Swift are not locale-sensitive?

  20. 20

    what does a bang character mean in a windows bat file?

  21. 21

    What does the '|' (vertical bar) character mean in a Terminal command?

  22. 22

    What does the '|' (vertical bar) character mean in a Terminal command?

  23. 23

    What does the ^ character mean in sequences like ^X^I?

  24. 24

    what does a bang character mean in a windows bat file?

  25. 25

    Python2.7, what does the special characters mean in the utf-32 encoding output of a unicode string?

  26. 26

    What does Windows mean by a device that is "on the device path for a special file (such as the paging file, hibernate file, or crash dump file)"?

  27. 27

    What does "++=" mean in Scala

  28. 28

    What does "is { }" mean?

  29. 29

    What does "%&" mean in Clojure?

HotTag

Archive