0

Below lines are part of my .vimrc.

map <C-S-p> :CtrlPCmdPalette<CR>  
let g:ctrlp_cmdpalette_execute = 1

It's working fine on normal vim,
but not working with neovim.

My neovim init file is correctly refer to .vimrc I think.

set runtimepath^=~/.vim_runtime+=~/.vim_runtime/after  
let &packpath=&runtimepath  
source ~/.vimrc
3
  • The <C-S-p> is equivalent to <C-p>. You could checked how it is mapped using :verbose map <C-p> Apr 11, 2022 at 9:59
  • Thanks. @VivianDeSmedt Apr 11, 2022 at 10:28
  • You are welcome :-) Apr 11, 2022 at 10:35

1 Answer 1

2

The <C-S-p> is equivalent to <C-p>.

You could checked how it is mapped using:

:verbose map <C-p>

It tells you to which sequence the <C-p> is mapped and which vim script is responsible.

5
  • Why is that equivalent? Can't I use 3 combinations like ctrl+shift+something, or ctrl+alt+something, alt+shift+something? Apr 11, 2022 at 10:39
  • This is better explained in this post: Can I map a Ctrl-Uppercase-Letter separately from a Ctrl-Lowercase-Letter. In short it is true only for the letter mapping. e.g.: you can map differently <C-S-F5> and <C-F5>. The reason is that, for historical reason, for the letters, the same code is sent to terminals. Apr 11, 2022 at 12:28
  • 1
    that is not universally true anymore. Vim e.g. supports modifyOtherKeys, which does allow to distinguish those keys. Apr 12, 2022 at 16:14
  • This is a pretty poor answer. Honestly. it doesn't even explain why or how to make Ctrl + Shift + p work. it just says "hurdur you're holding it wrong"
    – airtonix
    Oct 10, 2022 at 22:16
  • @airtonix, the definitive answer to this family of question do not exist yet. It depends on the OS, the executable console or GUI and the version and patch version of Neovim you are using. If it doesn't adresse your problem add more information and we will try to help you more specifically. Oct 11, 2022 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.