Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing a file over a network: meaning of ~@k

Tags:

vim

I have showcmd set, and often when viewing (NOT editing) a file over a network, I observe the characters ~@k appearing in the showcmd position. This only happens when I move the cursor, and the cursor movement is visibly slow. I can overcome this using set eventignore=CursorMoved, so I assume the network file is being read while updating the foldtext, statusline or matching parentheses.

I am not sure why the file needs to be accessed so often (if indeed that is the case). Is there any way of disabling this behaviour without losing the CursorMoved actions?

It's a shame that a web search for ~@k is not possible!

like image 465
Prince Goulash Avatar asked Sep 05 '11 07:09

Prince Goulash


1 Answers

Are you using your arrow keys to move the cursor? From Vim's repeat.txt documentation:

The first character of a key code is 0x80 or 128, shown on the screen as "~@". The second one can be found in the list |key-notation|.

I'm guessing the 'k' is for key/keypad? If I scroll using my arrow keys, I see "~@k" in the showcmd field. If I scroll using hjkl, I see hjkl.

like image 144
Michael Wayne Avatar answered Nov 15 '22 10:11

Michael Wayne