Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 6189

Doing an action when pressing a key. These are also called key mappings or mappings. For questions about default key bindings, as well as creating or redefining key bindings.

1 vote
1 answer
1k views

how to map <C-q> to :q!

I'm trying to make Ctrl+Q quit vim automatically without saving. I thought this would be a very simple task but am stumped on why it's not working... I have the two following mappings at the end of m …
alec's user avatar
  • 835
3 votes
Accepted

What is 3kA in this mapping?

Welcome to Vim :) In 3kA there are two "getting started with Vim" lessons in this, a path which @filbranden pointed you down, but to make this more explicit... #1 is "motions" and #2 is changing from …
alec's user avatar
  • 835