diff --git a/config/plugins/vim-startify.vim b/config/plugins/vim-startify.vim index 105b01bd7..05129b166 100644 --- a/config/plugins/vim-startify.vim +++ b/config/plugins/vim-startify.vim @@ -47,17 +47,11 @@ let g:startify_skiplist = [ \ escape(fnamemodify(resolve($VIMRUNTIME), ':p'), '\') .'doc', \ 'bundle/.*/doc', \ ] -fu! startify_mapping() - if getcwd() == $VIM || getcwd() == expand('~') - nnoremap :CtrlP ~\DotFiles - endif - call s:update_logo() -endf augroup startify_map au! - autocmd FileType startify nnoremap + autocmd FileType startify nnoremap if !exists('g:startify_custom_header') - autocmd FileType startify call startify_mapping() + autocmd FileType startify call update_logo() endif autocmd FileType startify setl scrolloff=0 nowrap augroup END