0

I installed Vundle and it does work. I can open a blank or existing file in vim and use Bundle commands just fine. However, when I use vim to edit my vimrc file in /etc/vim, I get the following error:

Error detected while processing /usr/share/vim/vimrc:
line 50:
E117: Unknown function: vundle#rc
line 59:
E492: Not an editor command: :Bundle 'gmarik/vundle'

Here is the contents of my vimrc file, I copied the lines used in vundle installation and checked for mistakes:

:set nocompatible
:filetype off

:set rtp+=~/.vim/bundle/vundle/
:call vundle#rc()

:syntax on

:set cursorline cursorcolumn
:hi CursorLine cterm=NONE ctermbg=green ctermfg=white guibg=144 guifg=144
:hi CursorColumn cterm=NONE ctermbg=green ctermfg=white guibg=144 guifg=144
:nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>

:Bundle 'gmarik/vundle'


:filetype plugin indent on

" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
  source /etc/vim/vimrc.local
endif

1 Answer 1

1

NEVER do anything inside $VIMRUNTIME. All your settings belong to the ~/.vimrc file and all your plugins/colorschemes/whatever belong to the ~/.vim directory.

Return $VIMRUNTIME to its pristine state and put all your settings and plugins where they belong.

Also, you don't need the : before Ex commands in a script.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.