Skip to content

Instantly share code, notes, and snippets.

@sr3d
Created August 20, 2010 07:29
Show Gist options
  • Save sr3d/539823 to your computer and use it in GitHub Desktop.
Save sr3d/539823 to your computer and use it in GitHub Desktop.
set nocompatible
syntax on
filetype plugin indent on
filetype plugin on
colorscheme vividchalk
set nu " show line number
set smartindent
set autoindent
set smarttab
set expandtab
set ts=2 " tabs 2 spaces
set bs=2 " backspace
set shiftwidth=2
" Turn backup off
set nobackup
set nowb
set noswapfile
" Visual
set showmatch " matching brackets
set mat=5 " bracket blinking
" http://stackoverflow.com/questions/1416572/vi-vim-restore-opened-files
map <F2> :mksession! ~/vim_session <cr> " Quick write session with F2
map <D-F2> :source ~/vim_session <cr> " And load session with F3
" set number " display line number
set backspace=indent,eol,start
set splitbelow
set splitright
" * Quick Keybindings
" "
" " Quick, jump out of insert mode while no one is looking.
imap ii <Esc>
"
" " Avoid ESC => F1 slips.
nmap <F1> <Esc>
map! <F1> <Esc>
"
" " Yank from the cursor to the end of the line.
nnoremap Y y$
"
" " Emacs-like movement in insert mode.
map! <C-A> <Home>
map! <C-E> <End>
set incsearch " show matches while typing
set hlsearch " highlight search
set ignorecase
set smartcase
set list " show tabs and trailing whitespace
" Use the same symbols as TextMate for tabstops and EOLs
" set listchars=tab:▸\ ,eol:¬
" set listchars=tab:··,trail:·
set ruler " show cursor
set scrolloff=3 "10 lines of context
set showcmd " Show incomplete commend
set title
"call pathogen#runtime_append_all_bundles()
" Map NERDTree to Ctrl D
map <D-d> :execute 'NERDTreeToggle ' .getcwd()<CR>
" map <C-t> :FuzzyFinderTextMate<CR>
" map <C-b> :FuzzyFinderBuffer<CR>
"let g:fuzzy_ignore = "*.log"
"let g:fuzzy_matching_limit = 70
nmap <silent> <C-T> :CommandT<CR>
nmap <silent> <C-F> :CommandTFlush<CR>
"noremap <Up> ""
"noremap! <Up> <Esc>
"noremap <Down> ""
"noremap! <Down> <Esc>
"noremap <Left> ""
"noremap! <Left> <Esc>
"noremap <Right> ""
"noremap! <Right> <Esc>
nnoremap <silent> <F8> :TlistToggle<CR>
let Tlist_Exit_OnlyWindow = 1 " exit if taglist is last window open
let Tlist_Show_One_File = 1 " Only show tags for current buffer
let Tlist_Enable_Fold_Column = 0 " no fold column (only showing one file)
let tlist_sql_settings = 'sql;P:package;t:table'
let tlist_ant_settings = 'ant;p:Project;r:Property;t:Target'
let g:user_zen_expandabbr_key = '<D-e>'
let g:use_zen_complete_tag = 1
let g:user_zen_leader_key='<c-k>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment