I am trying to setup Vim with Vundle and I am right now trying to use the color scheme plugin for Vundle. However, whenever I try to source and save my ~/.vimrc file, it tells me that the color scheme that I am trying to use is not a valid color scheme. Note: when I source my ~/.vimrc file, the color scheme works but I get an error that:
Vundle error: Name collision for Plugin VundleVim/Vundle.vim.
Plugin VundleVim/Vundle.vim previously used the name "Vundle.vim".
Skipping Plugin VundleVim/Vundle.vim.
and an error that:
Error detected while processing function vundle#config#bundle..<SNR>8_check_bundle_name
My ~/.vimrc file:
1 set nocompatible " be iMproved, required
2 filetype off " required
3
4 " set the runtime path to include Vundle and initialize
5 " set rtp+=~/.vim/bundle/Vundle.vim
6 " call vundle#begin()
7 " " alternatively, pass a path where Vundle should install plugins
8 " "call vundle#begin('~/some/path/here')
9 "
10 " " let Vundle manage Vundle, required
11 Plugin 'VundleVim/Vundle.vim'
12 Plugin 'flazz/vim-colorschemes'
13 "
14 " " All of your Plugins must be added before the following line
15 " call vundle#end() " required
16 " filetype plugin indent on " required
17 "
18
19 " Some settings to enable the theme:
20 set number
21 syntax enable
22 set background=dark
23 colorscheme molokai
Related
Error detected while processing /home/USER/.vimrc:
line 31:
E492: Not an editor command: bundle ‘vim-ruby/vim-ruby'
I need help. I switched to vim and its been hell as of now. I dont even know whats going on since morning trying to find out what am i doing wrong.
1 set number
2
3 set nocompatible " be iMproved, required
4 filetype off " required
5
6 " set the runtime path to include Vundle and initialize
7 set rtp+=~/.vim/bundle/Vundle.vim
8 call vundle#begin()
9 " alternatively, pass a path where Vundle should install plugins
10 "call vundle#begin('~/some/path/here')
11
12 " let Vundle manage Vundle, required
13 Plugin 'VundleVim/Vundle.vim'
14
15 " The following are examples of different formats supported.
16 " Keep Plugin commands between vundle#begin/end.
17 " plugin on GitHub repo
18 Plugin 'tpope/vim-fugitive'
19 " plugin from http://vim-scripts.org/vim/scripts.html
20 " Plugin 'L9'
21 " Git plugin not hosted on GitHub
22 Plugin 'https://github.com/wincent/Command-T.git'
23 " git repos on your local machine (i.e. when working on your own plugin)
24 " The sparkup vim script is in a subdirectory of this repo called vim.
25 " Pass the path to set the runtimepath properly.
26 Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
27 " Install L9 and avoid a Naming conflict if you've already installed a
28 " different version somewhere else.
29 " Plugin 'ascenator/L9', {'name': 'newL9'}
30
31 bundle ‘vim-ruby/vim-ruby'
32 " All of your Plugins must be added before the following line
33 call vundle#end() " required
34 filetype plugin indent on " required
35 " To ignore plugin indent changes, instead use:
36 "filetype plugin on
37 "
38 " Brief help
39 " :PluginList - lists configured plugins
40 " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
41 " :PluginSearch foo - searches for foo; append `!` to refresh local cache
42 " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
43 "
44 " see :h vundle for more details or wiki for FAQ
45 " Put your non-Plugin stuff after this line
You are using the wrong command to install the vim-ruby plugin. You can refer to the project's documentation for more details. As for your .vimrc, the correct installation with Vundle should be like this:
call vundle#begin()
Plugin 'vim-ruby/vim-ruby'
call vundle#end()
After modifying your .vimrc, run the :PluginInstall command from within vim.
I have the following problem with Vim: When I open a file, I can't delete any char/word if I'm in insert mode except what was not already written before opening the file.
In normal mode, every word/char delete command like x or dw work.
My .vimrc:
" Vundle configuration
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()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" ck the engine.
Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'
" colorsheme theme
Bundle 'altercation/vim-colors-solarized'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<S-tab>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
set history=100
set number
set tabstop=3
set expandtab "use space instead of tab
set shiftwidth=3 "number of space char inserted for identation
syntax on
set background=dark
let g:solarized_termcolors = 256
colorscheme solarized
"Build Latex
autocmd FileType tex setlocal makeprg=pdflatex\ --shell-escape\ '%'
function CompileXeTex()
let oldCompileRule=g:Tex_CompileRule_pdf
let g:Tex_CompileRule_pdf = 'xelatex -aux-directory=F:/Vim/my_latex_doc/temp --synctex=-1 -src-specials -interaction=nonstopmode $*'
call Tex_RunLaTeX()
let g:Tex_CompileRule_pdf=oldCompileRule
endfunction
map <Leader>lx :<C-U>call CompileXeTex()<CR>
" Use fd as escape
:imap fd <Esc>
Thank you in advance for your help.
From Vim help manual, backspace default is "":
When the value is empty, Vi compatible backspacing is used.
Vi compatible backspacing works like <Left>. So set backspace:
" set the backspace to delete normally
set backspace=indent,eol,start
This is my .vimrc located under $HOME/.vimrc. I've installed Vundle.
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()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'dracula/dracula-theme'
call vundle#end() " required
filetype plugin indent on " required
" Put your non-Plugin stuff after this line
I'm able to execute :PluginInstall successfully installing dracula-theme. Unfortunately the theme is not applied and the style remains unchanged? Any clues?
Adding Plugin 'dracula/dracula-theme' to your vimrc and using :PluginInstall make the colorscheme available to Vim but it doesn't say to Vim to use it.
As #dNitro said in the comment you have to use the command colorscheme to set the desired colorscheme. Thus you need to add a line colorscheme dracula to your vimrc after the line " Put your non-Plugin stuff after this line.
VIM starts with a message "Press ENTER or type command to continue", it happens for VIM, but not GVIM, GVIM starts without showing "Press ENTER or type command to continue”.
The Vundle settings in my .vimrc file, OS is windows 7.
"""""""""""""""""""""""""""Vundle start"""""""""""""""""""""""""""""""""
" set the runtime path to include Vundle and initialize
set rtp+=C:/Users/penpan/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}
"NERDTree
Plugin 'https://github.com/scrooloose/nerdtree.git'
"color scheme molokai
Plugin 'tomasr/molokai'
"Match Tag
Plugin 'Valloric/MatchTagAlways'
"ctags
Plugin 'szw/vim-tags'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
""""""""""""""""""""""""""""End Vundle"""""""""""""""""""""""""""""""""
I comment this line:
call vundle#end() " required
Then it is ok! VIM starts without showing press enter prompt. so I believe this call makes the prompt happening. I add silent! in front of it as below:
silent! call vundle#end()
but no use, VIM still show the prompt.
and add below in .vimrc:
set shortmess+=T
set cmdheight=2
does not work.
I tried to find answer in google, fine many suggestions, but none of them work :(
Vundle is a common plugin, has anyone have the same question with me?
Appreciate if you can help.
only if I remove below, the press enter prompt disappears:
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
""""""""""""""""""""""""""""End Vundle"""""""""""""""""""""""""""""""""
colorscheme molokai "because molokai is installed by Vundle, so it only work after Vundle is lunched!
=================================fixed====================================
after I remove plugin MatchTagAlways in vundle config, issue fixed.below is the steps I find the issue:
firstly, you need to know what config area cause the issue, for me, it is the config of Vundle.
add :redraw! after call vundle#begin() and call vundle#end()
open vim, it will show the error message above the press enter message
before:
Press ENTER or type command to continue
after:
MatchTagAlways unavailable: requires python.
Press ENTER or type command to continue
now we get the root cause. fix it, or remove the plugin.
ps: gvim has +python3/dyn support, but vim haven't. so vim have the error if plugin MatchTagAlways installed.
set shortmess=a in your .vimrc should stop that.
This wiki appears to be the authority on the issue:
http://vim.wikia.com/wiki/Avoiding_the_%22Hit_ENTER_to_continue%22_prompts
I have some erb code:
... some code
<%= yield %>
When I try to type <%= in line next to yield one, vim freezes for a second before outputing %, the same with =. When I try it line above yield it outputs all characters without any delay.
I'm not sure, but it looks like it's working this way only in this file.
Any idea what's wrong?
My .vimrc file:
set nocompatible " be iMproved
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
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-surround'
Plugin 'flazz/vim-colorschemes'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" basic settings
syntax enable
set hidden " hide buffer instead of closing it
set number " line numbers
set laststatus=2 " display the status line always
set cursorline " highlight the line of the cursor
" Whitespace
set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
set expandtab " use spaces, not tabs (optional)
set backspace=indent,eol,start " backspace through everything in insert mode
" set list " display unprintable characters with '^' and put $ after the line
set scrolloff=3 " have some context around the current line always on screen
" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letterset nocompatible
set noswapfile
set clipboard=unnamedplus " alias unnamed register to the + register, which is the X Window clipboard
:nnoremap <CR> :nohlsearch<cr> " clear the search buffer when hitting return
set t_Co=256
set background=dark
colorscheme solarized
"http://askubuntu.com/questions/392573/how-do-i-get-vim-to-indent-all-html-tags
let g:html_indent_inctags = "html,body,head,tbody"
I added set re=1 to my .vimrc and it works much better now.