From 8af6f587d08f4736e190ab39362934df55cadac8 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 3 Feb 2017 21:34:26 +0800 Subject: [PATCH] review readme --- README.md | 8 ++++---- autoload/SpaceVim/default.vim | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6e1042d65..b4a1f1239 100644 --- a/README.md +++ b/README.md @@ -365,7 +365,7 @@ Name | Description Key | Mode | Action ----- |:----:| ------------------ -``+`y` | Normal/visual | Copy selection to X11 clipboard ("+y) +``+`y` | visual | Copy selection to X11 clipboard ("+y) ``+`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 ----- |:----:| ------------------ -``+`cd` | Normal | Switch to the root directory(vim-rooter) +``+`cd` | Normal | Switch to the directory of the open buffer ``+`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 diff --git a/autoload/SpaceVim/default.vim b/autoload/SpaceVim/default.vim index 98a10d622..6031dc224 100644 --- a/autoload/SpaceVim/default.vim +++ b/autoload/SpaceVim/default.vim @@ -276,8 +276,8 @@ function! SpaceVim#default#SetMappings() abort cnoremap cnoremap - " When pressing cd switch to the directory of the open buffer - " map cd :cd %:p:h:pwd "I use RooterChangeToRootDirectory + "When pressing cd switch to the directory of the open buffer + map cd :cd %:p:h:pwd " Fast saving nnoremap w :w