3 ms·
set nocompatible set backspace=indent,eol,start if has("vms") set nobackup else set backup endif set history=50 set ruler set showcmd set incsea
by SlyShy 17y ago
set nocompatible
set backspace=indent,eol,start
if has("vms")
set nobackup
else
set backup
endif
set history=50
set ruler
set showcmd
set incsearch
map Q gq
inoremap <C-U> <C-G>u<C-U>
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
endif
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
colors zenburn
:filetype plugin on
set et
set sw=4
set smarttab
set lbr
set t_Co=256
set backupdir=./.backup,.,/tmp
set directory=.,./.backup,/tmp
set nobackup
set nowritebackup
set number
compiler ruby
autocmd Filetype ruby source ~/.vim/ruby-macros.vim
nnoremap <silent> <F8> :TlistToggle<CR>
let Tlist_Auto_Open=1
:set title titlestring=%<%f\ %([%{Tlist_Get_Tagname_By_Line()}]%)
set virtualedit=all