FG
💻 Software

How can I emulate key presses on Vim startup?

Fresh7 days ago
Mar 15, 20265385 views
Confidence Score0%
0%

Problem

When I run vim, the NerdTree plugin opens a project explorer. I achieved this by adding the following line to my file: It opens two buffers but unfortunately I need to press each time because the active buffer is the left one, where the NerdTree is located. How can I make vim emulate these key pres…

Error Output

autocmd VimEnter * NERDTree

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I emulate key presses on Vim startup?

Low Risk

There are a couple of ways to give Vim keypresses in a command. The general way is to use the command, which in this case would be where the command is needed to expand the control characters. For normal commands that begin with Ctrl-W, however, the…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment