Skip to content

Instantly share code, notes, and snippets.

@astahlman
Created June 29, 2013 23:26
Show Gist options
  • Save astahlman/5893112 to your computer and use it in GitHub Desktop.
Save astahlman/5893112 to your computer and use it in GitHub Desktop.
set number
set nocompatible
set wildmenu " Autocomplete menu?
set incsearch
set hlsearch
set encoding=utf-8
set autochdir " make current directory relative to the open file
" more natural splitting
set splitbelow
set splitright
set showmatch " matching brackets
set matchtime=2 " show matches for 2 seconds
set number
set incsearch
set ignorecase
set smartcase
set hlsearch
" Use spaces instead of tabs
set expandtab
" Be smart when using tabs ;)
set smarttab
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
" for runtimepath management, install plugins to bundle
"execute pathogen#infect() " breaks filetype detection
call pathogen#incubate()
filetype plugin on
filetype indent on
syntax on
" color scheme
colors evening
" map <leader> to ,
let mapleader = ","
" paste replace word
nnoremap prw "_cw<C-R>"<Esc>
" Ctrl-o opens NERDTree window
nnoremap <C-o> :NERDTree<CR>
" Ctrl-O+b name opens bookmark == name
nnoremap <C-o>b :NERDTreeFromBookmark
" eclim organize imports
nnoremap <C-i><C-o> :JavaImportOrganize<CR>
" clear search highlighting
nnoremap <leader>/ :nohlsearch<CR>
" tab switching
nnoremap ,tn :tabnext<CR>
nnoremap ,tp :tabprev<CR>
" window switching
nnoremap ,wh :wincmd h<CR>
nnoremap ,wj :wincmd j<CR>
nnoremap ,wk :wincmd k<CR>
nnoremap ,wl :wincmd l<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment