vim-plug icon indicating copy to clipboard operation
vim-plug copied to clipboard

Nothing found under plugged folder after successful installing.

Open futurehome opened this issue 4 years ago • 4 comments

Explain the problem here ...

I use nvim.appimage in Linux system, and try to install easymotion, it looks installing is successful(see the pic below), but I can't find anything under plugged folder, and the plug doesn't work. Anything wrong with my setting?

Thanks, Alex



Snipaste_2021-12-18_12-22-39

  • Type:
    • [ ] Bug
    • [ ] Enhancement
    • [ ] Feature Request
    • √ Question
  • OS:
    • [ ] All/Other
    • √ Linux
    • [ ] OS X
    • [ ] Windows
  • Vim:
    • [ ] Terminal Vim
    • [ ] GVim
    • √ Neovim

futurehome avatar Dec 18 '21 04:12 futurehome

Could you show your vim-plug file that you use to install easymotion?

RayZ0rr avatar Jan 13 '22 21:01 RayZ0rr

image

futurehome avatar Jan 27 '22 09:01 futurehome

THIS IS OPTIONAL : If you have nothing important or not done anything with nvim yet, then clear everything inside ~/.config/nvim and ~/.local/share/nvim.

Then paste the following code in your vimrc file ( ~/.config/nvim/init.vim ) :

let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
  silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif

call plug#begin()
" The default plugin directory will be as follows:
"   - Vim (Linux/macOS): '~/.vim/plugged'
"   - Vim (Windows): '~/vimfiles/plugged'
"   - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
" You can specify a custom plugin directory by passing it as the argument
"   - e.g. `call plug#begin('~/.vim/plugged')`
"   - Avoid using standard Vim directory names like 'plugin'

" Make sure you use single quotes

" Shorthand notation; fetches https://github.com/easymotion/vim-easymotion
Plug 'easymotion/vim-easymotion'

call plug#end()

RayZ0rr avatar Jan 27 '22 11:01 RayZ0rr

To see stdpath('data'), open nvim, press :(shift key + ; key) and type: echo stdpath('data')

RayZ0rr avatar Jan 27 '22 11:01 RayZ0rr