182 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			182 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			VimL
		
	
	
	
	
	
" vim config
 | 
						||
" Ryan Cavicchioni
 | 
						||
 | 
						||
set nocompatible
 | 
						||
filetype off
 | 
						||
set rtp+=~/.vim/bundle/vundle/
 | 
						||
call vundle#rc()
 | 
						||
Bundle 'gmarik/vundle'
 | 
						||
 | 
						||
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:·\ ,eol:$
 | 
						||
set expandtab
 | 
						||
set backspace=indent,eol
 | 
						||
set textwidth=80
 | 
						||
set spell
 | 
						||
set ruler
 | 
						||
set laststatus=2
 | 
						||
 | 
						||
nnoremap <leader>s :set spell!<CR>
 | 
						||
nnoremap <leader>n :set number!<CR>
 | 
						||
nnoremap <leader>rn :set relativenumber!<CR>
 | 
						||
 | 
						||
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
 | 
						||
au BufNewFile,BufEnter *.twig set tabstop=2 shiftwidth=2 softtabstop=2 ft=htmljinja
 | 
						||
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
 | 
						||
au FileType make set noexpandtab
 | 
						||
au FileType ruby,eruby setlocal ts=2 sw=2 tw=79 et sts=2 autoindent colorcolumn=80
 | 
						||
 | 
						||
" 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 
 | 
						||
 | 
						||
" Plugins
 | 
						||
Bundle 'Shougo/vimproc'
 | 
						||
Bundle 'sjl/gundo.vim.git'
 | 
						||
Bundle 'scrooloose/nerdcommenter.git'
 | 
						||
Bundle 'scrooloose/nerdtree.git'
 | 
						||
Bundle 'msanders/snipmate.vim.git'
 | 
						||
Bundle 'godlygeek/tabular.git'
 | 
						||
Bundle 'tpope/vim-surround.git'
 | 
						||
Bundle 'mattn/gist-vim.git'
 | 
						||
Bundle 'tpope/vim-fugitive.git'
 | 
						||
Bundle 'python.vim'
 | 
						||
Bundle 'kien/ctrlp.vim.git'
 | 
						||
Bundle 'scratch.vim'
 | 
						||
Bundle 'bling/vim-airline'
 | 
						||
Bundle 'tpope/vim-characterize'
 | 
						||
Bundle 'tpope/vim-vinegar'
 | 
						||
 | 
						||
" Syntax
 | 
						||
Bundle 'groenewege/vim-less.git'
 | 
						||
Bundle 'tpope/vim-haml.git'
 | 
						||
Bundle 'jnwhiteh/vim-golang'
 | 
						||
Bundle 'slim-template/vim-slim.git'
 | 
						||
Bundle 'juvenn/mustache.vim.git'
 | 
						||
Bundle 'puppetlabs/puppet-syntax-vim.git'
 | 
						||
 | 
						||
" Themes
 | 
						||
Bundle 'jnurmine/Zenburn.git'
 | 
						||
Bundle 'ciaranm/inkpot.git'
 | 
						||
Bundle 'nanotech/jellybeans.vim.git'
 | 
						||
Bundle 'guns/jellyx.vim.git'
 | 
						||
Bundle 'strange/strange.vim.git'
 | 
						||
Bundle 'veloce/vim-aldmeris.git'
 | 
						||
Bundle 'altercation/vim-colors-solarized.git'
 | 
						||
Bundle 'Lokaltog/vim-distinguished.git'
 | 
						||
Bundle 'nelstrom/vim-mac-classic-theme.git'
 | 
						||
Bundle 'atonse/vydark.git'
 | 
						||
Bundle 'vim-scripts/vylight.git'
 | 
						||
Bundle 'tpope/vim-vividchalk.git'
 | 
						||
Bundle 'ciaranm/inkpot.git'
 | 
						||
Bundle 'jpo/vim-railscasts-theme.git'
 | 
						||
Bundle 'oguzbilgic/sexy-railscasts-theme.git'
 | 
						||
Bundle 'mrkn/mrkn256.vim.git'
 | 
						||
Bundle 'bcat/abbott.vim.git'
 | 
						||
Bundle 'twilight256.vim'
 | 
						||
Bundle 'vilight.vim'
 | 
						||
Bundle 'dasch/vim-mocha.git'
 | 
						||
Bundle 'dasch/satellite.git'
 | 
						||
Bundle 'djjcast/mirodark.git'
 | 
						||
Bundle 'molok/vim-vombato-colorscheme.git'
 | 
						||
"Bundle 'jelera/vim-gummybears-colorscheme.git'
 | 
						||
Bundle 'vim-scripts/Gummybears'
 | 
						||
Bundle 'sjl/badwolf.git'
 | 
						||
Bundle 'shawncplus/skittles_berry.git'
 | 
						||
Bundle 'Skittles-Dark'
 | 
						||
Bundle 'tortex'
 | 
						||
Bundle 'mayansmoke'
 | 
						||
Bundle 'sjl/badwolf.git'
 | 
						||
Bundle 'w0ng/vim-hybrid.git'
 | 
						||
Bundle 'blackgate/tropikos-vim-theme.git'
 | 
						||
Bundle 'zaki/zazen.git'
 | 
						||
Bundle 'jonathanfilip/vim-lucius.git'
 | 
						||
Bundle 'chriskempson/vim-tomorrow-theme.git'
 | 
						||
Bundle 'tangphillip/SunburstVIM.git'
 | 
						||
Bundle 'nelstrom/vim-blackboard.git'
 | 
						||
Bundle 'tomasr/molokai.git'
 | 
						||
Bundle 'zeis/vim-kolor.git'
 | 
						||
Bundle 'morhetz/gruvbox.git'
 | 
						||
Bundle 'trapd00r/neverland-vim-theme.git'
 | 
						||
Bundle 'chriskempson/base16-vim.git'
 | 
						||
Bundle 'changyuheng/color-scheme-holokai-of-vim.git'
 | 
						||
Bundle 'noahfrederick/Hemisu.git'
 | 
						||
Bundle 'sk1418/last256.git'
 | 
						||
Bundle 'toupeira/vim-desertink.git'
 | 
						||
Bundle 'junegunn/seoul256.vim.git'
 | 
						||
Bundle 'lsdr/monokai'
 | 
						||
Bundle 'daylerees/colour-schemes', { "rtp": "vim" }
 | 
						||
Bundle 'Pychimp/vim-luna'
 | 
						||
Bundle 'Pychimp/vim-sol'
 | 
						||
Bundle 'vim-scripts/wombat256.vim'
 | 
						||
Bundle 'vim-scripts/Wombat'
 | 
						||
Bundle 'hukl/Smyck-Color-Scheme'
 | 
						||
Bundle 'tpope/vim-commentary'
 | 
						||
 | 
						||
colorscheme last256
 | 
						||
 | 
						||
filetype plugin indent on
 | 
						||
 | 
						||
" Force hash comments to retain their indentation level.
 | 
						||
inoremap # X#
 | 
						||
 | 
						||
" Configure airline
 | 
						||
let g:airline#extensions#tabline#enabled = 1
 | 
						||
let g:airline_left_sep=''
 | 
						||
let g:airline_right_sep=''
 | 
						||
 | 
						||
" If it exists, include user's local vim config
 | 
						||
if filereadable(expand("~/.vimrc.local"))
 | 
						||
    source ~/.vimrc.local
 | 
						||
endif
 |