Vimrc ( for gvim)

"python settings:
set tabstop=4 "4 space tab
set shiftwidth=4 "The amount to block indent when using < and >
set smarttab "Uses shiftwidth instead of tabstop at
start of lines
set expandtab "Replaces a <TAB> with spaces—more
portable
set softtabstop=4 "Causes backspace to delete 4 spaces = converted <TAB>
if has("autocmd")
autocmd BufRead,BufNewFile *.py set kp=pydoc

"for tab
map tn :tabnext[Ctrl-V Enter]
map tp :tabprev[Ctrl-V Enter]
map te :tabnew
map tc :tabclose[Ctrl-V Enter]

set nocompatible
colo koehler
set guifont=Courier_New:h16:cANSI
set fileencoding=utf-8
"source $VIMRUNTIME/vimrc_example.vim
"source $VIMRUNTIME/mswin.vim
set encoding=utf-8
set helplang=en
set incsearch
set ai
set tabstop=4
set cindent shiftwidth=8
set autoindent shiftwidth=8
syntax on
set cin
behave mswin
set wrap
lang mes en
:source $VIMRUNTIME/delmenu.vim
:set langmenu=none
:source $VIMRUNTIME/menu.vim
set backspace=2

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

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License