vim in cygwin some strange underline,how can fix this? - vim

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

Related

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.

multiline insert (Shift-I) no longer works in vim

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

colorscheme set in .vimrc is not being applied

I have installed zenburn colorscheme to ~/.vim/colors and am trying to enable it by default in the .vimrc file.
I have added colorscheme zenburn to my .vimrc file but the colorscheme is not enabled after vim starts.
If I manually do :colorscheme zenburn it sets the colorscheme.
If I enable a colorscheme that comes with vi ( for eg desert ) in vimrc, its being enabled at vim startup.
This is my vimrc
filetype plugin on
filetype indent on
set nocompatible
set history=500
syntax on
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set number
set autoindent
set cindent
set showmatch
set matchtime=5
set ruler
set laststatus=2
set hlsearch
set incsearch
set cursorline
set scrolloff=5
"set nowrap
set foldenable
set foldmarker={,}
set foldmethod=marker
set foldlevel=100
"set mouse=a
"set mouse=r
colorscheme zenburn
What should I do to get zenburn colorscheme enabled at startup ?
In my case when colorscheme was the only command in .vimrc it did not work. I had to add syntax on command at the end to make it work.
$ cat ~/.vimrc
colorscheme zenburn
syntax on
Try to load .vimrc file again after vim is started with :source ~/.vimrc
Did the colorscheme changes?
Also if you use graphical vim, there is second file that can override your settings ~/.gvimrc
I had a similar issue, try putting the command for colorscheme at the bottom of .vimrc
I had the same problem, and I found the following solution: in your .cshrc file (or equivalent in your .bashrc file), add the following line:
alias vi 'vim "+colorscheme my_scheme"'
Pay attention to the quotes and double quotes.
try
set colorscheme zenburn
# or
set color zenburn

MacVim colorscheme on load

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.

Resources