Skip to content

Instantly share code, notes, and snippets.

@barrettclark
Created July 31, 2010 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barrettclark/502564 to your computer and use it in GitHub Desktop.
Save barrettclark/502564 to your computer and use it in GitHub Desktop.
" bind command-/ to toggle comment
" requires NERD Commenter to be installed: http://www.vim.org/scripts/script.php?script_id=1218
nmap <D-/> ,c<space>
vmap <D-/> ,c<space>
imap <D-/> <C-O>,c<space>
" bind \d to toggle file browser
" requires NERDTree
nmap <leader>d :NERDTreeToggle<CR>
" binds \ t to textmate-style Command-T
map <leader>t :CommandT<CR>
let g:allml_global_maps = 1
:filetype plugin on
" \F to startup an ack search
map <leader>F :Ack<space>
" window splitting mappings
" split vertically with <leader> v
" split horizontally with <leader> s
nmap <leader>v :vsplit<CR> <C-w><C-w>
nmap <leader>s :split<CR> <C-w><C-w>
" Make it way easier to switch windows (<leader>w)
nmap <leader>w <C-w><C-w>
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
filetype plugin indent on " Enable filetype-specific indenting and plugins
set incsearch " Incremental searching
set hlsearch " Highlight search results once found:
" http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches
set number " can has line numbers?
set cursorline " highlight the current
" line the cursor is on
set showmatch "sm: flashes matching
" brackets or parentheses
set smarttab "sta: helps with
" backspacing because of expandtab
set number
" added 20100729
set guifont=Monaco:h10
set softtabstop=2
set tabstop=4
set shiftwidth=2
set expandtab
set autoindent
if has("gui_running")
colorscheme ir_black
set columns=160 lines=50
set transparency=8
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment