Skip to content

Instantly share code, notes, and snippets.

@skalnik
Created April 11, 2011 03:20
Show Gist options
  • Save skalnik/913018 to your computer and use it in GitHub Desktop.
Save skalnik/913018 to your computer and use it in GitHub Desktop.
let mapleader = ","
" Pathogen ********************************************************************
call pathogen#runtime_append_all_bundles()
" NERDTree ********************************************************************
noremap <leader>n :NERDTreeToggle<CR>
" User instead of Netrw when doing an edit /foobar
let NERDTreeHijackNetrw=1
" Single click for everything
let NERDTreeMouseMode=1
" Gist ************************************************************************
map <leader>g :Gist -c<CR>
let g:gist_clip_command = 'pbcopy'
" Scratch *********************************************************************
map <leader>s :Scratch<CR>
" show the `best match so far' as search strings are typed
set incsearch
" Highlight search results once found:
set hlsearch
" Windows *********************************************************************
set equalalways " Multiple windows, when created, are equal in size
set splitbelow splitright
"Vertical split then hop to new buffer
noremap <leader>v :vsp^M^W^W<CR>
noremap <leader>h :split^M^W^W<CR>
" Cursor highlights ***********************************************************
set cursorline
"set cursorcolumn
" Scrollbars ******************************************************************
set sidescrolloff=2
set numberwidth=4
" Colors **********************************************************************
syntax enable
set background=dark
colorscheme solarized
" Status Line *****************************************************************
set showcmd
set ruler " Show ruler
" Insert New Line **************************************************************
map <Enter> o<ESC>j<ESC>
" Invisible characters *********************************************************
set listchars=trail:.,tab:>-,eol:$
set nolist
:noremap <leader>i :set list!<CR>
" Sessions ********************************************************************
" Sets what is saved when you save a session
set sessionoptions=blank,buffers,curdir,folds,help,resize,tabpages,winsize
set nowrap
set number
set autoindent
set directory=/tmp
set autoread
let g:allml_global_maps = 1
" irb Integration *************************************************************
if has("autocmd")
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment