-1

I am in newbie to Neovim.

I have tried CMD Y but it is not working.

4
  • Did you solve your question? Is the answer solve your problem? If so maybe could you accept the solution using the v green button next to the arrow voting button. It help the question to rest :-) Feb 22 at 15:33
  • It's not "CMD Y", it's "CTRL Y".
    – romainl
    Feb 23 at 6:36
  • @romainl "CTRL Y" also does not work.
    – GroxDots
    Feb 24 at 3:03
  • Use the plugin's issue tracker, then.
    – romainl
    Feb 24 at 7:07

1 Answer 1

1

To make Ctrl-y expand the Emmet snippets I had (on Windows 10) to add the following line into ~/.config/nvim/init.vim:

let g:user_emmet_expandabbr_key='<C-y>'

For make Cmd-y expand the Emmet snippets on Mac you should probably add the following line into init.vim:

let g:user_emmet_expandabbr_key='<D-y>'

Or in ~/.config/nvim/init.lua:

vim.g.user_emmet_expandabbr='<D-y>'

Remark: One way to have vim-plug installed on MacOs for Neovim is to run in a console the following commands:

curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

I got the information from: Neovim for MacOS

Remark: to have Emmet installed you need to:

  1. Have the Plug emmet command in your init.vim:
call plug#begin()
Plug 'mattn/emmet-vim'
call plug#end()
  1. Restart Neovim
  2. Run the :PlugInstall command
25
  • When I try to install emmet using vim plug it gives me the following two errors: E117: Unknown function: plug#begin and E492: Not an editor command: Plug 'mattn/emmet-vim'. What am I doing wrong?
    – GroxDots
    Feb 18 at 22:03
  • It looks that vm-plug is not installed correctly. Feb 19 at 1:52
  • 1
    After the command ~curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim~ I was able to install vim-plug. Now how to install emmet?
    – GroxDots
    Feb 24 at 2:44
  • 1
    Emmet-vim was installed but I cannot get to expand the snippets.
    – GroxDots
    Feb 24 at 15:29
  • 1
    'set nocompatible' is ignored in Neovim, as it is always "nocompatible".
    – Rich
    Mar 9 at 10:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.