Hmm, there are a lot of things going on here. First of all, do you have
vim-plug actually installed? Does it work in terminal Vim? You probably
want to put the plug initializations in your vimrc instead of gvimrc.
gvimrc should only be for GUI specific options.

Also, gvimrc is loaded automatically by MacVim (or any gVim). You shouldn't
need to load it in manually.

I'm not sure why you are getting a syntax error though. My guess is there
are some whitespace / newline issues, but it's hard to tell unless you
attach a file (you probably want to file an issue at
https://github.com/macvim-dev/macvim/issues instead).

On Wed, Apr 8, 2020 at 5:35 PM James Dekker <james.dek...@gmail.com> wrote:

> Am using macvim 8.2.319 (installed it by running the downloaded dmg file)
> on macOS Catalina (10.15.4).
>
> My .gvimrc file:
>
> set guifont=JetBrains\ Mono:h15
> set nu!
>
> call plug#begin('~/.vim/plugged')
> Plug 'itchyny/lightline.vim'
> Plug 'preservim/nerdtree'
> call plug#end()
>
> map <C-t> :NERDTreeToggle<CR>
>
> My When I try to load it using either:
>
> . .gvimrc
>
> or
>
> source .gvimrc
>
> It outputs the following error:
>
> -bash: .gvimrc: line 4: syntax error near unexpected token `('
> -bash: .gvimrc: line 4: `call plug#begin('~/.vim/plugged')'
>
> When I run macvim by doing this:
>
> gvim Hello.py
>
> The line numbers are set but I can't see liteline anywhere (I did do a
> PlugInstall and PlugUpdate).
>
> When I try to open NERD tree by clicking on Control-t, it states this:
>
> E492: Not an editor command: NERDTreeToggle
>
> By, the way, I don't have a .vimrc file created...
>
> Why are the NERDTree and liteline plug-ins not working on macvim?
>
> --
> --
> You received this message from the "vim_mac" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_mac" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_mac+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vim_mac/caf3a56d-c658-4bd7-ac28-02dcb346db58%40googlegroups.com
> <https://groups.google.com/d/msgid/vim_mac/caf3a56d-c658-4bd7-ac28-02dcb346db58%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_mac+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_mac/CAHTeOx_CU-HxRDFaGsSm7bmVkMrR25eh2o9y_iw6LrbcLe7q3w%40mail.gmail.com.

Reply via email to