Skip to content

Instantly share code, notes, and snippets.

@krypton
Created May 9, 2011 22:26
Show Gist options
  • Save krypton/963560 to your computer and use it in GitHub Desktop.
Save krypton/963560 to your computer and use it in GitHub Desktop.
.vimrc
let mapleader = ","
syntax enable
set foldmethod syntax
set ignorecase
set hlsearch
set autoindent
set fileencoding=utf-8
set encoding=utf-8
set backspace=indent,eol,start
set ts=2 sts=2 sw=2 expandtab
nnoremap <leader>ev :vs $MYVIMRC<CR>
inoremap <C-l> <space>=><space>
map <leader>p :Mm<CR>
vnoremap < <gv
vnoremap > >gv
set smartcase
set gdefault
set incsearch
set showmatch
set list
set listchars=tab:▸\ ,eol:¬
set guifont=Monaco:h12
set guioptions=aAce
set number
set noswapfile
" match ErrorMsg '\%>80v.\+'
set cc=80
" Show syntax highlighting groups for word under cursor
nmap <C-S-P> :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
set background=dark
colorscheme solarized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment