As already pointed out, there are no ways to map <C-S-A> differently from <C-A>.
However, using tools like autokey (for linux & windows) or autohotkey (for windows), you can remap <C-S-A> to send a different key-stroke(s) for specific applications.
e.g. On my system, I have this setting in autokey:
$ cat ~/.config/autokey/data/gnome-terminal/ctrlshifta-gnome-terminal.py
#ctrl+shift+a sends '<S-F1>a'
keyboard.send_keys("<shift>+<f1>a") # Note that `f` in `f1` needs to be in lower case.
Assign it these properties:
- keyboard-shortcut as
ctrl+shift+a
- window class:
gnome-terminal-server.Gnome-terminal
Then your ~/.vimrc can create mapping for <S-F1>a to do whatever you want.
Autohotkey variation:
; Conditional hotkeys, only for vcxsrv/x.
; used mainly for gnome/mate-terminal running under wsl or ssh+x
#HotIf WinActive("ahk_class vcxsrv/x X rl")
^+K:: Send "+{F1}k"
; in vim, remap <S-F1>k for something you want. I have <C-k> for comment and <C-S-K> for uncomment.
#HotIf
Notes:
- I have used
<S-F1> as kind of leader key for detecting <C-S>. This was because my terminal did not accept <F13>-<F37> etc keys. If your application supports it, (gvim does I think) using those keys is recommended.
- I mainly
vim in gnome-terminal. So I used window class = gnome-terminal-server.Gnome-terminal as filter. Modify it to use gvim if you want. autokey supports a button for capturing any other window's properties like class/title.
modifyOtherKeysfeature it's possible by default, see key bindings - How to map <C-i> separate from <Tab>? - Vi and Vim Stack Exchange -- and nowadays gVim supports this by default as well.