1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:40:05 +08:00

Compare commits

..

No commits in common. "332214f846f8f70ff0d0ac752ce7a1a90c509824" and "7648ccb0b74502c2b4a29e77802e40bbc4061437" have entirely different histories.

9 changed files with 43 additions and 582 deletions

View File

@ -2401,258 +2401,6 @@ endfunction
" <Leader> q p | jump to previous item in quickfix list
" <
""
" @section Editing, usage-editing
" @parentsection usage
"
" @subsection Moving text
" >
" Key | Action
" ----------------- | -----------------------------
" > / Tab | Indent to right and re-select
" < / Shift-Tab | Indent to left and re-select
" Ctrl-Shift-Up | move lines up
" Ctrl-Shift-Down | move lines down
" <
" @subsection Code indentation
"
" The default indentation of code is 2, which is controlled by the option
" @section(options-default_indent).
" If you prefer to use 4 as code indentation. Just add the following snippet
" to the `[options]` section in the SpaceVim's configuration file:
" >
" [options]
" default_indent = 4
" <
" The `default_indent` option will be applied to vim's `&tabstop`,
" `&softtabstop` and `&shiftwidth` options. By default, when the user inserts
" a `<Tab>`, it will be expanded to spaces. This feature can be disabled by
" `expand_tab` option the `[options]` section:
" >
" [options]
" default_indent = 4
" expand_tab = true
" <
" @subsection Text manipulation commands
"
" Text related commands (start with `x`):
" >
" Key Bindings | Descriptions
" ---------------- | -------------------------------------------------------
" SPC x a # | align region at #
" SPC x a % | align region at %
" SPC x a & | align region at &
" SPC x a ( | align region at (
" SPC x a ) | align region at )
" SPC x a [ | align region at [
" SPC x a ] | align region at ]
" SPC x a { | align region at {
" SPC x a } | align region at }
" SPC x a , | align region at ,
" SPC x a . | align region at . (for numeric tables)
" SPC x a : | align region at :
" SPC x a ; | align region at ;
" SPC x a = | align region at =
" SPC x a ¦ | align region at ¦
" SPC x a <Bar> | align region at \|
" SPC x a SPC | align region at [SPC]
" SPC x a r | align region at user-specified regexp
" SPC x a o | align region at operators +-*/ etc
" SPC x c | count the number of chars/words/lines in the region
" SPC x d w | delete trailing whitespace
" SPC x d SPC | Delete all spaces and tabs around point
" SPC x g t | translate current word using Google Translate
" SPC x i c | change symbol style to lowerCamelCase
" SPC x i C | change symbol style to UpperCamelCase
" SPC x i i | cycle symbol naming styles (i to keep cycling)
" SPC x i - | change symbol style to kebab-case
" SPC x i k | change symbol style to kebab-case
" SPC x i _ | change symbol style to under_score
" SPC x i u | change symbol style to under_score
" SPC x i U | change symbol style to UP_CASE
" SPC x j c | set the justification to center
" SPC x j l | set the justification to left
" SPC x j r | set the justification to right
" SPC x J | move down a line of text (enter transient state)
" SPC x K | move up a line of text (enter transient state)
" SPC x l d | duplicate a line or region
" SPC x l r | reverse lines
" SPC x l s | sort lines (ignorecase)
" SPC x l S | sort lines (case-senstive)
" SPC x l u | uniquify lines (ignorecase)
" SPC x l U | uniquify lines (case-senstive)
" SPC x t c | swap (transpose) the current character with previous one
" SPC x t C | swap (transpose) the current character with next one
" SPC x t w | swap (transpose) the current word with previous one
" SPC x t W | swap (transpose) the current word with next one
" SPC x t l | swap (transpose) the current line with previous one
" SPC x t L | swap (transpose) the current line with next one
" SPC x u | lowercase text
" SPC x U | uppercase text
" SPC x ~ | toggle case text
" SPC x w c | count the words in the select region
" <
" @subsection Text insertion commands
"
" Text insertion commands (start with `i`):
" >
" Key bindings | Descriptions
" ------------ | ---------------------------------------------------------------------
" SPC i l l | insert lorem-ipsum list
" SPC i l p | insert lorem-ipsum paragraph
" SPC i l s | insert lorem-ipsum sentence
" SPC i p 1 | insert simple password
" SPC i p 2 | insert stronger password
" SPC i p 3 | insert password for paranoids
" SPC i p p | insert a phonetically easy password
" SPC i p n | insert a numerical password
" SPC i u | Search for Unicode characters and insert them into the active buffer.
" SPC i U 1 | insert UUIDv1 (use universal argument to insert with CID format)
" SPC i U 4 | insert UUIDv4 (use universal argument to insert with CID format)
" SPC i U U | insert UUIDv4 (use universal argument to insert with CID format)
" >
" NOTE: You can specify the number of password characters using a prefix
" argument (i.e. `10 SPC i p 1` will generate a 10 character simple password).
"
" @subsection Expand regions of text
"
" Key bindings available in visual mode:
" >
" Key bindings | Descriptions
" ------------ | -------------------------------------------------
" v | expand visual selection of text to larger region
" V | shrink visual selection of text to smaller region
" <
" @subsection Increase/Decrease numbers
" >
" Key Bindings | Descriptions
" ------------ | ------------------------------------------------
" SPC n + | increase the number and initiate transient state
" SPC n - | decrease the number and initiate transient state
" <
" In transient state:
" >
" Key Bindings | Descriptions
" ------------- | -------------------------------------------
" + | increase the number under the cursor by one
" - | decrease the number under the cursor by one
" Any other key | leave the transient state
" <
" Tip: You can set the step (1 by default) by using a prefix argument
" (i.e. `10 SPC n +` will add 10 to the number under the cursor).
"
" @subsection Copy and paste
"
" If `has('unnamedplus')`, the register used by `<Leader> y` is `+`,
" otherwise it is `*`. Read `:h registers` for more info about other registers.
" >
" Key | Descriptions
" ------------ | --------------------------------------------
" <Leader> y | Copy selected text to system clipboard
" <Leader> p | Paste text from system clipboard after here
" <Leader> P | Paste text from system clipboard before here
" <Leader> Y | Copy selected text to pastebin
" <
" To change the command of clipboard, you need to use bootstrap after function:
" >
" " for example, to use tmux clipboard:
" function! myspacevim#after() abort
" call clipboard#set('tmux load-buffer -', 'tmux save-buffer -')
" endfunction
" <
"
" within the runtime log (`SPC h L`), the clipboard command will be displayed:
"
" >
" [ clipboard ] [11:00:35] [670.246] [ Info ] yank_cmd is:'tmux load-buffer -'
" [ clipboard ] [11:00:35] [670.246] [ Info ] paste_cmd is:'tmux save-buffer -'
" >
"
" The `<Leader> Y` key binding will copy selected text to a pastebin server.
" It requires `curl` in your `$PATH`. The default command is:
" >
" curl -s -F "content=<-" http://dpaste.com/api/v2/
" <
" This command will read stdin and copy it to dpaste server. It is same as:
" >
" echo "selected text" | curl -s -F "content=<-" http://dpaste.com/api/v2/
" <
"
" @subsection Commenting
"
" Comments are handled by nerdcommenter, its bound to the following keys.
" >
" Key Bindings | Descriptions
" ------------ | -------------------------------------------------------
" SPC ; | comment operator
" SPC c a | switch to the alternative set of delimiters
" SPC c h | hide/show comments
" SPC c l | toggle line comments
" SPC c L | comment lines
" SPC c u | uncomment lines
" SPC c p | toggle paragraph comments
" SPC c P | comment paragraphs
" SPC c s | comment with pretty layout
" SPC c t | toggle comment on line
" SPC c T | comment the line under the cursor
" SPC c y | toggle comment and yank
" SPC c Y | yank and comment
" SPC c $ | comment current line from cursor to the end of the line
" <
" Tip: `SPC ;` will start operator mode, in this mode, you can use a motion
" command to comment lines. For example, `SPC ; 4 j` will comment the current
" line and the following 4 lines.
"
" @subsection Undo tree
"
" Undo tree visualizes the undo history and makes it easier to browse
" and switch between different undo branches. The default key binding is `F7`.
" If `+python` or `+python3` is enabled, mundo will be loaded,
" otherwise undotree will be loaded.
"
" Key bindings within undo tree windows:
" >
" key bindings | description
" --------------- | -------------------
" G | move bottom
" J | move older write
" K | move newer write
" N | previous match
" P | play to
" <2-LeftMouse> | mouse click
" / | search
" <CR> | preview
" d | diff
" <down> | move older
" <up> | move newer
" i | toggle inline
" j | move older
" k | move newer
" n | next match
" o | preview
" p | diff current buffer
" q | quit
" r | diff
" gg | move top
" ? | toggle help
" <
" @subsection Multi-Encodings
"
" SpaceVim uses utf-8 as the default encoding. There are four options for this:
"
" 1. fileencodings (fencs): ucs-bom,utf-8,default,latin1
" 2. fileencoding (fenc): utf-8
" 3. encoding (enc): utf-8
" 4. termencoding (tenc): utf-8 (only supported in Vim)
"
" To fix a messy display: `SPC e a` is the mapping to auto detect the file
" encoding. After detecting the file encoding, you can run the command below
" to fix it:
" >
" set enc=utf-8
" write
" <
""
" @section FAQ, faq
" This is a list of the frequently asked questions about SpaceVim.

View File

@ -54,12 +54,7 @@ function! SpaceVim#layers#checkers#plugins() abort
endif
if g:spacevim_lint_engine ==# 'neomake'
call add(plugins, [g:_spacevim_root_dir . 'bundle/neomake', {
\ 'merged' : 0,
\ 'loadconf' : 1,
\ 'on_cmd' : ['Neomake'],
\ 'on_func' : ['neomake#GetCurrentErrorMsg', 'neomake#statusline#LoclistCounts'],
\ 'loadconf_before' : 1}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/neomake', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}])
elseif g:spacevim_lint_engine ==# 'ale'
call add(plugins, [g:_spacevim_root_dir . 'bundle/ale', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}])
elseif g:spacevim_lint_engine ==# 'syntastic'

View File

@ -174,7 +174,7 @@ function! SpaceVim#layers#core#plugins() abort
endif
if has('timers') && has('float')
" vim-smoothie needs +timers and +float
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-smoothie', {'merged': 0, 'on_event' : 'BufReadPost'}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-smoothie', {'merged': 0}])
endif
if g:spacevim_filemanager ==# 'nerdtree'
call add(plugins, [g:_spacevim_root_dir . 'bundle/nerdtree', { 'merged' : 0,
@ -209,30 +209,18 @@ function! SpaceVim#layers#core#plugins() abort
endif
if !g:spacevim_vimcompatible
call add(plugins, [g:_spacevim_root_dir . 'bundle/clever-f.vim', {'merged' : 0, 'on_map': '<Plug>(clever-f-'}])
nmap f <Plug>(clever-f-f)
xmap f <Plug>(clever-f-f)
omap f <Plug>(clever-f-f)
nmap F <Plug>(clever-f-F)
xmap F <Plug>(clever-f-F)
omap F <Plug>(clever-f-F)
nmap t <Plug>(clever-f-t)
xmap t <Plug>(clever-f-t)
omap t <Plug>(clever-f-t)
nmap T <Plug>(clever-f-T)
xmap T <Plug>(clever-f-T)
omap T <Plug>(clever-f-T)
call add(plugins, [g:_spacevim_root_dir . 'bundle/clever-f.vim', {'merged' : 0}])
endif
call add(plugins, [g:_spacevim_root_dir . 'bundle/nerdcommenter', { 'loadconf' : 1, 'merged' : 0}])
if exists('*matchaddpos')
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-matchup', {'merged' : 0, 'on_event' : 'BufReadPost'}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-matchup', {'merged' : 0}])
endif
call add(plugins, [g:_spacevim_root_dir . 'bundle/gruvbox', {'loadconf' : 1, 'merged' : 0}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-clipboard', {'merged' : 0}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/nvim-if-lua-compat', {'merged' : 0}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/open-browser.vim', {
\ 'merged' : 0, 'loadconf' : 1, 'on_cmd' : 'OpenBrowser',
\ 'merged' : 0, 'loadconf' : 1,
\}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-grepper' , { 'on_cmd' : 'Grepper',
\ 'loadconf' : 1} ])

View File

@ -101,7 +101,7 @@ function! SpaceVim#layers#edit#plugins() abort
let plugins = [
\ [g:_spacevim_root_dir . 'bundle/vim-repeat'],
\ [g:_spacevim_root_dir . 'bundle/vim-emoji'],
\ [g:_spacevim_root_dir . 'bundle/vim-grammarous', {'merged' : 0, 'on_cmd' : ['GrammarousCheck', 'GrammarousReset']}],
\ [g:_spacevim_root_dir . 'bundle/vim-grammarous', {'merged' : 0}],
\ [g:_spacevim_root_dir . 'bundle/vim-expand-region', { 'loadconf' : 1}],
\ [g:_spacevim_root_dir . 'bundle/vim-textobj-user'],
\ [g:_spacevim_root_dir . 'bundle/vim-textobj-indent'],
@ -111,7 +111,7 @@ function! SpaceVim#layers#edit#plugins() abort
\ [g:_spacevim_root_dir . 'bundle/wildfire.vim',{'on_map' : '<Plug>(wildfire-'}],
\ [g:_spacevim_root_dir . 'bundle/editorconfig-vim', { 'merged' : 0, 'if' : has('python') || has('python3')}],
\ [g:_spacevim_root_dir . 'bundle/vim-jplus', { 'on_map' : '<Plug>(jplus' }],
\ [g:_spacevim_root_dir . 'bundle/tabular', { 'merged' : 0, 'on_cmd' : ['Tabularize']}],
\ [g:_spacevim_root_dir . 'bundle/tabular', { 'merged' : 0}],
\ ['andrewradev/splitjoin.vim',{ 'on_cmd':['SplitjoinJoin', 'SplitjoinSplit'],'merged' : 0, 'loadconf' : 1}],
\ ]
if has('nvim-0.8.0')

View File

@ -71,10 +71,7 @@ function! SpaceVim#layers#lang#markdown#plugins() abort
let plugins = []
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-markdown',{ 'on_ft' : 'markdown'}])
call add(plugins, ['joker1007/vim-markdown-quote-syntax',{ 'on_ft' : 'markdown'}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-markdown-toc', {
\ 'merged' : 0,
\ 'on_cmd' :
\ ['GenTocGFM', 'GenTocGitLab', 'GenTocMarked', 'GenTocModeline', 'GenTocRedcarpet']}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-markdown-toc', {'merged' : 0}])
call add(plugins, ['iamcco/mathjax-support-for-mkdp',{ 'on_ft' : 'markdown'}])
call add(plugins, ['lvht/tagbar-markdown',{'merged' : 0}])
" check node package managers to ensure building of 2 plugins below

View File

@ -193,11 +193,11 @@ function! SpaceVim#layers#telescope#config() abort
endfunction
function! s:get_help_with_cursor_symbol() abort
exe 'Telescope help_tags default_text=' . expand('<cword>')
call v:lua.require('telescope.builtin').help_tags({ 'default_text' : expand('<cword>')})
endfunction
function! s:get_help(word) abort
exe 'Telescope help_tags default_text=' . a:word
call v:lua.require('telescope.builtin').help_tags({ 'default_text' : a:word})
endfunction
function! s:get_menu(menu, input) abort

View File

@ -248,19 +248,18 @@ CONTENTS *SpaceVim-contents*
147. unite........................................ |SpaceVim-layers-unite|
148. xmake........................................ |SpaceVim-layers-xmake|
7. Usage..................................................... |SpaceVim-usage|
1. Editing....................................... |SpaceVim-usage-editing|
2. Error handling......................... |SpaceVim-usage-error-handling|
3. File Tree................................... |SpaceVim-usage-file-tree|
4. Toggle UI................................... |SpaceVim-usage-toggle-ui|
5. alternate file......................... |SpaceVim-usage-alternate-file|
6. buffers-and-files................... |SpaceVim-usage-buffers-and-files|
7. command-line-mode................... |SpaceVim-usage-command-line-mode|
8. custom_plugins......................... |SpaceVim-usage-custom_plugins|
9. repl............................................. |SpaceVim-usage-repl|
10. search-and-replace................ |SpaceVim-usage-search-and-replace|
11. tasks.......................................... |SpaceVim-usage-tasks|
12. undo-tree................................... |SpaceVim-usage-undotree|
13. windows-and-tabs.................... |SpaceVim-usage-windows-and-tabs|
1. Error handling......................... |SpaceVim-usage-error-handling|
2. File Tree................................... |SpaceVim-usage-file-tree|
3. Toggle UI................................... |SpaceVim-usage-toggle-ui|
4. alternate file......................... |SpaceVim-usage-alternate-file|
5. buffers-and-files................... |SpaceVim-usage-buffers-and-files|
6. command-line-mode................... |SpaceVim-usage-command-line-mode|
7. custom_plugins......................... |SpaceVim-usage-custom_plugins|
8. repl............................................. |SpaceVim-usage-repl|
9. search-and-replace................. |SpaceVim-usage-search-and-replace|
10. tasks.......................................... |SpaceVim-usage-tasks|
11. undo-tree................................... |SpaceVim-usage-undotree|
12. windows-and-tabs.................... |SpaceVim-usage-windows-and-tabs|
8. Plugins................................................. |SpaceVim-plugins|
1. Mapping Guide......................... |SpaceVim-plugins-mapping-guide|
2. Symbol highlighter............... |SpaceVim-plugins-symbol-highlighter|
@ -6202,274 +6201,6 @@ USAGE *SpaceVim-usage*
General guide for using SpaceVim. Including layer configuration, bootstrap
function.
==============================================================================
EDITING *SpaceVim-usage-editing*
MOVING TEXT
>
Key | Action
----------------- | -----------------------------
> / Tab | Indent to right and re-select
< / Shift-Tab | Indent to left and re-select
Ctrl-Shift-Up | move lines up
Ctrl-Shift-Down | move lines down
<
CODE INDENTATION
The default indentation of code is 2, which is controlled by the option
|SpaceVim-options-default_indent|. If you prefer to use 4 as code indentation.
Just add the following snippet to the `[options]` section in the SpaceVim's
configuration file:
>
[options]
default_indent = 4
<
The `default_indent` option will be applied to vim's `&tabstop`,
`&softtabstop` and `&shiftwidth` options. By default, when the user inserts a
`<Tab>`, it will be expanded to spaces. This feature can be disabled by
`expand_tab` option the `[options]` section:
>
[options]
default_indent = 4
expand_tab = true
<
TEXT MANIPULATION COMMANDS
Text related commands (start with `x`):
>
Key Bindings | Descriptions
---------------- | -------------------------------------------------------
SPC x a # | align region at #
SPC x a % | align region at %
SPC x a & | align region at &
SPC x a ( | align region at (
SPC x a ) | align region at )
SPC x a [ | align region at [
SPC x a ] | align region at ]
SPC x a { | align region at {
SPC x a } | align region at }
SPC x a , | align region at ,
SPC x a . | align region at . (for numeric tables)
SPC x a : | align region at :
SPC x a ; | align region at ;
SPC x a = | align region at =
SPC x a ¦ | align region at ¦
SPC x a <Bar> | align region at \|
SPC x a SPC | align region at [SPC]
SPC x a r | align region at user-specified regexp
SPC x a o | align region at operators +-*/ etc
SPC x c | count the number of chars/words/lines in the region
SPC x d w | delete trailing whitespace
SPC x d SPC | Delete all spaces and tabs around point
SPC x g t | translate current word using Google Translate
SPC x i c | change symbol style to lowerCamelCase
SPC x i C | change symbol style to UpperCamelCase
SPC x i i | cycle symbol naming styles (i to keep cycling)
SPC x i - | change symbol style to kebab-case
SPC x i k | change symbol style to kebab-case
SPC x i _ | change symbol style to under_score
SPC x i u | change symbol style to under_score
SPC x i U | change symbol style to UP_CASE
SPC x j c | set the justification to center
SPC x j l | set the justification to left
SPC x j r | set the justification to right
SPC x J | move down a line of text (enter transient state)
SPC x K | move up a line of text (enter transient state)
SPC x l d | duplicate a line or region
SPC x l r | reverse lines
SPC x l s | sort lines (ignorecase)
SPC x l S | sort lines (case-senstive)
SPC x l u | uniquify lines (ignorecase)
SPC x l U | uniquify lines (case-senstive)
SPC x t c | swap (transpose) the current character with previous one
SPC x t C | swap (transpose) the current character with next one
SPC x t w | swap (transpose) the current word with previous one
SPC x t W | swap (transpose) the current word with next one
SPC x t l | swap (transpose) the current line with previous one
SPC x t L | swap (transpose) the current line with next one
SPC x u | lowercase text
SPC x U | uppercase text
SPC x ~ | toggle case text
SPC x w c | count the words in the select region
<
TEXT INSERTION COMMANDS
Text insertion commands (start with `i`):
>
Key bindings | Descriptions
------------ |
---------------------------------------------------------------------
SPC i l l | insert lorem-ipsum list
SPC i l p | insert lorem-ipsum paragraph
SPC i l s | insert lorem-ipsum sentence
SPC i p 1 | insert simple password
SPC i p 2 | insert stronger password
SPC i p 3 | insert password for paranoids
SPC i p p | insert a phonetically easy password
SPC i p n | insert a numerical password
SPC i u | Search for Unicode characters and insert them into the active
buffer.
SPC i U 1 | insert UUIDv1 (use universal argument to insert with CID
format)
SPC i U 4 | insert UUIDv4 (use universal argument to insert with CID
format)
SPC i U U | insert UUIDv4 (use universal argument to insert with CID
format)
<
>
<
NOTE: You can specify the number of password characters using a prefix
argument (i.e. `10 SPC i p 1` will generate a 10 character simple password).
EXPAND REGIONS OF TEXT
Key bindings available in visual mode:
>
Key bindings | Descriptions
------------ | -------------------------------------------------
v | expand visual selection of text to larger region
V | shrink visual selection of text to smaller region
<
INCREASE/DECREASE NUMBERS
>
Key Bindings | Descriptions
------------ | ------------------------------------------------
SPC n + | increase the number and initiate transient state
SPC n - | decrease the number and initiate transient state
<
In transient state:
>
Key Bindings | Descriptions
------------- | -------------------------------------------
+ | increase the number under the cursor by one
- | decrease the number under the cursor by one
Any other key | leave the transient state
<
Tip: You can set the step (1 by default) by using a prefix argument (i.e. `10
SPC n +` will add 10 to the number under the cursor).
COPY AND PASTE
If `has('unnamedplus')`, the register used by `<Leader> y` is `+`, otherwise
it is `*`. Read `:h registers` for more info about other registers.
>
Key | Descriptions
------------ | --------------------------------------------
<Leader> y | Copy selected text to system clipboard
<Leader> p | Paste text from system clipboard after here
<Leader> P | Paste text from system clipboard before here
<Leader> Y | Copy selected text to pastebin
<
To change the command of clipboard, you need to use bootstrap after function:
>
" for example, to use tmux clipboard:
function! myspacevim#after() abort
call clipboard#set('tmux load-buffer -', 'tmux save-buffer -')
endfunction
<
within the runtime log (`SPC h L`), the clipboard command will be displayed:
>
[ clipboard ] [11:00:35] [670.246] [ Info ] yank_cmd is:'tmux load-buffer
-'
[ clipboard ] [11:00:35] [670.246] [ Info ] paste_cmd is:'tmux save-buffer
-'
<
>
<
The `<Leader> Y` key binding will copy selected text to a pastebin server. It
requires `curl` in your `$PATH`. The default command is:
>
curl -s -F "content=<-" http://dpaste.com/api/v2/
<
This command will read stdin and copy it to dpaste server. It is same as:
>
echo "selected text" | curl -s -F "content=<-" http://dpaste.com/api/v2/
<
COMMENTING
Comments are handled by nerdcommenter, its bound to the following keys.
>
Key Bindings | Descriptions
------------ | -------------------------------------------------------
SPC ; | comment operator
SPC c a | switch to the alternative set of delimiters
SPC c h | hide/show comments
SPC c l | toggle line comments
SPC c L | comment lines
SPC c u | uncomment lines
SPC c p | toggle paragraph comments
SPC c P | comment paragraphs
SPC c s | comment with pretty layout
SPC c t | toggle comment on line
SPC c T | comment the line under the cursor
SPC c y | toggle comment and yank
SPC c Y | yank and comment
SPC c $ | comment current line from cursor to the end of the line
<
Tip: `SPC ;` will start operator mode, in this mode, you can use a motion
command to comment lines. For example, `SPC ; 4 j` will comment the current
line and the following 4 lines.
UNDO TREE
Undo tree visualizes the undo history and makes it easier to browse and switch
between different undo branches. The default key binding is `F7`. If `+python`
or `+python3` is enabled, mundo will be loaded, otherwise undotree will be
loaded.
Key bindings within undo tree windows:
>
key bindings | description
--------------- | -------------------
G | move bottom
J | move older write
K | move newer write
N | previous match
P | play to
<2-LeftMouse> | mouse click
/ | search
<CR> | preview
d | diff
<down> | move older
<up> | move newer
i | toggle inline
j | move older
k | move newer
n | next match
o | preview
p | diff current buffer
q | quit
r | diff
gg | move top
? | toggle help
<
MULTI-ENCODINGS
SpaceVim uses utf-8 as the default encoding. There are four options for this:
1. fileencodings (fencs): ucs-bom,utf-8,default,latin1
2. fileencoding (fenc): utf-8
3. encoding (enc): utf-8
4. termencoding (tenc): utf-8 (only supported in Vim)
To fix a messy display: `SPC e a` is the mapping to auto detect the file
encoding. After detecting the file encoding, you can run the command below to
fix it:
>
set enc=utf-8
write
<
==============================================================================
ERROR HANDLING *SpaceVim-usage-error-handling*

View File

@ -9,21 +9,16 @@ description: "The goals, credits and contact information about SpaceVim."
- [History](#history)
- [Goals](#goals)
- [Contact](#contact)
- [Credits & Thanks](#credits--thanks)
<!-- vim-markdown-toc -->
## History
This project started in December 2016, and currently maintained by [Eric Wong](https://wsdjeg.net).
```diff
commit 0c95bd8987c124837afef9a271e1b3c4c19a449b
Author: Wang Shidong <wsdjeg@users.noreply.github.com>
Date: Sun Dec 25 22:40:55 2016 -0600
Initial commit
```
This project started in December 2016, which is derived from @wsdjeg's [DotFiles repository](https://github.com/wsdjeg/DotFiles).
An early idea for modular configuration came from the Vim configuration by airline's author.
The earliest version was further influenced by spacemacs' layer concept.
## Goals
@ -33,6 +28,12 @@ Date: Sun Dec 25 22:40:55 2016 -0600
- Cross-platform consistency
- Fast start up and efficient operation
## Contact
You can get in touch with the maintainer by send email to [support@spacevim.org](mailto:support@spacevim.org).
Your message will be sent to our teams, who will get back to you as soon as they can.
Please be advised that weekends and public holidays might delay response time.
## Credits & Thanks
- [Hack-SpaceVim](https://github.com/Gabirel/Hack-SpaceVim) by [@Gabirel](https://github.com/Gabirel)

View File

@ -10,21 +10,16 @@ lang: zh
- [起源](#起源)
- [目标](#目标)
- [联系方式](#联系方式)
- [特别鸣谢](#特别鸣谢)
<!-- vim-markdown-toc -->
## 起源
起源于 2016 年 12 月份,目前主要由 [Eric Wong](https://wsdjeg.net) 在维护。
```diff
commit 0c95bd8987c124837afef9a271e1b3c4c19a449b
Author: Wang Shidong <wsdjeg@users.noreply.github.com>
Date: Sun Dec 25 22:40:55 2016 -0600
Initial commit
```
SpaceVim 这一项目起源于 2016 年 12 月份,是由 @wsdjeg 的 [DotFiles](https://github.com/wsdjeg/DotFiles) 仓库分离衍生出来的。
早期的模块化配置理念来源于 airline 作者的 Vim 配置。
进一步受到 spacemacs 的 layers 这一概念的影响,最终形成了最早期的版本。
## 目标
@ -34,8 +29,14 @@ Date: Sun Dec 25 22:40:55 2016 -0600
- 跨平台的一致性
- 快速启动、高效运行
## 联系方式
你可以通过发送邮件至 [support@spacevim.org](mailto:support@spacevim.org) 与维护者取得联系。
你的信息会被发送给我们的团队,我们会尽快回复你。
请注意,周末和节假日可能会延迟响应时间。
## 特别鸣谢
- [@Gabirel](https://github.com/Gabirel) 及其 [Hack-SpaceVim](https://github.com/Gabirel/Hack-SpaceVim)
- [vimdoc](https://github.com/google/vimdoc):帮助文档自动生成工具
- SpaceVim 中使用的所有插件的作者
- SpaceVim 中涉及到的所有插件的作者