mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:50:06 +08:00
review readme
This commit is contained in:
parent
5210d8a1d7
commit
8af6f587d0
@ -365,7 +365,7 @@ Name | Description
|
||||
|
||||
Key | Mode | Action
|
||||
----- |:----:| ------------------
|
||||
`<leader>`+`y` | Normal/visual | Copy selection to X11 clipboard ("+y)
|
||||
`<leader>`+`y` | visual | Copy selection to X11 clipboard ("+y)
|
||||
`<leader>`+`p` | Normal/visual | Paste selection from X11 clipboard ("+p)
|
||||
`Ctrl`+`f` | Normal | Smart page forward (C-f/C-d)
|
||||
`Ctrl`+`b` | Normal | Smart page backwards (C-b/C-u)
|
||||
@ -389,10 +389,10 @@ Key | Mode | Action
|
||||
|
||||
Key | Mode | Action
|
||||
----- |:----:| ------------------
|
||||
`<leader>`+`cd` | Normal | Switch to the root directory(vim-rooter)
|
||||
`<leader>`+`cd` | Normal | Switch to the directory of the open buffer
|
||||
`<leader>`+`w` | Normal/visual | Write (:w)
|
||||
`Ctrl`+`s` | _All_ | Write (:w)
|
||||
`W!!` | Command | Write as root
|
||||
`Ctrl`+`s` | Normal/visual/Command | Write (:w)
|
||||
`:w!!` | Command | Write as root (%!sudo tee > /dev/null %)
|
||||
|
||||
##### Editor UI
|
||||
|
||||
|
@ -276,8 +276,8 @@ function! SpaceVim#default#SetMappings() abort
|
||||
cnoremap <C-b> <Left>
|
||||
cnoremap <C-f> <Right>
|
||||
|
||||
" When pressing <leader>cd switch to the directory of the open buffer
|
||||
" map <Leader>cd :cd %:p:h<CR>:pwd<CR> "I use <Plug>RooterChangeToRootDirectory
|
||||
"When pressing <leader>cd switch to the directory of the open buffer
|
||||
map <Leader>cd :cd %:p:h<CR>:pwd<CR>
|
||||
|
||||
" Fast saving
|
||||
nnoremap <Leader>w :w<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user