forked from liuchengxu/space-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Speed up startup radically * Remove immature menu.vim * Rename some variables * Defer python * Defer better-defaults * Defer programming * Do not load all the markdown plugins The vim-markdown plugins really costs much to load. I can do nothing but only using timer to load vim-markdown, leaving markdown-down-toc and markdown-preview.vim on-demand loading. * Increase markdown timer delay
- Loading branch information
1 parent
6dd173d
commit 51d367f
Showing
16 changed files
with
117 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
nmap <buffer> <LocalLeader>b :<C-U>call spacevim#lang#go#BuildGoFiles()<CR> | ||
nmap <buffer> <LocalLeader>r <Plug>(go-run) | ||
nmap <buffer> <LocalLeader>t <Plug>(go-test) | ||
if !exists('g:spacevim_go_loaded') | ||
if g:spacevim_timer | ||
call timer_start(300, 'spacevim#defer#go') | ||
endif | ||
let g:spacevim_go_loaded = 1 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
nnoremap <buffer> <LocalLeader>r :<C-U>call spacevim#lang#rust#Run()<CR> | ||
nnoremap <buffer> <LocalLeader>b :<C-U>call spacevim#lang#rust#Build()<CR> | ||
nnoremap <buffer> <LocalLeader>= :RustFmt<CR> | ||
if !exists('g:spacevim_rust_loaded') | ||
if g:spacevim_timer | ||
call timer_start(300, 'spacevim#defer#rust') | ||
endif | ||
let g:spacevim_rust_loaded = 1 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
MP 'fatih/vim-go', { 'for': 'go', 'do': ':GoInstallBinaries' } | ||
if g:spacevim_timer | ||
MP 'fatih/vim-go', { 'on': [], 'do': ':GoInstallBinaries' } | ||
else | ||
MP 'fatih/vim-go', { 'for': 'go', 'do': ':GoInstallBinaries' } | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
if g:spacevim_vim8 || g:spacevim_nvim | ||
if g:spacevim_timer | ||
MP 'plasticboy/vim-markdown', { 'on': [] } | ||
MP 'mzlogin/vim-markdown-toc', { 'on': [] } | ||
MP 'iamcco/markdown-preview.vim', { 'on': [] } | ||
else | ||
MP 'plasticboy/vim-markdown', { 'for': 'markdown' } | ||
MP 'mzlogin/vim-markdown-toc', { 'for': 'markdown' } | ||
MP 'iamcco/markdown-preview.vim', { 'on': 'MarkdownPreview' } | ||
endif | ||
|
||
MP 'mzlogin/vim-markdown-toc', { 'on': ['GenTocGFM', 'GenTocRedcarpet', 'GenTocGitLab'] } | ||
MP 'iamcco/markdown-preview.vim', { 'on': ['MarkdownPreview'] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
MP 'tmhedberg/SimpylFold', { 'for': 'python' } | ||
MP 'python-mode/python-mode', { 'for': 'python' } | ||
if g:spacevim_timer | ||
MP 'tmhedberg/SimpylFold', { 'on': [] } | ||
MP 'python-mode/python-mode', { 'on': [] } | ||
else | ||
MP 'tmhedberg/SimpylFold', { 'for': 'python' } | ||
MP 'python-mode/python-mode', { 'for': 'python' } | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
MP 'rust-lang/rust.vim' | ||
if g:spacevim_timer | ||
MP 'rust-lang/rust.vim', { 'on': [] } | ||
else | ||
MP 'rust-lang/rust.vim', { 'for': 'rust' } | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
if g:spacevim_gui && !has('terminal') | ||
MP 'Yggdroot/LeaderF' | ||
else | ||
MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | MP 'junegunn/fzf.vim' | ||
if g:spacevim_timer | ||
MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all', 'on': [] } | ||
MP 'junegunn/fzf.vim', { 'on': [] } | ||
call timer_start(700, 'spacevim#defer#fzf') | ||
else | ||
MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | ||
MP 'junegunn/fzf.vim' | ||
endif | ||
MP 'tweekmonster/fzf-filemru', { 'on': 'ProjectMru' } | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters