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.
Related
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.
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.
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 used to be able to use ctrl-v and Shift-I to do multi line insert. I think it MIGHT have been caused by installing gvim? I have spent hours trying to fix this. I have tried running without plugins and removing .vimrc
my .vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
set nocompatible
set tabstop=2 "Set size of tab to 2 spaces
set shiftwidth=2
set expandtab "Turns tab into spaces
set autoindent "Automatically indents to the same indent next line
set smarttab "return on a tabbed line returns to that tabbed position
set number
set showcmd "shows last command typed
set wildmenu "Autocomplete menu that pops up at bottom
set showmatch
""SEARCH""
set incsearch "search as characters are entered
set hlsearch "highlights all words
""PASTE MODE""""""""""""""""""""""""""""
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set showmode
""SET COLORS"""""
colo solarized
set background=dark
augroup filetypedetect
au BufRead,BufNewFile *.hbs setfiletype html
" associate *.hbs with html filetype
augroup END
Global vimrc
runtime! debian.vim
if has("syntax")
syntax on
endif
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
i am use cygwin on windows7, syntax on in ~/.vimrc.
when i try to write a test shell file,there are so much underline,it's boring,how can i get rid of it?i try let html_no_rendering=1 ,but it doesn't work here,and these file is not html file .
here is my ~/.vimrc:
set nu
hi LineNr term=NONE cterm=NONE
set ts=4
set fenc=4
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
set nocp
set ai
set si
if &term != "cygwin"
set ruler
endif
set incsearch
set showmatch
set backspace=indent,eol,start
syntax on
set shiftwidth=4
set expandtab
set encoding=utf8
set fileencodings=utf8,gbk
set nocompatible
set history=50
set autoindent
set smartindent
set showmatch
set showcmd
set wildmenu
set fo=cqrt
set laststatus=2
set textwidth=78
filetype on
filetype plugin on
filetype indent on
set nobackup
The underlines are defined in your colorscheme. Open it and search for the word underline. You can change that value to:
bold
undercurl
reverse
inverse
italic
standout
NONE