mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.31k stars 187 forks source link

easymotion can not work in Startify Session #451

Closed captainfffsama closed 3 years ago

captainfffsama commented 3 years ago

My System: ubuntu 18.04 Neovim version:NVIM v0.5.0-dev

When I use SSave save the current layout to a startify session, then I open the session on the startify start page, My vim-easymotion seem can not work, but vim-plug show that easymotion have been load. here is my easymotion config:

map s <Plug>(easymotion-bd-f)
nmap s <Plug>(easymotion-overwin-f)

let g:EasyMotion_keys = 'abcdefghijklmnopqrstuvwx-^&*()+123456ABCDEF/;\=[]GHIJKLMNOPQRST7890UVWXYZyz'

map  S <Plug>(easymotion-bd-w)
nmap S <Plug>(easymotion-overwin-w)

map  gl <Plug>(easymotion-bd-jk)
nmap gl <Plug>(easymotion-overwin-line)

let g:EasyMotion_smartcase = 1

here is my startify config:

let g:startify_padding_left = 10
let g:startify_files_number = 6
let g:startify_dir_number = 6

" session
let g:startify_session_persistence    = 1
let g:startify_session_dir = g:session_dir

" bookmarks 书签
let g:startify_bookmarks = [
    ¦   ¦   \ '~/Documents/wiki/草稿/todo.md',
    ¦   ¦   \ '~/Documents/wiki/草稿/快速笔记.md',
    ¦   ¦   \ '~/.dotfiles/nvim/config/plug.vim'
    ¦   ¦   \ ]

" command 命令
let g:startify_commands = [
    \ {'u': ['插件更新', 'PlugUpdate']},
    \ {'t': ['打开终端', 'terminal']},
    \ {'w': ['笔记列表', 'VimwikiIndex']},
    \ {'s': ['启动时间', 'StartupTime']},
    \ ]

let g:startify_lists = [
    ¦  \ { 'type': 'sessions',  'header': ['        Sessions']       },
    ¦  \ { 'type': 'bookmarks', 'header': ['        Bookmarks']      },
    ¦  \ { 'type': 'files',     'header': ['        MRU']            },
    ¦  \ { 'type': 'dir',       'header': ['        MRU '. getcwd()] },
    ¦  \ { 'type': 'commands',  'header': ['        Commands']       },
    ¦  \ ]