NeoVim Plugin not getting installed. (Using vim-plug) - vim

Please help me I am facing this weird issue while setting up my init.vim for my NeoVim. So the following is my init.vim file. That does not show any errors. But when I want to install the plugins. After I run :PlugInstall only vim-code-dark is getting Installed. The other Plugins i.e. vim-polyglot and NERDTree isn't getting installed. PLEASE PLEASE PLEASE tell me where have I gone wrong. I am stuck here since like 2 days but can't setup my Vim editor.
" Auto-Install vim-plug
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
"autocmd VimEnter * PlugInstall
"autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
"__________________________________________________________________________________________
" Vim-Editor Plugins
call plug#begin('~/.config/nvim/autoload/plugged')
Plug 'sheerun/vim-polyglot'
Plug 'scrooloose/NERDTree'
Plug 'jiangmiao/auto-pairs'
call plug#end()
"__________________________________________________________________________________________
" General Editor Settings
" set leader key
let g:mapleader = "\<ALT>"
" vim basics
set encoding=utf-8
syntax enable
set relativenumber
set noswapfile
set scrolloff=4
set backspace=indent,eol,start
" vim basics
set encoding=utf-8
syntax enable
set relativenumber
set noswapfile
set scrolloff=4
set backspace=indent,eol,start
" indentation
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set fileformat=unix
set incsearch
set ignorecase
set smartcase
set nohlsearch
set nobackup
set nowrap
filetype plugin indent on
" autocompletion
set updatetime=300
"__________________________________________________________________________________________
" Vim Themes
call plug#begin('~/.config/nvim/autoload/plugged')
Plug 'tomasiser/vim-code-dark'
call plug#end()
colorscheme codedark
let g:airline_theme = 'codedark'

You have two plug-blocks, that'll confuse vim-plug. Move vim-code-dark into the earlier plug-block and delete the second one.

Related

E492: Not an editor command: Pluginstall

so im trying to install some plugins for vim but some errors pop up "E492: Not an editor command: Pluginstall" i downloaded Vundle and i think i entered other thing correctly
syntax on
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg=lightgrey
call vundle#begin()
Plug 'gmarik/vundle'
Plug 'morhetz/gruvbox'
plug 'jremmen/vim-ripgrep'
Plug 'tpope/vim-fugitive'
Plug 'vim-utils/vim-man'
Plug 'git#github.com:kien/ctrlp.vim.git'
Plug 'git#github.com:Valloric/YouCompleteMe.git'
Plug 'mbill/undotree'
call vundle#end()
filetype plugin indent on
and source % works fine but when i type :PluginInstall the error pop up
If you use Vundle the commands are Plugin and PluginInstall.
Commands Plug and PlugInstall are for vim-plug.

Error detected while processing function vundle#installer#new

i dont know why this dont work, source % works fine but when i type :PluginInstall the error pop up
"Error detected while processing function vundle#installer#new"
and this too "No bundles were selected for operation"
syntax on
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg=lightgrey
call vundle#begin()
Plugin 'gmarik/vundle'
Plugin 'morhetz/gruvbox'
plugin 'jremmen/vim-ripgrep'
Plugin 'tpope/vim-fugitive'
Plugin 'vim-utils/vim-man'
Plugin 'git#github.com:kien/ctrlp.vim.git'
Plugin 'git#github.com:Valloric/YouCompleteMe.git'
Plugin 'mbill/undotree'
call vundle#end()
filetype plugin indent on
You can add the following line to your .vimrc
set shell=/bin/bash
There is a closed issue which describes error similar to yours.
In installation guide you can see that set shell=/bin/bash is recommended to be used in fish shell.
(optional) For those using the fish shell: add set shell=/bin/bash to your .vimrc
You may not be using fish shell but that is solution recommended in the issue.

why vim plugin 'itchyny/lightline.vim' colorscheme doesn't change when starting vim?

I'm using vim on Mac OS, and installed 'itchyny/lightline.vim' plugin.
As I expect, adding
let g:lightline = {
\ 'colorscheme': 'wombat',
\ }
should change my lightline colorscheme to 'wombat', but it doesn't work when I start vim.
But if i do something, like :PluginInstall, its colorscheme changes.
How can I change my vim-lightline to always show 'wombat' colorscheme?
Below is my .vimrc.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'vim-airline/vim-airline'
Plugin 'scrooloose/nerdtree'
Plugin 'airblade/vim-gitgutter'
Plugin 'itchyny/lightline.vim'
call vundle#end()
filetype plugin indent on
syntax on
set number
set title
set showmatch
set ruler
set ignorecase
set hlsearch
set encoding=utf-8
set termencoding=utf-8
set nobackup
set nowrap
set wmnu
set t_Co=256
set autoindent
set smartindent
set backspace=indent,eol,start
set tabstop=2
set softtabstop=2
set shiftwidth=2
set smarttab
set expandtab
set cursorline
set updatetime=100
set laststatus=2
let g:lightline = {
\ 'colorscheme': 'wombat',
\ }
set background=dark
colorscheme default
You've got both airline and lightline listed in your plugins section. Try commenting out or removing airline and see if there's any improvement.

Vim - Random "syntax=" text appearing in editor

Here's what I'm talking about.
On line 2 there is this highlighted block of "syntax=" text. It doesn't belong there and and will appear (seemingly) randomly. If I sweep over it in visual mode it goes away. I suspect that it's something to do with syntastic but I could easily be wrong since I'm only an intermediate when it comes to vim.
Here are the plugins I'm using,
YouCompleteMe
emmet-vim
html5.vim
nerdcommenter
python-mode
syntastic
tmp
vim-airline
vim-colors-solarized
vim-gitgutter
vim-javascript-syntax
vim-jinja
vim-js-indent
and here's my vimrc
execute pathogen#infect()
execute pathogen#helptags()
syntax on
" set [normal],rc open up the vimrc in a new buffer
let mapleader = ","
nmap <leader>rc :tabedit $MYVIMRC <CR>
" Stock Configurations
set laststatus=2
set nu
set t_Co=256
set autoread
set background=dark
set shiftwidth=4
set tabstop=4
set autoindent
set noswapfile
set nocompatible
set nowrap
set syntax
colorscheme solarized
" Autoclose YouCompleteMe Documentation Preivew after inserting
let g:ycm_autoclose_preview_window_after_insertion = 1
" Set the powerline fonts
let g:airline_powerline_fonts = 1
Also! Feel free to critique and make suggestions about my plugins and vimrc. I haven't spent a lot of time tuning things so any input would be rad!

VIM: .vimrc not working as expected on Mint13 XFCE, works on MacVim

Vim-newbie here...
I've been learning vim at work using a Mac.
I added my .vimrc to my github repo and expected Vundle to
download everything and have vim working the same on my home Mint 13 laptop.
I've linked my ~/.vim/.vimrc to ~/.vimrc.
I followed these instructions for building vim 7.4 and having a working vim.
I know that some parts of the .vimrc file are read, b/c my
remapped esc sequence is working.
Nothing else appears to work, not even line numbers.
vim --version
vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 25 2015 20:30:46)
Included patches: 1-640
vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" Keep Plugin commands between vundle#begin/end.
Bundle 'nanotech/jellybeans.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'flazz/vim-colorschemes'
Bundle 'fs111/pydoc.vim'
Bundle 'hdima/python-syntax'
Bundle 'scrooloose/nerdtree'
Bundle 'tmhedberg/SimpylFold'
Bundle 'scrooloose/syntastic'
Bundle 'kien/rainbow_parentheses.vim'
call vundle#end() " required
filetype plugin indent on " required
syntax enable
set foldmethod=indent
set foldlevel=99
setlocal foldmethod=indent
set background=dark
set tabstop=4
set expandtab
set shiftwidth=4
set shiftround
set number
let mapleader=","
set hlsearch
set mouse=a
set nojoinspaces
set smarttab
nnoremap <leader>n :NERDTree<CR>
imap fj <Esc>
colorscheme jellybeans
" rainbow parens
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
It would appear, that once again I've been bitten by XFCE.
This link gave me the hint I needed, setting my terminal
colos with:
set t_Co=256
Now more features are working as I expected, except that the color scheme
jellybeans is no longer so great.
Rainbowparens is not working.
EDIT:
Using more colors allows rainbow parens to work...
set t_Co=512

Resources