Created
September 30, 2012 06:56
-
-
Save ox/3806096 to your computer and use it in GitHub Desktop.
my vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call pathogen#infect() | |
"" | |
"" Basic Setup | |
"" | |
set nocompatible " Use vim, no vi defaults | |
set number " Show line numbers | |
set ruler " Show line and column number | |
syntax enable " Turn on syntax highlighting allowing local overrides | |
set encoding=utf-8 " Set default encoding to UTF-8 | |
set mouse=a | |
"" | |
"" Statusline/Powerline | |
"" | |
set nocompatible " Disable vi-compatibility | |
set laststatus=2 " Always show the statusline | |
set encoding=utf-8 " Necessary to show unicode glyphs | |
let g:Powerline_symbols = 'fancy' | |
"" | |
"" Settings for special filetypes | |
"" | |
au BufNewFile,BufRead *.ls set filetype=lisp | |
"" | |
"" Settings for VimClojure | |
"" | |
let g:clj_highlight_builtins=1 " Highlight Clojure's builtins | |
let g:clj_paren_rainbow=1 " Rainbow parentheses'! | |
let g:vimclojure#HighlightBuiltins=1 " Highlight Clojure's builtins | |
let g:vimclojure#ParenRainbow=1 " Rainbow parentheses'! | |
let g:vimclojure#DynamicHighlighting=1 " Dynamically highlight functions | |
"" Colorscheme | |
"" | |
colorscheme ir_black | |
"" | |
"" Whitespace | |
"" | |
set nowrap " don't wrap lines | |
set tabstop=2 " a tab is two spaces | |
set shiftwidth=2 " an autoindent (with <<) is two spaces | |
set expandtab " use spaces, not tabs | |
set list " Show invisible characters | |
set backspace=indent,eol,start " backspace through everything in insert mode | |
set smartindent | |
" List chars | |
set listchars="" " Reset the listchars | |
set listchars=tab:\ \ " a tab should display as " ", trailing whitespace as "." | |
set listchars+=trail:. " show trailing spaces as dots | |
set listchars+=extends:> " The character to show in the last column when wrap is | |
" off and the line continues beyond the right of the screen | |
set listchars+=precedes:< " The character to show in the last column when wrap is | |
" off and the line continues beyond the right of the screen | |
"" | |
"" Searching | |
"" | |
set hlsearch " highlight matches | |
set incsearch " incremental searching | |
set ignorecase " searches are case insensitive... | |
set smartcase " ... unless they contain at least one capital letter | |
"" | |
"" Wild settings | |
"" | |
" TODO: Investigate the precise meaning of these settings | |
" set wildmode=list:longest,list:full | |
" Disable output and VCS files | |
set wildignore+=*.o,*.out,*.obj,.git,*.rbc,*.rbo,*.class,.svn,*.gem | |
" Disable archive files | |
set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz | |
" Ignore bundler and sass cache | |
set wildignore+=*/vendor/gems/*,*/vendor/cache/*,*/.bundle/*,*/.sass-cache/* | |
" Disable temp and backup files | |
set wildignore+=*.swp,*~,._* | |
"" | |
"" Backup and swap files | |
"" | |
set backupdir=~/.vim/_backup// " where to put backup files. | |
set directory=~/.vim/_temp// " where to put swap files. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment