Skip to content

Instantly share code, notes, and snippets.

@clintonhalpin
Created January 15, 2015 14:15
Show Gist options
  • Save clintonhalpin/12f583c709a6fca7ab63 to your computer and use it in GitHub Desktop.
Save clintonhalpin/12f583c709a6fca7ab63 to your computer and use it in GitHub Desktop.
execute pathogen#infect()
syntax on
filetype plugin indent on
set cursorline
set expandtab
set modelines=0
set shiftwidth=2
set clipboard=unnamed
set synmaxcol=128
set ttyscroll=10
set encoding=utf-8
set tabstop=2
set nowrap
set number
set expandtab
set nowritebackup
set noswapfile
set nobackup
set hlsearch
set ignorecase
set smartcase
set paste
set autoindent
set smartindent
colors hybrid
" NERDTree
map <C-n> :NERDTreeToggle<CR>
let NERDTreeHighlightCursorline=1
let NERDTreeIgnore = ['tmp', '.yardoc', 'pkg']
"Tab between buffers
noremap <tab> <c-w><c-w>
" Prefer set paste
nmap <leader>p :setlocal paste! paste?<cr>
function! NumberToggle()
if(&relativenumber == 1)
set number
else
set relativenumber
endif
endfunc
nnoremap <C-n> :call NumberToggle()<cr>
au FocusLost * :set number
au FocusGained * :set relativenumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment