2012-09-08 02:33:24 +00:00
|
|
|
|
" vim config
|
|
|
|
|
" Ryan Cavicchioni
|
|
|
|
|
|
|
|
|
|
if $MONO != "yes"
|
|
|
|
|
set t_Co=256 " Set to 256 color mode.
|
|
|
|
|
syntax on " Enable syntax highlighting.
|
|
|
|
|
set nonumber " Enable line numbering.
|
|
|
|
|
else
|
|
|
|
|
" makes the autocmd's work when in MONO mode.
|
|
|
|
|
filetype on
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
set nowrap " Disable word wrap.
|
|
|
|
|
set tabstop=4 " Set tab to 4 characters.
|
|
|
|
|
set smartindent " Enable smart indent.
|
|
|
|
|
set autoindent
|
|
|
|
|
set shiftwidth=4 " Set smartindent width to 4 characters.
|
|
|
|
|
set hlsearch " Highlight search and increment search.
|
|
|
|
|
set incsearch
|
|
|
|
|
set showmatch " Show matching brackets.
|
|
|
|
|
set nomodeline " Disable modeline support.
|
|
|
|
|
set softtabstop=4
|
|
|
|
|
set showcmd " Show partial command in status line.
|
|
|
|
|
set ignorecase " Case insensitive searching.
|
|
|
|
|
set smartcase " Smart case matching.
|
|
|
|
|
set autowrite " Save before switching buffers.
|
|
|
|
|
set number
|
|
|
|
|
set smarttab
|
|
|
|
|
set listchars=tab:<3A>\ ,eol:$
|
|
|
|
|
set expandtab
|
|
|
|
|
set backspace=indent,eol
|
|
|
|
|
set textwidth=80
|
|
|
|
|
set spell
|
2012-10-09 19:58:51 +00:00
|
|
|
|
set ruler
|
2012-09-08 02:33:24 +00:00
|
|
|
|
|
|
|
|
|
if has("win32")
|
|
|
|
|
silent execute "!mkdir " . $HOME . "\\vimfiles\\backup"
|
|
|
|
|
silent execute "!mkdir " . $HOME . "\\vimfiles\\swp"
|
|
|
|
|
set backupdir=~/vimfiles/backup/
|
|
|
|
|
set directory=~/vimfiles/swp/
|
|
|
|
|
else
|
|
|
|
|
silent !mkdir -p ~/.vim/{backup,swp}/
|
|
|
|
|
set backupdir=~/.vim/backup/
|
|
|
|
|
set directory=~/.vim/swp/
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
au BufNewFile,BufRead *.txt set ft=text
|
|
|
|
|
au FileType text set tw=72 spell spelllang=en_us nonumber
|
|
|
|
|
|
|
|
|
|
au FileType mail set tw=72 spell spelllang=en_us nonumber
|
|
|
|
|
au FileType gitcommit set tw=72 spell spelllang=en_us nonumber
|
|
|
|
|
au BufNewFile,BufEnter *.phtml set tabstop=2 shiftwidth=2 softtabstop=2
|
2012-10-09 19:58:51 +00:00
|
|
|
|
au BufNewFile,BufEnter *.twig set tabstop=2 shiftwidth=2 softtabstop=2 ft=htmljinja
|
2012-09-08 02:33:24 +00:00
|
|
|
|
au FileType html set tabstop=2 shiftwidth=2 softtabstop=2
|
|
|
|
|
au FileType xml set tabstop=2 shiftwidth=2 softtabstop=2
|
|
|
|
|
au FileType ant set tabstop=2 shiftwidth=2 softtabstop=2
|
|
|
|
|
au FileType yaml set tabstop=2 shiftwidth=2 softtabstop=2
|
|
|
|
|
au FileType php set tabstop=4 shiftwidth=4 softtabstop=4
|
2013-01-15 16:20:33 +00:00
|
|
|
|
au FileType make set noexpandtab
|
2013-05-25 23:31:21 +00:00
|
|
|
|
au FileType ruby,eruby setlocal ts=2 sw=2 tw=79 et sts=2 autoindent colorcolumn=80
|
2012-09-08 02:33:24 +00:00
|
|
|
|
|
|
|
|
|
" keyboard shortcuts
|
|
|
|
|
nmap <silent> <leader>l :set list!<CR>
|
|
|
|
|
nmap <silent> <leader>t :NERDTreeToggle<CR>
|
|
|
|
|
nmap <silent> <leader>u :GundoToggle<CR>
|
|
|
|
|
|
|
|
|
|
"call pathogen#helptags()
|
|
|
|
|
"call pathogen#runtime_append_all_bundles()
|
|
|
|
|
|
|
|
|
|
filetype off
|
|
|
|
|
|
|
|
|
|
set rtp+=~/.vim/bundle/vundle
|
|
|
|
|
call vundle#rc()
|
|
|
|
|
|
2013-02-21 21:48:53 +00:00
|
|
|
|
" Plugins
|
2012-09-08 02:33:24 +00:00
|
|
|
|
Bundle 'gmarik/vundle'
|
|
|
|
|
Bundle 'git://github.com/sjl/gundo.vim.git'
|
|
|
|
|
Bundle 'git://github.com/scrooloose/nerdcommenter.git'
|
|
|
|
|
Bundle 'git://github.com/scrooloose/nerdtree.git'
|
2013-02-21 21:48:53 +00:00
|
|
|
|
Bundle 'git://github.com/msanders/snipmate.vim.git'
|
|
|
|
|
Bundle 'git://github.com/godlygeek/tabular.git'
|
|
|
|
|
Bundle 'git://github.com/tpope/vim-surround.git'
|
|
|
|
|
Bundle 'git://github.com/mattn/gist-vim.git'
|
|
|
|
|
Bundle 'https://github.com/tpope/vim-fugitive.git'
|
|
|
|
|
Bundle 'python.vim'
|
|
|
|
|
Bundle 'https://github.com/kien/ctrlp.vim.git'
|
|
|
|
|
Bundle 'scratch.vim'
|
|
|
|
|
|
|
|
|
|
" Syntax
|
|
|
|
|
Bundle 'https://github.com/groenewege/vim-less.git'
|
|
|
|
|
Bundle 'go'
|
|
|
|
|
|
|
|
|
|
" Themes
|
2012-09-08 02:33:24 +00:00
|
|
|
|
Bundle 'git://github.com/jnurmine/Zenburn.git'
|
|
|
|
|
Bundle 'git://github.com/ciaranm/inkpot.git'
|
|
|
|
|
Bundle 'git://github.com/nanotech/jellybeans.vim.git'
|
|
|
|
|
Bundle 'git://github.com/guns/jellyx.vim.git'
|
|
|
|
|
Bundle 'git://github.com/strange/strange.vim.git'
|
|
|
|
|
Bundle 'git://github.com/veloce/vim-aldmeris.git'
|
|
|
|
|
Bundle 'git://github.com/altercation/vim-colors-solarized.git'
|
|
|
|
|
Bundle 'git://github.com/Lokaltog/vim-distinguished.git'
|
|
|
|
|
Bundle 'git://github.com/nelstrom/vim-mac-classic-theme.git'
|
|
|
|
|
Bundle 'git://github.com/atonse/vydark.git'
|
|
|
|
|
Bundle 'git://github.com/vim-scripts/vylight.git'
|
|
|
|
|
Bundle 'git://github.com/tpope/vim-vividchalk.git'
|
|
|
|
|
Bundle 'git://github.com/ciaranm/inkpot.git'
|
|
|
|
|
Bundle 'git://github.com/jpo/vim-railscasts-theme.git'
|
|
|
|
|
Bundle 'git://github.com/oguzbilgic/sexy-railscasts-theme.git'
|
|
|
|
|
Bundle 'git://github.com/mrkn/mrkn256.vim.git'
|
|
|
|
|
Bundle 'git://github.com/bcat/abbott.vim.git'
|
|
|
|
|
Bundle 'twilight256.vim'
|
|
|
|
|
Bundle 'vilight.vim'
|
|
|
|
|
Bundle 'git://github.com/dasch/vim-mocha.git'
|
|
|
|
|
Bundle 'git://github.com/dasch/satellite.git'
|
|
|
|
|
Bundle 'git://github.com/djjcast/mirodark.git'
|
|
|
|
|
Bundle 'git://github.com/mattsa/vim-eddie.git'
|
|
|
|
|
Bundle 'git://github.com/molok/vim-vombato-colorscheme.git'
|
|
|
|
|
Bundle 'git://github.com/jelera/vim-gummybears-colorscheme.git'
|
|
|
|
|
Bundle 'git://github.com/sjl/badwolf.git'
|
|
|
|
|
Bundle 'git://github.com/shawncplus/skittles_berry.git'
|
|
|
|
|
Bundle 'Skittles-Dark'
|
|
|
|
|
Bundle 'tortex'
|
|
|
|
|
Bundle 'mayansmoke'
|
|
|
|
|
Bundle 'https://github.com/sjl/badwolf.git'
|
|
|
|
|
Bundle 'https://github.com/w0ng/vim-hybrid.git'
|
|
|
|
|
Bundle 'https://github.com/blackgate/tropikos-vim-theme.git'
|
|
|
|
|
Bundle 'https://github.com/zaki/zazen.git'
|
|
|
|
|
Bundle 'https://github.com/jonathanfilip/vim-lucius.git'
|
2012-09-28 18:58:36 +00:00
|
|
|
|
Bundle 'https://github.com/chriskempson/vim-tomorrow-theme.git'
|
2012-10-02 20:34:05 +00:00
|
|
|
|
Bundle 'https://github.com/tangphillip/SunburstVIM.git'
|
2012-12-11 13:55:13 +00:00
|
|
|
|
Bundle 'https://github.com/nelstrom/vim-blackboard.git'
|
2012-11-20 19:40:58 +00:00
|
|
|
|
Bundle 'https://github.com/tomasr/molokai.git'
|
2012-12-11 13:55:13 +00:00
|
|
|
|
Bundle 'https://github.com/zeis/vim-kolor.git'
|
2012-12-10 22:58:08 +00:00
|
|
|
|
Bundle 'https://github.com/morhetz/gruvbox.git'
|
2012-12-11 17:15:16 +00:00
|
|
|
|
Bundle 'https://github.com/trapd00r/neverland-vim-theme.git'
|
2012-12-21 22:24:39 +00:00
|
|
|
|
Bundle 'https://github.com/chriskempson/base16-vim.git'
|
2013-01-31 16:09:24 +00:00
|
|
|
|
"Bundle 'https://github.com/changyuheng/holokai.git'
|
|
|
|
|
Bundle 'https://github.com/ryanc/holokai.git'
|
2013-02-14 16:43:58 +00:00
|
|
|
|
Bundle 'https://github.com/noahfrederick/Hemisu.git'
|
2013-05-25 23:31:03 +00:00
|
|
|
|
Bundle 'https://github.com/sk1418/last256.git'
|
|
|
|
|
|
|
|
|
|
colorscheme last256
|
2012-09-08 02:33:24 +00:00
|
|
|
|
|
|
|
|
|
filetype plugin indent on
|
|
|
|
|
|
2013-02-21 21:51:21 +00:00
|
|
|
|
" Force hash comments to retain their indentation level.
|
|
|
|
|
inoremap # X#
|
|
|
|
|
|
2012-09-08 02:33:24 +00:00
|
|
|
|
" If it exists, include user's local vim config
|
2012-09-27 20:21:25 +00:00
|
|
|
|
if filereadable(expand("~/.vimrc.local"))
|
|
|
|
|
source ~/.vimrc.local
|
|
|
|
|
endif
|