Created
March 7, 2013 20:27
-
-
Save Crydust/5111535 to your computer and use it in GitHub Desktop.
mi _vimrc file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" set the langmenu before everything else!!! | |
set langmenu=en | |
"language messages en | |
set nocompatible | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set diffexpr=MyDiff() | |
function MyDiff() | |
let opt = '-a --binary ' | |
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif | |
let arg1 = v:fname_in | |
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif | |
let arg2 = v:fname_new | |
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif | |
let arg3 = v:fname_out | |
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif | |
let eq = '' | |
if $VIMRUNTIME =~ ' ' | |
if &sh =~ '\<cmd' | |
let cmd = '""' . $VIMRUNTIME . '\diff"' | |
let eq = '"' | |
else | |
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"' | |
endif | |
else | |
let cmd = $VIMRUNTIME . '\diff' | |
endif | |
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq | |
endfunction | |
if has("gui_gtk2") | |
set guifont=Consolas\ 11 | |
elseif has("gui_macvim") | |
set guifont=Consolas:h12 | |
elseif has("gui_win32") | |
set guifont=Consolas:h11 | |
end | |
set encoding=utf-8 | |
set nocompatible " nocp: turn off vi compatibility | |
set undolevels=1000 " ul: lots and lots of undo | |
set history=50 " hi: size of :command history | |
set modelines=20 | |
set modeline " ml: Turn on modelines | |
set ai " always set autoindenting on | |
set backup " keep a backup file | |
set ruler " show the cursor position all the time | |
filetype on | |
syntax on | |
set showmode " smd: show the current input mode | |
set incsearch " is: show partial matches as search is entered | |
set hlsearch " hls: highlight search patterns | |
set ignorecase " Ignore case distinction when searching | |
set smartcase " ... unless there are capitals in the search string. | |
"set nowrapscan " Don't wrap to top of buffer when searching | |
set number " show line numbers | |
set guioptions-=t " no tear off this menu | |
set showbreak=>\ \ \ " set characters to prefix wrapped lines with | |
set linebreak " soft wrap lines at words | |
set lines=50 | |
set columns=120 | |
colorscheme desert | |
" slow down the default cursor blink | |
set guicursor=a:blinkon600-blinkoff400 | |
" or if you don't like blinking cursors, switch it off | |
"set guicursor=a:blinkon0 | |
":set guioptions-=m "remove menu bar | |
:set guioptions-=T "remove toolbar | |
":set guioptions-=r "remove right-hand scroll bar | |
"inoremap <tab> <c-r>=Smart_TabComplete()<CR> | |
" omnicompletion on Ctrl-Space | |
imap <c-space> <c-x><c-o> | |
" omnicompletion after : in css files | |
au FileType css imap : :<c-x><c-o> | |
map <F2> :NERDTreeToggle<CR> | |
set expandtab tabstop=4 shiftwidth=4 | |
map <F3> :retab <CR> | |
set foldmethod=syntax | |
set foldminlines=10 | |
set foldlevelstart=1 | |
au BufNewFile,BufRead *.cls set filetype=progress | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment