當我們處於可視模式時,我們必須按'S'來包圍所選文本。如何在tpope/vim-surround中將'S'更改爲's'VIM
我怎樣才能「S」更改爲「S」在tpope/vim-surround plugin
當我們處於可視模式時,我們必須按'S'來包圍所選文本。如何在tpope/vim-surround中將'S'更改爲's'VIM
我怎樣才能「S」更改爲「S」在tpope/vim-surround plugin
看看這裏:https://github.com/tpope/vim-surround/blob/master/plugin/surround.vim
所以一目瞭然,它看起來像所有的映射單獨製成,這取決於使用情況。
你可以覆蓋你的.vimrc
。請注意0是「替代字符」的默認vim映射。
您可以通過發行:map S
找出到底是什麼映射到S
,然後將此命令綁定到任何你喜歡的。其映射到s
一個下面的行添加到您的.vimrc
xmap s <Plug>VSurround
plus1非常感謝您的回覆,它對我有很大的幫助。對不起,@guessimtoolate較早發佈。 – whitesiroi
plust1謝謝您的回覆,它有很大幫助。 – whitesiroi