# ~/.vimrc colorscheme tango2 filetype on filetype plugin on syntax on set number let g:pydiction_location = '/home/lh/.vim/after/ftplugin/pydiction/complete-dict' if v:progname =~? "evim" finish endif set nocompatible set backspace=indent,eol,start set nobackup set nowritebackup set noswapfile set history=50 set ruler set showcmd set incsearch map Q gq inoremapu if has('mouse') set mouse=a endif if &t_Co > 2 || has("gui_running") syntax on set hlsearch endif if has("autocmd") filetype plugin indent on augroup vimrcEx au! autocmd FileType text setlocal textwidth=78 autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | \ exe "normal! g`\"" | \ endif augroup END else set autoindent " always set autoindenting on endif " has("autocmd") if !exists(":DiffOrig") command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis \ | wincmd p | diffthis endif