1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-22 08:45:42 +08:00

Merge branch 'dev' into project_manager

This commit is contained in:
wsdjeg 2017-09-25 20:10:14 +08:00
commit 0d45cdbd3a
14 changed files with 373 additions and 250 deletions

View File

@ -152,6 +152,9 @@ let g:spacevim_enable_cursorline = 1
let g:spacevim_statusline_separator = 'arrow' let g:spacevim_statusline_separator = 'arrow'
let g:spacevim_statusline_inactive_separator = 'arrow' let g:spacevim_statusline_inactive_separator = 'arrow'
"" ""
" Enable/Disable unicode symbols in statusline
let g:spacevim_statusline_unicode_symbols = 1
""
" Enable/Disable cursorcolumn. Default is 0, cursorcolumn will be " Enable/Disable cursorcolumn. Default is 0, cursorcolumn will be
" highlighted in normal mode. To enable this feature: " highlighted in normal mode. To enable this feature:
" > " >
@ -269,6 +272,7 @@ let g:spacevim_buffer_index_type = 0
" " 0: 1 ➛ ➊ " " 0: 1 ➛ ➊
" " 1: 1 ➛ ➀ " " 1: 1 ➛ ➀
" " 2: 1 ➛ ⓵ " " 2: 1 ➛ ⓵
" " 3: 1 ➛ 1
" let g:spacevim_windows_index_type = 1 " let g:spacevim_windows_index_type = 1
" < " <
let g:spacevim_windows_index_type = 0 let g:spacevim_windows_index_type = 0

View File

@ -34,26 +34,32 @@ let s:loaded_modes = ['syntax-checking']
let s:modes = { let s:modes = {
\ 'center-cursor': { \ 'center-cursor': {
\ 'icon' : '⊝', \ 'icon' : '⊝',
\ 'icon_asc' : '-',
\ 'desc' : 'centered-cursor mode', \ 'desc' : 'centered-cursor mode',
\ }, \ },
\ 'hi-characters-for-long-lines' :{ \ 'hi-characters-for-long-lines' :{
\ 'icon' : '⑧', \ 'icon' : '⑧',
\ 'icon_asc' : '8',
\ 'desc' : 'toggle highlight of characters for long lines', \ 'desc' : 'toggle highlight of characters for long lines',
\ }, \ },
\ 'fill-column-indicator' :{ \ 'fill-column-indicator' :{
\ 'icon' : s:MESSLETTERS.circled_letter('f'), \ 'icon' : s:MESSLETTERS.circled_letter('f'),
\ 'icon_asc' : 'f',
\ 'desc' : 'fill-column-indicator mode', \ 'desc' : 'fill-column-indicator mode',
\ }, \ },
\ 'syntax-checking' :{ \ 'syntax-checking' :{
\ 'icon' : s:MESSLETTERS.circled_letter('s'), \ 'icon' : s:MESSLETTERS.circled_letter('s'),
\ 'icon_asc' : 's',
\ 'desc' : 'syntax-checking mode', \ 'desc' : 'syntax-checking mode',
\ }, \ },
\ 'spell-checking' :{ \ 'spell-checking' :{
\ 'icon' : s:MESSLETTERS.circled_letter('S'), \ 'icon' : s:MESSLETTERS.circled_letter('S'),
\ 'icon_asc' : 'S',
\ 'desc' : 'spell-checking mode', \ 'desc' : 'spell-checking mode',
\ }, \ },
\ 'whitespace' :{ \ 'whitespace' :{
\ 'icon' : s:MESSLETTERS.circled_letter('w'), \ 'icon' : s:MESSLETTERS.circled_letter('w'),
\ 'icon_asc' : 'w',
\ 'desc' : 'whitespace mode', \ 'desc' : 'whitespace mode',
\ }, \ },
\ } \ }
@ -126,9 +132,17 @@ endif
function! s:winnr(...) abort function! s:winnr(...) abort
if a:0 > 1 if a:0 > 1
return ' ' . s:MESSLETTERS.circled_num(winnr(), g:spacevim_windows_index_type) . ' ' if g:spacevim_windows_index_type == 3
return ' ' . winnr() . ' '
else
return ' ' . s:MESSLETTERS.circled_num(winnr(), g:spacevim_windows_index_type) . ' '
endif
else else
return '%{SpaceVim#layers#core#statusline#mode(mode())} ' . s:MESSLETTERS.circled_num(winnr(), g:spacevim_windows_index_type) . ' ' if g:spacevim_windows_index_type == 3
return '%{SpaceVim#layers#core#statusline#mode(mode())} ' . winnr() . ' '
else
return '%{SpaceVim#layers#core#statusline#mode(mode())} ' . s:MESSLETTERS.circled_num(winnr(), g:spacevim_windows_index_type) . ' '
endif
endif endif
endfunction endfunction
@ -169,7 +183,11 @@ endfunction
function! s:modes() abort function! s:modes() abort
let m = ' ❖ ' let m = ' ❖ '
for mode in s:loaded_modes for mode in s:loaded_modes
let m .= s:modes[mode].icon . ' ' if g:spacevim_statusline_unicode_symbols == 1
let m .= s:modes[mode].icon . ' '
else
let m .= s:modes[mode].icon_asc . ' '
endif
endfor endfor
return m . ' ' return m . ' '
endfunction endfunction
@ -396,17 +414,17 @@ endfunction
" +- a:marked : The number of marked files, or a comma separated list of " +- a:marked : The number of marked files, or a comma separated list of
" the marked filenames. " the marked filenames.
function! SpaceVim#layers#core#statusline#ctrlp(focus, byfname, regex, prev, item, next, marked) abort function! SpaceVim#layers#core#statusline#ctrlp(focus, byfname, regex, prev, item, next, marked) abort
return s:STATUSLINE.build([' Ctrlp ', ' ' . a:prev . ' ', ' ' . a:item . ' ', ' ' . a:next . ' '], return s:STATUSLINE.build([' Ctrlp ', ' ' . a:prev . ' ', ' ' . a:item . ' ', ' ' . a:next . ' '],
\ [' ' . a:focus . ' ', ' ' . a:byfname . ' ', ' ' . getcwd() . ' '], s:lsep, s:rsep, \ [' ' . a:focus . ' ', ' ' . a:byfname . ' ', ' ' . getcwd() . ' '], s:lsep, s:rsep,
\ 'SpaceVim_statusline_a_bold', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z') \ 'SpaceVim_statusline_a_bold', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z')
endfunction endfunction
" a:str : Either the number of files scanned so far, or a string indicating " a:str : Either the number of files scanned so far, or a string indicating
" the current directory is being scanned with a user_command. " the current directory is being scanned with a user_command.
function! SpaceVim#layers#core#statusline#ctrlp_status(str) abort function! SpaceVim#layers#core#statusline#ctrlp_status(str) abort
return s:STATUSLINE.build([' Ctrlp ', ' ' . a:str . ' '], return s:STATUSLINE.build([' Ctrlp ', ' ' . a:str . ' '],
\ [' ' . getcwd() . ' '], s:lsep, s:rsep, \ [' ' . getcwd() . ' '], s:lsep, s:rsep,
\ 'SpaceVim_statusline_a', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z') \ 'SpaceVim_statusline_a', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z')
endfunction endfunction
function! SpaceVim#layers#core#statusline#jump(i) abort function! SpaceVim#layers#core#statusline#jump(i) abort

View File

@ -15,8 +15,22 @@ function! SpaceVim#layers#lang#javascript#plugins() abort
return plugins return plugins
endfunction endfunction
let s:auto_fix = 0
function! SpaceVim#layers#lang#javascript#set_variable(var) abort
let s:auto_fix = get(a:var, 'auto_fix', s:auto_fix)
endfunction
function! SpaceVim#layers#lang#javascript#config() abort function! SpaceVim#layers#lang#javascript#config() abort
call SpaceVim#mapping#gd#add('javascript', function('s:gotodef')) call SpaceVim#mapping#gd#add('javascript', function('s:gotodef'))
if s:auto_fix
" Only use eslint
let g:neomake_javascript_enabled_makers = ['eslint']
" Use the fix option of eslint
let g:neomake_javascript_eslint_args = ['-f', 'compact', '--fix']
au User NeomakeFinished checktime
au FocusGained * checktime
endif
endfunction endfunction
function! s:gotodef() abort function! s:gotodef() abort

View File

@ -188,6 +188,9 @@ Set the statusline separators of statusline, default is 'arrow'
See more details in: http://spacevim.org/documentation/#statusline See more details in: http://spacevim.org/documentation/#statusline
*g:spacevim_statusline_unicode_symbols*
Enable/Disable unicode symbols in statusline
*g:spacevim_enable_cursorcolumn* *g:spacevim_enable_cursorcolumn*
Enable/Disable cursorcolumn. Default is 0, cursorcolumn will be highlighted in Enable/Disable cursorcolumn. Default is 0, cursorcolumn will be highlighted in
normal mode. To enable this feature: normal mode. To enable this feature:
@ -300,6 +303,7 @@ Set SpaceVim windows index type, default is 0.
" 0: 1 ➛ ➊ " 0: 1 ➛ ➊
" 1: 1 ➛ ➀ " 1: 1 ➛ ➀
" 2: 1 ➛ ⓵ " 2: 1 ➛ ⓵
" 3: 1 ➛ 1
let g:spacevim_windows_index_type = 1 let g:spacevim_windows_index_type = 1
< <

View File

@ -1,3 +1,4 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins gem 'github-pages', group: :jekyll_plugins
gem 'jekyll-redirect-from', group: :jekyll_plugins gem 'jekyll-redirect-from', group: :jekyll_plugins
gem 'jekyll-seo-tag'

View File

@ -1,3 +1,9 @@
---
title: "SpaceVim 中文手册"
description: "SpaceVim 是一个社区驱动的 Vim 配置,内含多种语言模块,提供了代码补全、语法检查、跳转等多种 IDE 特性。"
---
# SpaceVim 中文手册 # SpaceVim 中文手册
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim) [![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)

View File

@ -1,15 +1,29 @@
theme: jekyll-theme-midnight theme: jekyll-theme-midnight
title: SpaceVim title: SpaceVim
description: A community-driven Vim distribution description: A community-driven vim distribution
show_downloads: false show_downloads: false
google_analytics: UA-89745542-1 google_analytics: UA-89745542-1
project_repo_url: https://github.com/SpaceVim/SpaceVim project_repo_url: https://github.com/SpaceVim/SpaceVim
url: https://spacevim.org url: https://spacevim.org
logo: https://spacevim.org/SpaceVim.png
permalink: /:title/ permalink: /:title/
plugins: plugins:
- jekyll-redirect-from - jekyll-redirect-from
- jekyll-sitemap - jekyll-sitemap
- jekyll-seo-tag
github: [metadata] github: [metadata]
author:
name: Shidong Wang
twitter: SpaceVim
twitter:
username: "@SpaceVim"
social:
name: SpaceVim
links:
- https://twitter.com/SpaceVim
- https://github.com/SpaceVim/SpaceVim
- https://www.reddit.com/r/SpaceVim/

View File

@ -1,127 +1,122 @@
<!doctype html> <!doctype html>
<html> <html>
<head>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <head>
<script> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
(adsbygoogle = window.adsbygoogle || []).push({ <script>
google_ad_client: "ca-pub-5073224535135889", (adsbygoogle = window.adsbygoogle || []).push({
enable_page_level_ads: true google_ad_client: "ca-pub-5073224535135889",
enable_page_level_ads: true
});
</script>
{% seo %}
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?c6bde3c13e6fd8fde7357f71b4dd53a7";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=60680063" charset="UTF-8"></script>
<!-- Google Tag Manager -->
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
}); });
</script> var f = d.getElementsByTagName(s)[0],
<script type="application/ld+json"> j = d.createElement(s),
{ dl = l != 'dataLayer' ? '&l=' + l : '';
"@context": "http://schema.org", j.async = true;
"@type": "WebSite", j.src =
"url": "https://spacevim.org/", 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
"name": "{{ page.title | default: Home }} - SpaceVim", f.parentNode.insertBefore(j, f);
"author": { })(window, document, 'script', 'dataLayer', 'GTM-PCLWNCD');
"@type": "Person", </script>
"name": "Shidong Wang" <!-- End Google Tag Manager -->
}, <meta charset="utf-8">
"description": "{{ site.description }}", <meta http-equiv="X-UA-Compatible" content="chrome=1">
"publisher": "Shidong Wang", <title>{{ page.title | default: Home }} - SpaceVim</title>
"potentialAction": { <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
"@type": "SearchAction", <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
"target": "https://spacevim.org/?s={search_term}", <script src="{{ '/assets/js/respond.js' | relative_url }}"></script>
"query-input": "required name=search_term" } <!--[if lt IE 9]>
}
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?c6bde3c13e6fd8fde7357f71b4dd53a7";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=60680063" charset="UTF-8"></script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PCLWNCD');
</script>
<!-- End Google Tag Manager -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>{{ page.title | default: Home }} - SpaceVim</title>
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="{{ '/assets/js/respond.js' | relative_url }}"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--> <![endif]-->
<!--[if lt IE 8]> <!--[if lt IE 8]>
<link rel="stylesheet" href="{{ '/assets/css/ie.css' | relative_url }}"> <link rel="stylesheet" href="{{ '/assets/css/ie.css' | relative_url }}">
<![endif]--> <![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script> <script>
(function(){ (function() {
var bp = document.createElement('script'); var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0]; var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') { if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
} } else {
else { bp.src = 'http://push.zhanzhang.baidu.com/push.js';
bp.src = 'http://push.zhanzhang.baidu.com/push.js'; }
} var s = document.getElementsByTagName("script")[0];
var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s);
s.parentNode.insertBefore(bp, s); })();
})(); </script>
</script> </head>
</head>
<body> <body>
<!-- Google Tag Manager (noscript) --> <!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PCLWNCD" <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PCLWNCD"
height="0" width="0" style="display:none;visibility:hidden"></iframe> height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript> </noscript>
<!-- End Google Tag Manager (noscript) --> <!-- End Google Tag Manager (noscript) -->
<a href="https://github.com/SpaceVim/SpaceVim"> <a href="https://github.com/SpaceVim/SpaceVim">
<img alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" style="position: absolute; top: 0; right: 0; border: 0;"/> <img alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" style="position: absolute; top: 0; right: 0; border: 0;"/>
</a> </a>
<div class="wrapper"> <div class="wrapper">
<section> <section>
<div id="title"> <div id="title">
<h1>{{ site.title | default: site.github.repository_name }}</h1> <h1>{{ site.title | default: site.github.repository_name }}</h1>
<p>{{ site.description | default: site.github.project_tagline }}</p> <p>{{ site.description | default: site.github.project_tagline }}</p>
<hr> <hr>
<p align="center"> <p align="center">
<b><a href="{{ site.url }}">Home</a></b> | <b><a href="{{ site.url }}">Home</a></b> |
<b><a href="{{ site.url }}/about">About</a></b> | <b><a href="{{ site.url }}/about">About</a></b> |
<b><a href="{{ site.url }}/documentation">Documentation</a></b> | <b><a href="{{ site.url }}/documentation">Documentation</a></b> |
<b><a href="{{ site.url }}/development">Development</a></b> | <b><a href="{{ site.url }}/development">Development</a></b> |
<b><a href="{{ site.url }}/community">Community</a></b> | <b><a href="{{ site.url }}/community">Community</a></b> |
<b><a href="{{ site.url }}/sponsors">Sponsors</a></b> <b><a href="{{ site.url }}/sponsors">Sponsors</a></b>
</p> </p>
<hr> <hr>
</div> </div>
{{ content }} {{ content }}
</section> </section>
</div> </div>
{% if site.google_analytics %}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
pageTracker._trackPageview();
} catch (err) {}
</script>
{% endif %}
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58a01d3aac22bd89"></script>
</body>
<root>
<p align="center">
<span class="credits right">Hosted on GitHub &mdash; Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></span>
</p>
</root>
{% if site.google_analytics %}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
pageTracker._trackPageview();
} catch(err) {}
</script>
{% endif %}
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58a01d3aac22bd89"></script>
</body>
<root>
<p align="center">
<span class="credits right">Hosted on GitHub &mdash; Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></span>
</p>
</root>
</html> </html>

View File

@ -1,5 +1,6 @@
--- ---
title: "About" title: "About"
description: "Introduction about SpaceVim organization."
--- ---
# About SpaceVim # About SpaceVim

View File

@ -1,5 +1,6 @@
--- ---
title: "Development" title: "Development"
description: "A guide for contributing to SpaceVim."
--- ---
# Development # Development

View File

@ -1,137 +1,138 @@
--- ---
title: "Documentation" title: "Documentation"
description: "A guide for using SpaceVim."
--- ---
# SpaceVim Documentation # SpaceVim Documentation
<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc GFM -->
* [Core Pillars](#core-pillars) - [Core Pillars](#core-pillars)
* [Mnemonic](#mnemonic) - [Mnemonic](#mnemonic)
* [Discoverable](#discoverable) - [Discoverable](#discoverable)
* [Consistent](#consistent) - [Consistent](#consistent)
* [Crowd-Configured](#crowd-configured) - [Crowd-Configured](#crowd-configured)
* [Highlighted features](#highlighted-features) - [Highlighted features](#highlighted-features)
* [Screenshots](#screenshots) - [Screenshots](#screenshots)
* [welcome page](#welcome-page) - [welcome page](#welcome-page)
* [working flow](#working-flow) - [working flow](#working-flow)
* [Who can benefit from this?](#who-can-benefit-from-this) - [Who can benefit from this?](#who-can-benefit-from-this)
* [Update and Rollback](#update-and-rollback) - [Update and Rollback](#update-and-rollback)
* [Update SpaceVim itself](#update-spacevim-itself) - [Update SpaceVim itself](#update-spacevim-itself)
* [Automatic Updates](#automatic-updates) - [Automatic Updates](#automatic-updates)
* [Updating from the SpaceVim Buffer](#updating-from-the-spacevim-buffer) - [Updating from the SpaceVim Buffer](#updating-from-the-spacevim-buffer)
* [Updating Manually with git](#updating-manually-with-git) - [Updating Manually with git](#updating-manually-with-git)
* [Update plugins](#update-plugins) - [Update plugins](#update-plugins)
* [Configuration layers](#configuration-layers) - [Configuration layers](#configuration-layers)
* [Custom Configuration](#custom-configuration) - [Custom Configuration](#custom-configuration)
* [Automatic Generation](#automatic-generation) - [Automatic Generation](#automatic-generation)
* [Alternative directory](#alternative-directory) - [Alternative directory](#alternative-directory)
* [Concepts](#concepts) - [Concepts](#concepts)
* [Transient-states](#transient-states) - [Transient-states](#transient-states)
* [Awesome ui](#awesome-ui) - [Awesome ui](#awesome-ui)
* [Colorschemes](#colorschemes) - [Colorschemes](#colorschemes)
* [Font](#font) - [Font](#font)
* [UI Toggles](#ui-toggles) - [UI Toggles](#ui-toggles)
* [Statusline && tabline](#statusline--tabline) - [Statusline && tabline](#statusline--tabline)
* [statusline](#statusline) - [statusline](#statusline)
* [tabline](#tabline) - [tabline](#tabline)
* [Manual](#manual) - [Manual](#manual)
* [Completion](#completion) - [Completion](#completion)
* [Unite/Denite](#unitedenite) - [Unite/Denite](#unitedenite)
* [Mappings within unite/denite buffer](#mappings-within-unitedenite-buffer) - [Mappings within unite/denite buffer](#mappings-within-unitedenite-buffer)
* [Discovering](#discovering) - [Discovering](#discovering)
* [Mappings](#mappings) - [Mappings](#mappings)
* [Mappings guide](#mappings-guide) - [Mappings guide](#mappings-guide)
* [Unide/Denite describe key bindings](#unidedenite-describe-key-bindings) - [Unide/Denite describe key bindings](#unidedenite-describe-key-bindings)
* [Getting help](#getting-help) - [Getting help](#getting-help)
* [Available layers](#available-layers) - [Available layers](#available-layers)
* [Available plugins in SpaceVim](#available-plugins-in-spacevim) - [Available plugins in SpaceVim](#available-plugins-in-spacevim)
* [New packages from ELPA repositories](#new-packages-from-elpa-repositories) - [New packages from ELPA repositories](#new-packages-from-elpa-repositories)
* [Toggles](#toggles) - [Toggles](#toggles)
* [Navigating](#navigating) - [Navigating](#navigating)
* [Point/Cursor](#pointcursor) - [Point/Cursor](#pointcursor)
* [Vim motions with vim-easymotion](#vim-motions-with-vim-easymotion) - [Vim motions with vim-easymotion](#vim-motions-with-vim-easymotion)
* [quick-jump-link mode (TODO)](#quick-jump-link-mode-todo) - [quick-jump-link mode (TODO)](#quick-jump-link-mode-todo)
* [Unimpaired bindings](#unimpaired-bindings) - [Unimpaired bindings](#unimpaired-bindings)
* [Jumping, Joining and Splitting](#jumping-joining-and-splitting) - [Jumping, Joining and Splitting](#jumping-joining-and-splitting)
* [Jumping](#jumping) - [Jumping](#jumping)
* [Joining and splitting](#joining-and-splitting) - [Joining and splitting](#joining-and-splitting)
* [Window manipulation](#window-manipulation) - [Window manipulation](#window-manipulation)
* [Window manipulation key bindings](#window-manipulation-key-bindings) - [Window manipulation key bindings](#window-manipulation-key-bindings)
* [Buffers and Files](#buffers-and-files) - [Buffers and Files](#buffers-and-files)
* [Buffers manipulation key bindings](#buffers-manipulation-key-bindings) - [Buffers manipulation key bindings](#buffers-manipulation-key-bindings)
* [Create a new empty buffer](#create-a-new-empty-buffer) - [Create a new empty buffer](#create-a-new-empty-buffer)
* [Special Buffers](#special-buffers) - [Special Buffers](#special-buffers)
* [Files manipulations key bindings](#files-manipulations-key-bindings) - [Files manipulations key bindings](#files-manipulations-key-bindings)
* [Vim and SpaceVim files](#vim-and-spacevim-files) - [Vim and SpaceVim files](#vim-and-spacevim-files)
* [File tree](#file-tree) - [File tree](#file-tree)
* [File tree navigation](#file-tree-navigation) - [File tree navigation](#file-tree-navigation)
* [Open file with file tree.](#open-file-with-file-tree) - [Open file with file tree.](#open-file-with-file-tree)
* [Commands starting with `g`](#commands-starting-with-g) - [Commands starting with `g`](#commands-starting-with-g)
* [Commands starting with `z`](#commands-starting-with-z) - [Commands starting with `z`](#commands-starting-with-z)
* [Auto-saving](#auto-saving) - [Auto-saving](#auto-saving)
* [Searching](#searching) - [Searching](#searching)
* [With an external tool](#with-an-external-tool) - [With an external tool](#with-an-external-tool)
* [Useful key bindings](#useful-key-bindings) - [Useful key bindings](#useful-key-bindings)
* [Searching in current file](#searching-in-current-file) - [Searching in current file](#searching-in-current-file)
* [Searching in all loaded buffers](#searching-in-all-loaded-buffers) - [Searching in all loaded buffers](#searching-in-all-loaded-buffers)
* [Searching in an arbitrary directory](#searching-in-an-arbitrary-directory) - [Searching in an arbitrary directory](#searching-in-an-arbitrary-directory)
* [Searching in a project](#searching-in-a-project) - [Searching in a project](#searching-in-a-project)
* [Background searching in a project](#background-searching-in-a-project) - [Background searching in a project](#background-searching-in-a-project)
* [Searching the web](#searching-the-web) - [Searching the web](#searching-the-web)
* [Searching on the fly](#searching-on-the-fly) - [Searching on the fly](#searching-on-the-fly)
* [Persistent highlighting](#persistent-highlighting) - [Persistent highlighting](#persistent-highlighting)
* [Editing](#editing) - [Editing](#editing)
* [Paste text](#paste-text) - [Paste text](#paste-text)
* [Auto-indent pasted text](#auto-indent-pasted-text) - [Auto-indent pasted text](#auto-indent-pasted-text)
* [Text manipulation commands](#text-manipulation-commands) - [Text manipulation commands](#text-manipulation-commands)
* [Text insertion commands](#text-insertion-commands) - [Text insertion commands](#text-insertion-commands)
* [Commenting](#commenting) - [Commenting](#commenting)
* [Multi-Encodings](#multi-encodings) - [Multi-Encodings](#multi-encodings)
* [Errors handling](#errors-handling) - [Errors handling](#errors-handling)
* [Managing projects](#managing-projects) - [Managing projects](#managing-projects)
* [Achievements](#achievements) - [Achievements](#achievements)
* [issues](#issues) - [issues](#issues)
* [Stars, forks and watchers](#stars-forks-and-watchers) - [Stars, forks and watchers](#stars-forks-and-watchers)
* [Features](#features) - [Features](#features)
* [Awesome ui](#awesome-ui-1) - [Awesome ui](#awesome-ui-1)
* [Mnemonic key bindings](#mnemonic-key-bindings) - [Mnemonic key bindings](#mnemonic-key-bindings)
* [Language specific mode](#language-specific-mode) - [Language specific mode](#language-specific-mode)
* [Key Mapping](#key-mapping) - [Key Mapping](#key-mapping)
* [c/c++ support](#cc-support) - [c/c++ support](#cc-support)
* [go support](#go-support) - [go support](#go-support)
* [python support](#python-support) - [python support](#python-support)
* [Neovim centric - Dark powered mode of SpaceVim.](#neovim-centric---dark-powered-mode-of-spacevim) - [Neovim centric - Dark powered mode of SpaceVim.](#neovim-centric---dark-powered-mode-of-spacevim)
* [Modular configuration](#modular-configuration) - [Modular configuration](#modular-configuration)
* [Multiple leader mode](#multiple-leader-mode) - [Multiple leader mode](#multiple-leader-mode)
* [Global origin vim leader](#global-origin-vim-leader) - [Global origin vim leader](#global-origin-vim-leader)
* [Local origin vim leader](#local-origin-vim-leader) - [Local origin vim leader](#local-origin-vim-leader)
* [Windows function leader](#windows-function-leader) - [Windows function leader](#windows-function-leader)
* [Unite work flow leader](#unite-work-flow-leader) - [Unite work flow leader](#unite-work-flow-leader)
* [Unite centric work-flow](#unite-centric-work-flow) - [Unite centric work-flow](#unite-centric-work-flow)
* [Plugin Highlights](#plugin-highlights) - [Plugin Highlights](#plugin-highlights)
* [Non Lazy-Loaded Plugins](#non-lazy-loaded-plugins) - [Non Lazy-Loaded Plugins](#non-lazy-loaded-plugins)
* [Lazy-Loaded Plugins](#lazy-loaded-plugins) - [Lazy-Loaded Plugins](#lazy-loaded-plugins)
* [Language](#language) - [Language](#language)
* [Commands](#commands) - [Commands](#commands)
* [Commands](#commands-1) - [Commands](#commands-1)
* [Completion](#completion-1) - [Completion](#completion-1)
* [Unite](#unite) - [Unite](#unite)
* [Operators & Text Objects](#operators--text-objects) - [Operators & Text Objects](#operators--text-objects)
* [Custom Key bindings](#custom-key-bindings) - [Custom Key bindings](#custom-key-bindings)
* [File Operations](#file-operations) - [File Operations](#file-operations)
* [Editor UI](#editor-ui) - [Editor UI](#editor-ui)
* [Window Management](#window-management) - [Window Management](#window-management)
* [Native functions](#native-functions) - [Native functions](#native-functions)
* [Plugin: Unite](#plugin-unite) - [Plugin: Unite](#plugin-unite)
* [Plugin: neocomplete](#plugin-neocomplete) - [Plugin: neocomplete](#plugin-neocomplete)
* [Plugin: NERD Commenter](#plugin-nerd-commenter) - [Plugin: NERD Commenter](#plugin-nerd-commenter)
* [Plugin: Goyo and Limelight](#plugin-goyo-and-limelight) - [Plugin: Goyo and Limelight](#plugin-goyo-and-limelight)
* [Plugin: ChooseWin](#plugin-choosewin) - [Plugin: ChooseWin](#plugin-choosewin)
* [Plugin: Bookmarks](#plugin-bookmarks) - [Plugin: Bookmarks](#plugin-bookmarks)
* [Plugin: Gina/Gita](#plugin-ginagita) - [Plugin: Gina/Gita](#plugin-ginagita)
* [Plugin: vim-signify](#plugin-vim-signify) - [Plugin: vim-signify](#plugin-vim-signify)
* [Misc Plugins](#misc-plugins) - [Misc Plugins](#misc-plugins)
<!-- vim-markdown-toc --> <!-- vim-markdown-toc -->
@ -360,7 +361,7 @@ Some UI indicators can be toggled on and off (toggles start with t and T):
| SPC t 8 | highlight any character past the 80th column | | SPC t 8 | highlight any character past the 80th column |
| SPC t f | display the fill column (by default the fill column is set to 80) | | SPC t f | display the fill column (by default the fill column is set to 80) |
| SPC t h h | toggle highlight of the current line | | SPC t h h | toggle highlight of the current line |
| SPC t h i | toggle highlight indentation levels (TODO) | | SPC t h i | toggle highlight indentation levels (TODO) |
| SPC t h c | toggle highlight indentation current column | | SPC t h c | toggle highlight indentation current column |
| SPC t h s | toggle syntax highlighting | | SPC t h s | toggle syntax highlighting |
| SPC t i | toggle indentation guide at point | | SPC t i | toggle indentation guide at point |
@ -480,7 +481,7 @@ here is an exhaustive set of screenshots for all the available separator:
The minor mode area can be toggled on and off with `SPC t m m` The minor mode area can be toggled on and off with `SPC t m m`
Unicode symbols are displayed by default. Setting the variable `g:spacevim_statusline_unicode_symbols` to nil in your custom configuration file will display ASCII characters instead (may be useful in terminal if you cannot set an appropriate font). Unicode symbols are displayed by default. Setting the variable `g:spacevim_statusline_unicode_symbols` to 0 in your custom configuration file will display ASCII characters instead (may be useful in terminal if you cannot set an appropriate font).
The letters displayed in the statusline correspond to the key bindings used to toggle them. The letters displayed in the statusline correspond to the key bindings used to toggle them.

View File

@ -1,5 +1,6 @@
--- ---
title: "Home" title: "Home"
description: "SpaceVim is a community-driven vim distribution that seeks to provide layer feature."
--- ---
# Introduction # Introduction

View File

@ -1,4 +1,25 @@
# SpaceVim Layers ---
title: Available layers
description: A list of available layers in SpaceVim.
keywords: layer,layers
---
## Introduction
SpaceVim is a community-driven vim distribution that seeks to provide layer feature. here is an example for loadding a layer with some specified options:
```vim
call SpaceVim#layers#load('shell',
\ {
\ 'default_position' : 'top',
\ 'default_height' : 30,
\ }
\ )
```
## Available layers
this a list of buildin layers:
| Name | Description | Documentation | | Name | Description | Documentation |
| ------------- | :-------------------------------: | ---------------------------------------------------------- | | ------------- | :-------------------------------: | ---------------------------------------------------------- |

View File

@ -0,0 +1,42 @@
---
title: "SpaceVim lang#javascript layer"
---
# [SpaceVim Layers:](https://spacevim.org/layers) lang#javascript
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Layer Installation](#layer-installation)
- [Features](#features)
- [Layer configuration](#layer-configuration)
<!-- vim-markdown-toc -->
## Description
This layer is for JavaScript development.
## Layer Installation
To use this configuration layer, add `call SpaceVim#layers#load('lang#javascript')` to your custom configuration file.
## Features
- auto-completion
- syntax checking
- goto definition
- refernce finder
## Layer configuration
`auto_fix`: auto fix problems when save files, disabled by default. if you need this feature, you can load this layer via:
```vim
call SpaceVim#layers#load('lang#javascript',
\ {
\ 'auto_fix' : 1,
\ }
\ )
```