Skip to content

Commit

Permalink
Make syntax and first-time loading fixes
Browse files Browse the repository at this point in the history
* Move syntax files to after dir to override system
* Fix chicken-egg loading of bundles on first start
  • Loading branch information
davidxia committed Jan 15, 2013
1 parent 3b92f17 commit f695b11
Show file tree
Hide file tree
Showing 12 changed files with 107 additions and 84 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
95 changes: 95 additions & 0 deletions bundles.vim
@@ -0,0 +1,95 @@
""""""""""""
" Vim Config
""""""""""""
"
"
" How this works:
"
"
" This file is minimal. Most of the vim settings and initialization is in
" several files in .vim/init. This makes it easier to find things and to
" merge between branches and repos.
"
" Please do not add configuration to this file, unless it *really* needs to
" come first or last, like Vundle and sourcing the machine-local config.
" Instead, add it to one of the files in .vim/init, or create a new one.



""""""""""""""""""""""""""""""""""""
" Vundle (This must happen first.)
""""""""""""""""""""""""""""""""""""

set nocompatible " don't care about vi-compatibility
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'

" Look and feel
Bundle 'altercation/vim-colors-solarized'
Bundle 'Lokaltog/vim-powerline'
Bundle 'surround.vim'

" Git
Bundle 'tpope/vim-git'
Bundle 'tpope/vim-fugitive'
Bundle 'gregsexton/gitv'

" Navigation
Bundle 'scrooloose/nerdtree'
Bundle 'majutsushi/tagbar'
Bundle 'kien/ctrlp.vim'
Bundle 'mileszs/ack.vim'
Bundle 'vim-scripts/TaskList.vim'
Bundle 'Python-mode-klen'

" Shortcuts
Bundle 'scrooloose/nerdcommenter'

" Autocompletion
Bundle 'ervandew/supertab'

" Syntax check
Bundle 'scrooloose/syntastic'

" Syntax support
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle 'honza/snipmate-snippets'
Bundle 'garbas/vim-snipmate'
Bundle 'pangloss/vim-javascript'
Bundle 'plasticboy/vim-markdown'
Bundle 'tpope/vim-haml'
Bundle 'framallo/asciidoc.vim'
Bundle 'beyondwords/vim-twig'
Bundle 'slim-template/vim-slim'
Bundle 'davidxia/vim-c'
Bundle 'jsoriano/vim-dbgp'

filetype plugin indent on
syntax on

" Bundle 'tpope/vim-vividchalk'
" Bundle 'vim-scripts/molokai'
" Bundle 'tpope/vim-rails.git'
" Bundle 'tpope/vim-cucumber'
" Bundle 'tpope/vim-endwise'
" Bundle 'tpope/vim-repeat'
" Bundle 'tpope/vim-abolish'
" Bundle 'ecomba/vim-ruby-refactoring'
" Bundle 'nelstrom/vim-textobj-rubyblock'
" Bundle 'kana/vim-textobj-user'
" Bundle 'tpope/vim-unimpaired'
" Bundle 'wgibbs/vim-irblack'
" Bundle 'vim-ruby/vim-ruby'
" Bundle 'sjl/gundo.vim'
" Bundle 'godlygeek/tabular'
" Bundle 'vim-scripts/candycode.vim'
" Bundle 'vim-scripts/Color-Sampler-Pack'
" Bundle 'vim-scripts/EnhancedJumps'
" Bundle 'camelpunch/test_server'
" Bundle 'matt-royal/diffthese'
" Bundle 'nono/vim-handlebars'
" Bundle 'fs111/pydoc.vim'
" bundle/cucumbertables/ftplugin
96 changes: 12 additions & 84 deletions vimrc
Expand Up @@ -5,94 +5,22 @@
"
" How this works:
"
" This file is minimal. Most of the vim settings and initialization is in
" several files in .vim/init. This makes it easier to find things and to
" merge between branches and repos.
"
" Please do not add configuration to this file, unless it *really* needs to
" come first or last, like Vundle and sourcing the machine-local config.
" Instead, add it to one of the files in .vim/init, or create a new one.


""""""""""""""""""""""""""""""""""""
" Vundle (This must happen first.)
""""""""""""""""""""""""""""""""""""

filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'

" Look and feel
Bundle 'altercation/vim-colors-solarized'
Bundle 'Lokaltog/vim-powerline'
Bundle 'surround.vim'

" Git
Bundle 'tpope/vim-git'
Bundle 'tpope/vim-fugitive'
Bundle 'gregsexton/gitv'

" Navigation
Bundle 'scrooloose/nerdtree'
Bundle 'majutsushi/tagbar'
Bundle 'kien/ctrlp.vim'
Bundle 'mileszs/ack.vim'
Bundle 'vim-scripts/TaskList.vim'
Bundle 'Python-mode-klen'

" Shortcuts
Bundle 'scrooloose/nerdcommenter'

" Autocompletion
Bundle 'ervandew/supertab'

" Syntax check
Bundle 'scrooloose/syntastic'

" Syntax support
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle 'honza/snipmate-snippets'
Bundle 'garbas/vim-snipmate'
Bundle 'pangloss/vim-javascript'
Bundle 'plasticboy/vim-markdown'
Bundle 'tpope/vim-haml'
Bundle 'framallo/asciidoc.vim'
Bundle 'beyondwords/vim-twig'
Bundle 'bbommarito/vim-slim'
Bundle 'davidxia/vim-c'
Bundle 'jsoriano/vim-dbgp'

filetype plugin indent on
syntax on

" Bundle 'tpope/vim-vividchalk'
" Bundle 'vim-scripts/molokai'
" Bundle 'tpope/vim-rails.git'
" Bundle 'tpope/vim-cucumber'
" Bundle 'tpope/vim-endwise'
" Bundle 'tpope/vim-repeat'
" Bundle 'tpope/vim-abolish'
" Bundle 'ecomba/vim-ruby-refactoring'
" Bundle 'nelstrom/vim-textobj-rubyblock'
" Bundle 'kana/vim-textobj-user'
" Bundle 'tpope/vim-unimpaired'
" Bundle 'wgibbs/vim-irblack'
" Bundle 'vim-ruby/vim-ruby'
" Bundle 'sjl/gundo.vim'
" Bundle 'godlygeek/tabular'
" Bundle 'vim-scripts/candycode.vim'
" Bundle 'vim-scripts/Color-Sampler-Pack'
" Bundle 'vim-scripts/EnhancedJumps'
" Bundle 'camelpunch/test_server'
" Bundle 'matt-royal/diffthese'
" Bundle 'nono/vim-handlebars'
" Bundle 'fs111/pydoc.vim'
" bundle/cucumbertables/ftplugin
" This file is responsible for loading Vundle-dependent options. bundles.vim
" specifies which bundles are enabled. These two files are separated to avoid
" the chicken-and-egg error of Vim being unable to load bundles the first time
" it's started (because we haven't run :BundleInstall yet).
"
"
" This file should be minimal. General configuration should be added to
" .vim/init.


""""""""""""""""""""""""""""""""""
" Vundle and bundles configuration
""""""""""""""""""""""""""""""""""

source ~/.vim/bundles.vim


"""""""""""""""""""""""""""""
Expand Down

0 comments on commit f695b11

Please sign in to comment.