From 3e9f091f7014dff64d7b3e49479264b065df0c69 Mon Sep 17 00:00:00 2001 From: tenfy Date: Mon, 26 Jun 2017 13:13:50 +0800 Subject: [PATCH] Fix #667. fix the mapping error and some command error. But I don't found the `Missing: endfor` and `Missing: endif` error. --- autoload/SpaceVim/layers/tools.vim | 2 +- config/commands.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/SpaceVim/layers/tools.vim b/autoload/SpaceVim/layers/tools.vim index 45c8cd7c2..13fabf06f 100644 --- a/autoload/SpaceVim/layers/tools.vim +++ b/autoload/SpaceVim/layers/tools.vim @@ -71,7 +71,7 @@ function! SpaceVim#layers#tools#config() abort if maparg('', 'n') ==# '' nnoremap :Ydc endif - map td TaskList + map td TaskList noremap :TlistToggle function! OpenOrCloseNERDTree() abort exec 'normal! A' diff --git a/config/commands.vim b/config/commands.vim index 804c5b58a..7d5bd724f 100644 --- a/config/commands.vim +++ b/config/commands.vim @@ -3,6 +3,6 @@ " defined already. command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis \ | wincmd p | diffthis -command -nargs=* -complete=custom,zvim#util#complete_plugs Plugin :call zvim#util#Plugin() +command! -nargs=* -complete=custom,zvim#util#complete_plugs Plugin :call zvim#util#Plugin() "command for open project -command -nargs=+ -complete=custom,zvim#util#complete_project OpenProject :call zvim#util#OpenProject() +command! -nargs=+ -complete=custom,zvim#util#complete_project OpenProject :call zvim#util#OpenProject()