Skip to content

Instantly share code, notes, and snippets.

@jonbalbarin
Created June 12, 2011 23:28
Show Gist options
  • Save jonbalbarin/1022124 to your computer and use it in GitHub Desktop.
Save jonbalbarin/1022124 to your computer and use it in GitHub Desktop.
my vimrc
set number
syntax on
filetype on
filetype plugin on
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set wildmenu
set nocompatible
"set backspace+=indent,eol,start
set smartindent
colorscheme fruity
set wrapscan
set ignorecase
set smartcase
set incsearch
set hlsearch
"setup omnicomplete for python
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
"complete as you type
set completeopt=menuone,preview,longest
"setup supertab for omnicomplete
"let g:SuperTabDefaultCompletionType="<C-X><C-O>"
let g:SuperTabDefaultCompletionType="context"
"inoremap <Tab> <C-x><C-u>
"always show filename at bottom
set laststatus=2
set ruler
set ff=unix
"dont highlight matched parens
"let g:loaded_matchparen= 1
"set omnicomplete color
highlight Pmenu ctermbg=Brown cterm=bold
"mouse support
set mouse=a
"mouse support in screen
set ttymouse=xterm2
command TABSPACECRAP :exec ":%s/\t/ /g"
command XMLFORMAT :exec ":%!xmllint --format --noent -"
command COPYTHIS :exec ":!cat % | pbcopy"
set guioptions-=T
set guifont=DejaVu_Sans_Mono:h12"
set gcr=a:blinkon0
nmap <silent> ,t :CommandT<CR>
autocmd BufRead *\.txt setlocal formatoptions=l
autocmd BufRead *\.txt setlocal lbr
autocmd BufRead *\.txt map j gj
autocmd BufRead *\.txt map k gk
autocmd BufRead *\.txt setlocal smartindent
autocmd BufRead *\.txt setlocal spell spelllang=en_us
autocmd BufRead *\.txt set guifont=DejaVu_Sans_Mono:h16"
hi SpellBad guisp=yellow gui=undercurl guifg=NONE guibg=NONE ctermfg=red ctermbg=NONE term=underline cterm=underline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment