看板 Linux 關於我們 聯絡資訊
不好意思,因為 editor 版大部分都是 vim 的文章,所以來這邊碰碰運氣。 我已在網路上找過和在國外論壇上發問過,不過沒有得到解決的方法。 我的問題,當我想用 (global-set-key (kbd "C-s") 'save-buffer) (global-set-key (kbd "C-S-s") 'write-file) 時,當我按下 control+shift+s 時,總是沒有作用。 另外一個例子是, (global-set-key [(control shift right)] 'other-window) and (global-set-key [(control shift left)] 'other-window) (不是同時定義,是分開來的,一次一次試) 會有作用,但 (global-set-key [(control shift up)] 'other-window) and (global-set-key [(control shift down)] 'other-window) 我感覺好像是在我電腦,control + shift + 某些鍵 其實等於 control + 某些鍵, (比如說 s, up, down) ,但不是全部都這樣 (例如 right 和 left) 我用 C-q 去找 control + shift + up ,會沒有反應。( down 也是) control + shift + left 得到 ^[[1;6D control + shift + right 得到 ^[[1;6C 我在網路上看到有人這樣定 (存檔那部分),所以我想知道這是我電腦的問題嗎? 如果不是,問題出在哪邊呢?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 80.119.77.240
imo2:如果不適合在這發問此類問題,我在刪除 01/08 01:58
benqm300:不會不適合阿,大多是vim文章,但是還是編輯器咩。 01/08 12:46
dyoll:try ((global-set-key (kbd "C-S") 'write-file) 01/08 19:45
damon98:Try this (global-set-key "\C-S" 'write-file) 07/09 10:41