Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! DisplayColorSchemes()
- let currDir = getcwd()
- exec "cd $VIMRUNTIME/colors"
- for myCol in split(glob("*"), 'n')
- if myCol =~ '.vim'
- let mycol = substitute(myCol, '.vim', '', '')
- exec "colorscheme " . mycol
- exec "redraw!"
- echo "colorscheme = ". myCol
- sleep 2
- endif
- endfor
- exec "cd " . currDir
- endfunction
- " Returns the list of available color schemes
- function! GetColorSchemes()
- return uniq(sort(map(
- globpath(&runtimepath, "colors/*.vim", 0, 1),
- 'fnamemodify(v:val, ":t:r")'
- )))
- endfunction
- let s:schemes = GetColorSchemes()
- if index(s:schemes, 'solarized') >= 0
- colorscheme solarized
- elseif index(s:schemes, 'darkblue') >= 0
- colorscheme darkblue
- endif
- set wildmenu
- set wildmode=list:full
- set wildcharm=<C-z>
- let mapleader=','
- nnoremap <leader>c :colorscheme <C-z><S-Tab>
- blue.vim
- darkblue.vim
- default.vim
- delek.vim
- desert.vim
- elflord.vim
- evening.vim
- industry.vim
- koehler.vim
- morning.vim
- murphy.vim
- pablo.vim
- peachpuff.vim
- ron.vim
- shine.vim
- slate.vim
- torte.vim
- zellner.vim
Add Comment
Please, Sign In to add comment