mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-15 08:09:11 +08:00
Add option for disable unicode symbols in statusline
This commit is contained in:
parent
367557fc0b
commit
2fbf5131a7
@ -152,6 +152,9 @@ let g:spacevim_enable_cursorline = 1
|
||||
let g:spacevim_statusline_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
|
||||
" highlighted in normal mode. To enable this feature:
|
||||
" >
|
||||
|
@ -34,26 +34,32 @@ let s:loaded_modes = ['syntax-checking']
|
||||
let s:modes = {
|
||||
\ 'center-cursor': {
|
||||
\ 'icon' : '⊝',
|
||||
\ 'icon_asc' : '-',
|
||||
\ 'desc' : 'centered-cursor mode',
|
||||
\ },
|
||||
\ 'hi-characters-for-long-lines' :{
|
||||
\ 'icon' : '⑧',
|
||||
\ 'icon_asc' : '8',
|
||||
\ 'desc' : 'toggle highlight of characters for long lines',
|
||||
\ },
|
||||
\ 'fill-column-indicator' :{
|
||||
\ 'icon' : s:MESSLETTERS.circled_letter('f'),
|
||||
\ 'icon_asc' : 'f',
|
||||
\ 'desc' : 'fill-column-indicator mode',
|
||||
\ },
|
||||
\ 'syntax-checking' :{
|
||||
\ 'icon' : s:MESSLETTERS.circled_letter('s'),
|
||||
\ 'icon_asc' : 's',
|
||||
\ 'desc' : 'syntax-checking mode',
|
||||
\ },
|
||||
\ 'spell-checking' :{
|
||||
\ 'icon' : s:MESSLETTERS.circled_letter('S'),
|
||||
\ 'icon_asc' : 'S',
|
||||
\ 'desc' : 'spell-checking mode',
|
||||
\ },
|
||||
\ 'whitespace' :{
|
||||
\ 'icon' : s:MESSLETTERS.circled_letter('w'),
|
||||
\ 'icon_asc' : 'w',
|
||||
\ 'desc' : 'whitespace mode',
|
||||
\ },
|
||||
\ }
|
||||
@ -169,7 +175,11 @@ endfunction
|
||||
function! s:modes() abort
|
||||
let m = ' ❖ '
|
||||
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
|
||||
return m . ' '
|
||||
endfunction
|
||||
|
@ -188,6 +188,9 @@ Set the statusline separators of statusline, default is 'arrow'
|
||||
See more details in: http://spacevim.org/documentation/#statusline
|
||||
|
||||
|
||||
*g:spacevim_statusline_unicode_symbols*
|
||||
Enable/Disable unicode symbols in statusline
|
||||
|
||||
*g:spacevim_enable_cursorcolumn*
|
||||
Enable/Disable cursorcolumn. Default is 0, cursorcolumn will be highlighted in
|
||||
normal mode. To enable this feature:
|
||||
|
@ -6,132 +6,132 @@ title: "Documentation"
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
* [Core Pillars](#core-pillars)
|
||||
* [Mnemonic](#mnemonic)
|
||||
* [Discoverable](#discoverable)
|
||||
* [Consistent](#consistent)
|
||||
* [Crowd-Configured](#crowd-configured)
|
||||
* [Highlighted features](#highlighted-features)
|
||||
* [Screenshots](#screenshots)
|
||||
* [welcome page](#welcome-page)
|
||||
* [working flow](#working-flow)
|
||||
* [Who can benefit from this?](#who-can-benefit-from-this)
|
||||
* [Update and Rollback](#update-and-rollback)
|
||||
* [Update SpaceVim itself](#update-spacevim-itself)
|
||||
* [Automatic Updates](#automatic-updates)
|
||||
* [Updating from the SpaceVim Buffer](#updating-from-the-spacevim-buffer)
|
||||
* [Updating Manually with git](#updating-manually-with-git)
|
||||
* [Update plugins](#update-plugins)
|
||||
* [Configuration layers](#configuration-layers)
|
||||
* [Custom Configuration](#custom-configuration)
|
||||
* [Automatic Generation](#automatic-generation)
|
||||
* [Alternative directory](#alternative-directory)
|
||||
* [Concepts](#concepts)
|
||||
* [Transient-states](#transient-states)
|
||||
* [Awesome ui](#awesome-ui)
|
||||
* [Colorschemes](#colorschemes)
|
||||
* [Font](#font)
|
||||
* [UI Toggles](#ui-toggles)
|
||||
* [Statusline && tabline](#statusline--tabline)
|
||||
* [statusline](#statusline)
|
||||
* [tabline](#tabline)
|
||||
* [Manual](#manual)
|
||||
* [Completion](#completion)
|
||||
* [Unite/Denite](#unitedenite)
|
||||
* [Mappings within unite/denite buffer](#mappings-within-unitedenite-buffer)
|
||||
* [Discovering](#discovering)
|
||||
* [Mappings](#mappings)
|
||||
* [Mappings guide](#mappings-guide)
|
||||
* [Unide/Denite describe key bindings](#unidedenite-describe-key-bindings)
|
||||
* [Getting help](#getting-help)
|
||||
* [Available layers](#available-layers)
|
||||
* [Available plugins in SpaceVim](#available-plugins-in-spacevim)
|
||||
* [New packages from ELPA repositories](#new-packages-from-elpa-repositories)
|
||||
* [Toggles](#toggles)
|
||||
* [Navigating](#navigating)
|
||||
* [Point/Cursor](#pointcursor)
|
||||
* [Vim motions with vim-easymotion](#vim-motions-with-vim-easymotion)
|
||||
* [quick-jump-link mode (TODO)](#quick-jump-link-mode-todo)
|
||||
* [Unimpaired bindings](#unimpaired-bindings)
|
||||
* [Jumping, Joining and Splitting](#jumping-joining-and-splitting)
|
||||
* [Jumping](#jumping)
|
||||
* [Joining and splitting](#joining-and-splitting)
|
||||
* [Window manipulation](#window-manipulation)
|
||||
* [Window manipulation key bindings](#window-manipulation-key-bindings)
|
||||
* [Buffers and Files](#buffers-and-files)
|
||||
* [Buffers manipulation key bindings](#buffers-manipulation-key-bindings)
|
||||
* [Create a new empty buffer](#create-a-new-empty-buffer)
|
||||
* [Special Buffers](#special-buffers)
|
||||
* [Files manipulations key bindings](#files-manipulations-key-bindings)
|
||||
* [Vim and SpaceVim files](#vim-and-spacevim-files)
|
||||
* [File tree](#file-tree)
|
||||
* [File tree navigation](#file-tree-navigation)
|
||||
* [Open file with file tree.](#open-file-with-file-tree)
|
||||
* [Commands starting with `g`](#commands-starting-with-g)
|
||||
* [Commands starting with `z`](#commands-starting-with-z)
|
||||
* [Auto-saving](#auto-saving)
|
||||
* [Searching](#searching)
|
||||
* [With an external tool](#with-an-external-tool)
|
||||
* [Useful key bindings](#useful-key-bindings)
|
||||
* [Searching in current file](#searching-in-current-file)
|
||||
* [Searching in all loaded buffers](#searching-in-all-loaded-buffers)
|
||||
* [Searching in an arbitrary directory](#searching-in-an-arbitrary-directory)
|
||||
* [Searching in a project](#searching-in-a-project)
|
||||
* [Background searching in a project](#background-searching-in-a-project)
|
||||
* [Searching the web](#searching-the-web)
|
||||
* [Searching on the fly](#searching-on-the-fly)
|
||||
* [Persistent highlighting](#persistent-highlighting)
|
||||
* [Editing](#editing)
|
||||
* [Paste text](#paste-text)
|
||||
* [Auto-indent pasted text](#auto-indent-pasted-text)
|
||||
* [Text manipulation commands](#text-manipulation-commands)
|
||||
* [Text insertion commands](#text-insertion-commands)
|
||||
* [Commenting](#commenting)
|
||||
* [Multi-Encodings](#multi-encodings)
|
||||
* [Errors handling](#errors-handling)
|
||||
* [Managing projects](#managing-projects)
|
||||
* [Achievements](#achievements)
|
||||
* [issues](#issues)
|
||||
* [Stars, forks and watchers](#stars-forks-and-watchers)
|
||||
* [Features](#features)
|
||||
* [Awesome ui](#awesome-ui-1)
|
||||
* [Mnemonic key bindings](#mnemonic-key-bindings)
|
||||
* [Language specific mode](#language-specific-mode)
|
||||
* [Key Mapping](#key-mapping)
|
||||
* [c/c++ support](#cc-support)
|
||||
* [go support](#go-support)
|
||||
* [python support](#python-support)
|
||||
* [Neovim centric - Dark powered mode of SpaceVim.](#neovim-centric---dark-powered-mode-of-spacevim)
|
||||
* [Modular configuration](#modular-configuration)
|
||||
* [Multiple leader mode](#multiple-leader-mode)
|
||||
* [Global origin vim leader](#global-origin-vim-leader)
|
||||
* [Local origin vim leader](#local-origin-vim-leader)
|
||||
* [Windows function leader](#windows-function-leader)
|
||||
* [Unite work flow leader](#unite-work-flow-leader)
|
||||
* [Unite centric work-flow](#unite-centric-work-flow)
|
||||
* [Plugin Highlights](#plugin-highlights)
|
||||
* [Non Lazy-Loaded Plugins](#non-lazy-loaded-plugins)
|
||||
* [Lazy-Loaded Plugins](#lazy-loaded-plugins)
|
||||
* [Language](#language)
|
||||
* [Commands](#commands)
|
||||
* [Commands](#commands-1)
|
||||
* [Completion](#completion-1)
|
||||
* [Unite](#unite)
|
||||
* [Operators & Text Objects](#operators--text-objects)
|
||||
* [Custom Key bindings](#custom-key-bindings)
|
||||
* [File Operations](#file-operations)
|
||||
* [Editor UI](#editor-ui)
|
||||
* [Window Management](#window-management)
|
||||
* [Native functions](#native-functions)
|
||||
* [Plugin: Unite](#plugin-unite)
|
||||
* [Plugin: neocomplete](#plugin-neocomplete)
|
||||
* [Plugin: NERD Commenter](#plugin-nerd-commenter)
|
||||
* [Plugin: Goyo and Limelight](#plugin-goyo-and-limelight)
|
||||
* [Plugin: ChooseWin](#plugin-choosewin)
|
||||
* [Plugin: Bookmarks](#plugin-bookmarks)
|
||||
* [Plugin: Gina/Gita](#plugin-ginagita)
|
||||
* [Plugin: vim-signify](#plugin-vim-signify)
|
||||
* [Misc Plugins](#misc-plugins)
|
||||
- [Core Pillars](#core-pillars)
|
||||
- [Mnemonic](#mnemonic)
|
||||
- [Discoverable](#discoverable)
|
||||
- [Consistent](#consistent)
|
||||
- [Crowd-Configured](#crowd-configured)
|
||||
- [Highlighted features](#highlighted-features)
|
||||
- [Screenshots](#screenshots)
|
||||
- [welcome page](#welcome-page)
|
||||
- [working flow](#working-flow)
|
||||
- [Who can benefit from this?](#who-can-benefit-from-this)
|
||||
- [Update and Rollback](#update-and-rollback)
|
||||
- [Update SpaceVim itself](#update-spacevim-itself)
|
||||
- [Automatic Updates](#automatic-updates)
|
||||
- [Updating from the SpaceVim Buffer](#updating-from-the-spacevim-buffer)
|
||||
- [Updating Manually with git](#updating-manually-with-git)
|
||||
- [Update plugins](#update-plugins)
|
||||
- [Configuration layers](#configuration-layers)
|
||||
- [Custom Configuration](#custom-configuration)
|
||||
- [Automatic Generation](#automatic-generation)
|
||||
- [Alternative directory](#alternative-directory)
|
||||
- [Concepts](#concepts)
|
||||
- [Transient-states](#transient-states)
|
||||
- [Awesome ui](#awesome-ui)
|
||||
- [Colorschemes](#colorschemes)
|
||||
- [Font](#font)
|
||||
- [UI Toggles](#ui-toggles)
|
||||
- [Statusline && tabline](#statusline--tabline)
|
||||
- [statusline](#statusline)
|
||||
- [tabline](#tabline)
|
||||
- [Manual](#manual)
|
||||
- [Completion](#completion)
|
||||
- [Unite/Denite](#unitedenite)
|
||||
- [Mappings within unite/denite buffer](#mappings-within-unitedenite-buffer)
|
||||
- [Discovering](#discovering)
|
||||
- [Mappings](#mappings)
|
||||
- [Mappings guide](#mappings-guide)
|
||||
- [Unide/Denite describe key bindings](#unidedenite-describe-key-bindings)
|
||||
- [Getting help](#getting-help)
|
||||
- [Available layers](#available-layers)
|
||||
- [Available plugins in SpaceVim](#available-plugins-in-spacevim)
|
||||
- [New packages from ELPA repositories](#new-packages-from-elpa-repositories)
|
||||
- [Toggles](#toggles)
|
||||
- [Navigating](#navigating)
|
||||
- [Point/Cursor](#pointcursor)
|
||||
- [Vim motions with vim-easymotion](#vim-motions-with-vim-easymotion)
|
||||
- [quick-jump-link mode (TODO)](#quick-jump-link-mode-todo)
|
||||
- [Unimpaired bindings](#unimpaired-bindings)
|
||||
- [Jumping, Joining and Splitting](#jumping-joining-and-splitting)
|
||||
- [Jumping](#jumping)
|
||||
- [Joining and splitting](#joining-and-splitting)
|
||||
- [Window manipulation](#window-manipulation)
|
||||
- [Window manipulation key bindings](#window-manipulation-key-bindings)
|
||||
- [Buffers and Files](#buffers-and-files)
|
||||
- [Buffers manipulation key bindings](#buffers-manipulation-key-bindings)
|
||||
- [Create a new empty buffer](#create-a-new-empty-buffer)
|
||||
- [Special Buffers](#special-buffers)
|
||||
- [Files manipulations key bindings](#files-manipulations-key-bindings)
|
||||
- [Vim and SpaceVim files](#vim-and-spacevim-files)
|
||||
- [File tree](#file-tree)
|
||||
- [File tree navigation](#file-tree-navigation)
|
||||
- [Open file with file tree.](#open-file-with-file-tree)
|
||||
- [Commands starting with `g`](#commands-starting-with-g)
|
||||
- [Commands starting with `z`](#commands-starting-with-z)
|
||||
- [Auto-saving](#auto-saving)
|
||||
- [Searching](#searching)
|
||||
- [With an external tool](#with-an-external-tool)
|
||||
- [Useful key bindings](#useful-key-bindings)
|
||||
- [Searching in current file](#searching-in-current-file)
|
||||
- [Searching in all loaded buffers](#searching-in-all-loaded-buffers)
|
||||
- [Searching in an arbitrary directory](#searching-in-an-arbitrary-directory)
|
||||
- [Searching in a project](#searching-in-a-project)
|
||||
- [Background searching in a project](#background-searching-in-a-project)
|
||||
- [Searching the web](#searching-the-web)
|
||||
- [Searching on the fly](#searching-on-the-fly)
|
||||
- [Persistent highlighting](#persistent-highlighting)
|
||||
- [Editing](#editing)
|
||||
- [Paste text](#paste-text)
|
||||
- [Auto-indent pasted text](#auto-indent-pasted-text)
|
||||
- [Text manipulation commands](#text-manipulation-commands)
|
||||
- [Text insertion commands](#text-insertion-commands)
|
||||
- [Commenting](#commenting)
|
||||
- [Multi-Encodings](#multi-encodings)
|
||||
- [Errors handling](#errors-handling)
|
||||
- [Managing projects](#managing-projects)
|
||||
- [Achievements](#achievements)
|
||||
- [issues](#issues)
|
||||
- [Stars, forks and watchers](#stars-forks-and-watchers)
|
||||
- [Features](#features)
|
||||
- [Awesome ui](#awesome-ui-1)
|
||||
- [Mnemonic key bindings](#mnemonic-key-bindings)
|
||||
- [Language specific mode](#language-specific-mode)
|
||||
- [Key Mapping](#key-mapping)
|
||||
- [c/c++ support](#cc-support)
|
||||
- [go support](#go-support)
|
||||
- [python support](#python-support)
|
||||
- [Neovim centric - Dark powered mode of SpaceVim.](#neovim-centric---dark-powered-mode-of-spacevim)
|
||||
- [Modular configuration](#modular-configuration)
|
||||
- [Multiple leader mode](#multiple-leader-mode)
|
||||
- [Global origin vim leader](#global-origin-vim-leader)
|
||||
- [Local origin vim leader](#local-origin-vim-leader)
|
||||
- [Windows function leader](#windows-function-leader)
|
||||
- [Unite work flow leader](#unite-work-flow-leader)
|
||||
- [Unite centric work-flow](#unite-centric-work-flow)
|
||||
- [Plugin Highlights](#plugin-highlights)
|
||||
- [Non Lazy-Loaded Plugins](#non-lazy-loaded-plugins)
|
||||
- [Lazy-Loaded Plugins](#lazy-loaded-plugins)
|
||||
- [Language](#language)
|
||||
- [Commands](#commands)
|
||||
- [Commands](#commands-1)
|
||||
- [Completion](#completion-1)
|
||||
- [Unite](#unite)
|
||||
- [Operators & Text Objects](#operators--text-objects)
|
||||
- [Custom Key bindings](#custom-key-bindings)
|
||||
- [File Operations](#file-operations)
|
||||
- [Editor UI](#editor-ui)
|
||||
- [Window Management](#window-management)
|
||||
- [Native functions](#native-functions)
|
||||
- [Plugin: Unite](#plugin-unite)
|
||||
- [Plugin: neocomplete](#plugin-neocomplete)
|
||||
- [Plugin: NERD Commenter](#plugin-nerd-commenter)
|
||||
- [Plugin: Goyo and Limelight](#plugin-goyo-and-limelight)
|
||||
- [Plugin: ChooseWin](#plugin-choosewin)
|
||||
- [Plugin: Bookmarks](#plugin-bookmarks)
|
||||
- [Plugin: Gina/Gita](#plugin-ginagita)
|
||||
- [Plugin: vim-signify](#plugin-vim-signify)
|
||||
- [Misc Plugins](#misc-plugins)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user