Skip to content

Instantly share code, notes, and snippets.

@corporealfunk
Created April 1, 2011 14:57
Show Gist options
  • Save corporealfunk/898274 to your computer and use it in GitHub Desktop.
Save corporealfunk/898274 to your computer and use it in GitHub Desktop.
My .vimrc file
let &t_Co=256
set number
set tabstop=2
set shiftwidth=2
set expandtab
set background=dark
syntax on
set ff=unix
set autoindent
set smartindent
set ruler
filetype indent on
set nocompatible
set showcmd
"
set encoding=utf-8
set scrolloff=3
set showmode
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set cursorline
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
let mapleader = ","
" searching
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
" textmate chars
set list
set listchars=tab:▸\ ,eol:¬
" kk == esc
inoremap kk <ESC>
" vertical split ,w
nnoremap <leader>w <C-w>v<C-w>l
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" toggle expand tab ,t
nnoremap <leader>t :set noexpandtab!<cr>
" toggle paste/nopaste ,p
nnoremap <leader>p :set nopaste!<cr>
" tabdo wq ,wq
nnoremap <leader>wq :tabdo wq<cr>
" tab nav like firefox:
nmap <C-p> :tabprevious<cr>
nmap <C-n> :tabnext<cr>
map <C-p> :tabprevious<cr>
map <C-n> :tabnext<cr>
imap <C-p> <ESC>:tabprevious<cr>i
imap <C-n> <ESC>:tabnext<cr>i
nmap <C-t> :tabnew<cr>
imap <C-t> <ESC>:tabnew<cr>
" colorscheme
color railscasts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment