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.
Related
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab
set nu
set autoindent
set cindent
set encoding=utf-8
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
filetype plugin indent on
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4
I added the last two lines into .vimrc but received this error message:
-bash: filetype: command not found
-bash: autocmd: command not found
I haven't used this plugin before and what's the proper way to enable it? My purpose is to avoid the error message when I edit a file with vim on a Linux machine remotely:
TabError: inconsistent use of tabs and spaces in indentation
-bash: filetype: command not found
-bash: autocmd: command not found
These errors seem to be printed by bash,
did you run something like source .vimrc?
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.
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.
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.
I have installed a new colorscheme. I added it to my .vimrc but when I load up macvim its not loading up. After loading a file if I type :colorscheme sourcerer it loads up. What am I missing here?
" General -----------------------
set nocompatible " Makes vim better
scriptencoding utf-8 " Setting everything to UTF-8
set encoding=utf-8
set history=256
set timeoutlen=250
set clipboard+=unnamed
let g:autotagTagsFile = ".git/tags"
set tags=.git/tags;$HOME/.tags
set nobackup
set nowritebackup
set directory=/tmp//
set noswapfile
set hlsearch
set ignorecase
set smartcase
set incsearch
let mapleader = ','
let maplocalleader = ' '
let g:netrw_banner = 0
" Formatting --------------------
set nowrap
set tabstop=4
set softtabstop=4
set shiftwidth=4
set backspace=indent
set backspace+=eol
set backspace+=start
set autoindent
set cindent
set indentkeys-=0#
set cinkeys-=0#
set cinoptions=:s,ps,ts,cs
set cinwords=if,else,while,do
set cinwords+=for,switch,case
" Visual ------------------------
syntax on
set showmatch
colorscheme sourcerer
if has('gui_running')
set guifont=InputMono:h14
if has('mac')
set noantialias
endif
endif
set novisualbell
set noerrorbells
set vb t_vb=
" Plugins ------------------------
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'xero/sourcerer.vim'
call vundle#end()
filetype plugin indent on
You need to put the line containing colorscheme sourcerer below the Vundle setup stuff. It seems like it should have given you some related error. With your original .vimrc I’m given the message:
Error detected while processing /home/xyz/.vimrc:
line 50:
E185: Cannot find color scheme 'sourcerer'No protocol specified
Press ENTER or type command to continue
But moving the colorscheme line to the bottom works well.