Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim vundle colorschemes - vimrc

Tags:

vim

Hi I have been trying to configure vim on ubuntu.

All the packages seem to install fine. However if installing a colorscheme via vundle and then using colorscheme name it doesn't appear to find the scheme.

I have attempted to install railscasts, solarized and desert-warm but all have failed to load.

This is my .vimrc am I doing something wrong?

set nocompatible               " be iMproved
filetype off                   " required!

colorscheme desert-warm 

" next tab
map <F7> :tabn    
" previous tab
map <F8> :tabp
" Close Tab abd save
map <F9> ZZ
" open and edit file
map <F6> :tabedit

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

" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'

" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
Bundle 'desert-warm-256'
" vim-scripts repos

Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
Bundle 'https://github.com/vim-scripts/perl-support.vim.git'
Bundle 'https://github.com/Raimondi/delimitMate.git'
Bundle 'https://github.com/altercation/vim-colors-solarized.git'
Bundle 'https://github.com/jpo/vim-railscasts-theme.git'
" ...

filetype plugin indent on     " required!
"
" Brief help
" :BundleList          - list configured bundles
" :BundleInstall(!)    - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
like image 534
sayth Avatar asked Dec 09 '11 23:12

sayth


People also ask

How do I change vim color scheme permanently?

You can change color schemes at anytime in vi by typing colorscheme followed by a space and the name of the color scheme. For more color schemes, you can browse this library on the vim website. You can enable or disable colors by simply typing "syntax on" or "syntax off" in vi.

What are the default vim color schemes?

The default Vim color scheme in a light terminal is peachpuff . If you use a dark terminal, the initial color scheme is ron .

How do I download vim color schemes?

To install a new color scheme for Vim, you will need to download it from the git hub repository. Here I am going to download a vim theme “Monokai” from the Git repository. For Monokai color scheme, open the following link, then right-click and save it as . vim in your Downloads directory.

Where do I put vim Colorschemes?

vim files into ~ /. vim/colors/ or into ~/. config/nvim/colors/ , depending if you are Vim or Neovim. Add the line colorscheme <color-scheme-name> to your 'vimrc'.


2 Answers

Try moving the colorscheme call to the end of the file.

Also, the color scheme name from your example doesn't work for me—it should be colorscheme desert-warm-256. To see a list of color schemes currently installed, try entering :colorscheme <TAB> interactively.

like image 155
rockpiper Avatar answered Sep 22 '22 14:09

rockpiper


I think the answer to this question is that there is no call vundle#end() or syntax on in the original poster's .vimrc.

Adding these two lines and for example the colorscheme solarized line anywhere after the call vundle#end() would have solved the issue.

like image 35
carnust Avatar answered Sep 19 '22 14:09

carnust