I am having problems understanding how Vim commands are supposed to be executed as keyboard actions. This is a topic I don’t see being discussed often. Some examples are:
<s-tab>
I believe this is s + tab but I don’t get the expected results.
<c-k>
I believe this is ctrl + k.
<C-k>
I sometimes see uppercase c but what is the difference?
And, inside of a Vim .vimrc file:
noremap <D-M-Left> :tabprevious<cr>
noremap <D-M-Right> :tabnext<cr>
nnoremap <c-j> <c-w>j
map <D-1> 1gt
My questions are:
- What does the case of a letter have to do with the command?
- Do the
"<"">"braces represent any action? - Does the
"-"dash represent any action?
<c-k>and<C-k>mean the same thing. By the way,<sis Shift.<..>in this context is for Control/Shift key combinations. It can have a different meaning in other contexts such as search/replace.There are other special keys as well such as
<CR>for Return/Enter,<Tab>for Tab, etc. They are usually intuitive and Vim is pretty flexible in what it will accept for these, especially in terms of case.