VanDyke Software



Mouse support for vi, vim, and emacs in SecureCRT®

If supported by the remote application, the mouse can be used to position the SecureCRT terminal emulator cursor within the emulation window. Using the mouse with remote applications such as vi/vim or emacs requires SecureCRT to be configured with the appropriate emulation settings to convince the remote editor/application that it should send Xterm escape sequences for mouse control.

  • On the Terminal / Emulation page of the SecureCRT Session Options dialog, set the emulation to Xterm.
  • Make sure the value of the Terminal type option in the Terminal / Emulation / Advanced category is not enabled.
  • If you made the above changes while you were already connected to the remote machine, reconnect to the remote machine in order for the remote system to be made aware of the current terminal configuration.

Once you have configured SecureCRT as described, you will need to set the corresponding mouse option within the remote application/editor.

For vi/vim, enter command mode by pressing the ESC key. Enter the following command:

:set mouse=a

For emacs, enter command mode by pressing Meta/ALT+X. Enter the following command:


With mouse mode enabled, you can click with the mouse and position the cursor instead of using the arrow keys. You can also select text with the mouse, if supported by the remote application.