Created
June 20, 2013 15:34
-
-
Save kostia/5823819 to your computer and use it in GitHub Desktop.
This file contains 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
~ vi --version | |
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 20 2012 13:16:02) | |
Compiled by root@apple.com | |
Normal version without GUI. Features included (+) or not (-): | |
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent | |
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments | |
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs | |
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path | |
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv | |
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent | |
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape | |
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse | |
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype | |
+path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn | |
-python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs | |
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary | |
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title | |
-toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo | |
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp | |
-xterm_clipboard -xterm_save | |
system vimrc file: "$VIM/vimrc" | |
user vimrc file: "$HOME/.vimrc" | |
user exrc file: "$HOME/.exrc" | |
fall-back for $VIM: "/usr/share/vim" | |
Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe | |
Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses |
This file contains 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
set nocompatible " Use Vim defaults (much better!) | |
set noedcompatible | |
set modeline " Read configuration from inside loaded files | |
set modelines=5 " Scan up to 5 lines for a modeline | |
set bs=2 " Allow backspacing over everything in insert mode | |
set ai " Always set autoindenting on | |
set tw=0 " Don't wrap lines | |
set wrap " Display long lines wrapped. | |
set viminfo='20,\"50 " Read/write a .viminfo file, don't store more than 50 lines of register | |
set cmdheight=2 " Height of the command line (the one at the bottom) | |
set background=light " Switch this to dark for dark terminals | |
set vb " Use visual bell instead of a sound | |
set t_vb= | |
set title " Set the window title | |
set autowriteall " Write changed files on exit | |
set autoread " Re-read files that changed on disk | |
set showmatch " Highlight matching brackets | |
set showcmd " Show (partial) command in the last line of the screen | |
set number " Show line number on the left side of the buffer. | |
set ruler " Show the line and column number of the cursor position. | |
set laststatus=2 " Always show a status line. | |
set scrolloff=4 " Minimal number of screen lines to keep above and below the cursor. | |
set hidden " Allow several buffers to be opened (and unsaved). | |
set tabstop=2 " Number of spaces that a <Tab> in the file counts for. | |
set shiftwidth=2 " Number of spaces to use for each step of (auto)indent. | |
set softtabstop=2 " Number of spaces that a <Tab> counts for while performing editing operations. | |
set expandtab " Use the appropriate number of spaces to insert a <Tab>. | |
set ignorecase " Case-insensitive search | |
set incsearch " Incremental search shows the first match while typing the search pattern. | |
set smartcase " Override the 'ignorecase' option if the search pattern contains upper case characters. | |
set confirm " Use confirmation dialogs. | |
set encoding=utf-8 " The terminal encoding. | |
"set fileencodings=ucs-bom,utf-8,default,latin1 " The order of file encodings to try. | |
set fileencodings=utf-8,default,latin1 " The order of file encodings to try. | |
set shell=/bin/sh " Always use sh when executing commands with :! | |
set wildmenu " Command-line completion operates in an enhanced mode. | |
set wildmode=list:longest,list:full | |
set guifont=Menlo\ Regular:h14 | |
" Completion mode. | |
set list " List mode: Show tabs as CTRL-I, show end of line with $. | |
set listchars=tab:»\ ,extends:¤,trail:· | |
" Strings to use in 'list' mode. | |
" Activate syntax highlighting unless for vimdiff | |
if !&diff | |
syntax on | |
syntax sync fromstart | |
endif | |
set hlsearch " Highlight all search matches. | |
filetype on " Enable filetype detection | |
filetype indent on " Enable filetype-specific indenting | |
filetype plugin on " Enable filetype-specific plugins | |
" Search for the string marked in visual mode. E.g.: press v, go some chars to the right, press / | |
vmap / y/<C-R>"<CR> | |
" Don't use Ex mode, use Q for formatting | |
map Q gq | |
" Ctrl-p: previous buffer | |
map <C-p> :bp<CR> | |
" Ctrl-n: next buffer | |
map <C-n> :bn<CR> | |
" Go over wrapped lines with j and k. These will jump to the next/previous | |
" displayed line instead of the next/previous physical line. | |
map j gj | |
map k gk | |
" Switch to next visible buffer. | |
map <TAB> <C-W>w | |
augroup DeleteTrailingWhitespaces | |
autocmd! | |
autocmd BufWritePre * ks|execute "%s/\\s\\+$//ge"|'s | |
augroup END | |
augroup TabWidth | |
autocmd! FileType objc,tcl,java,php setlocal tabstop=4 shiftwidth=4 softtabstop=4 | |
augroup END | |
augroup Objc | |
autocmd! FileType matlab set filetype=objc | |
augroup END | |
augroup Java | |
autocmd! FileType java setlocal path+=Java/*/src/** | |
augroup END | |
au BufNewFile,BufRead [rR]antfile,*.rant,[rR]akefile,*.rake setf ruby | |
au BufNewFile,BufRead *.sass setf sass | |
au BufNewFile,BufRead *.ejs setf eruby | |
set noeol | |
highlight OverLength ctermbg=red ctermfg=white guibg=#592929 | |
match OverLength /\%121v.\+/ | |
" nnoremap <C-t> :FufFile **/<CR> | |
" ### ### Vundle | |
set nocompatible "Required for bundling | |
filetype off "Required for bundling | |
set rtp+=~/.vim/bundle/vundle/ "Load Vundle | |
call vundle#rc() "Initialize Vundle | |
" ### Addons | |
" Bundle "FuzzyFinder" | |
Bundle "Lokaltog/vim-easymotion" | |
Bundle "git://git.wincent.com/command-t.git" | |
Bundle "git://github.com/Lokaltog/vim-powerline.git" | |
Bundle "git://github.com/altercation/vim-colors-solarized.git" | |
Bundle "git://github.com/bbommarito/vim-slim.git" | |
Bundle "git://github.com/digitaltoad/vim-jade.git" | |
Bundle "git://github.com/godlygeek/tabular.git" | |
Bundle "git://github.com/groenewege/vim-less.git" | |
Bundle "git://github.com/jistr/vim-nerdtree-tabs.git" | |
Bundle "git://github.com/kchmck/vim-coffee-script.git" | |
Bundle "git://github.com/kien/ctrlp.vim.git" | |
Bundle "git://github.com/mivok/vimtodo.git" | |
Bundle "git://github.com/rking/ag.vim.git" | |
Bundle "git://github.com/scrooloose/nerdtree.git" | |
Bundle "git://github.com/tpope/vim-surround.git" | |
Bundle "git://github.com/vim-ruby/vim-ruby.git" | |
Bundle "git://github.com/xaviershay/tslime.vim.git" | |
Bundle "gmarik/vundle" | |
Bundle "jpalardy/vim-slime.git" | |
Bundle "rstacruz/sparkup", {"rtp": "vim/"} | |
Bundle "tpope/vim-fugitive" | |
Bundle "tpope/vim-rails.git" | |
Bundle 'L9' | |
" ### Initialize system | |
filetype plugin indent on | |
set t_Co=256 | |
" ### Initialize addons | |
" Solarized | |
colorscheme solarized | |
" NERDTree | |
nmap <silent> <c-n> :NERDTreeTabsToggle<CR> | |
let NERDTreeMapActivateNode="y" | |
autocmd VimEnter * NERDTree | |
function! NextTab() | |
exe "normal \<C-W>\<C-w>" | |
endfunction | |
autocmd VimEnter * call NextTab() | |
nmap <silent> <c-f> :Ag! | |
" Slime | |
let g:slime_target = "tmux" | |
" Pathogen | |
call pathogen#infect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment