Skip to main content Link Menu Expand (external link) Document Search Copy Copied

存檔

nnoremap <S-Tab> :w<CR>
inoremap <S-Tab> <Esc>:w<CR>a

針對「Save」做了上面的設定。

不見得需要上面的設定,我有時候也還是會用「:」開頭的指令。

表格說明

按鍵 對應 說明 注意事項
Shift + Tab :w<CR> Write the whole buffer to the current file. Work on Normal Mode and Insert Mode

範例