Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know commands I've been typing?

Tags:

vim

vi

I'm using gVim and I would like to know if there is a way to see the commands I've been typing.

For example, when I pressed the visual mode (v) I've got message -- Visual --, but I don't know which letters I've been pressing so far.

Is there a way to permanent see which characters/commands I've typing?

like image 370
Gabriel Muñumel Avatar asked Mar 11 '12 15:03

Gabriel Muñumel


2 Answers

You can use this setting:

:set showcmd

Type :help 'showcmd' to read more.

like image 168
kev Avatar answered Nov 11 '22 20:11

kev


You could set this up:

alias vim="vim -W ~/.last_vim_session_key_pressed"

But this file is written only when you exit vim. You can source it with vim -s but beware, with vim gui versions you can have problems.

like image 2
Benoit Avatar answered Nov 11 '22 21:11

Benoit