" This is my _vimrc under windows platform " and it can be used on *nix too " all the difference of them is the font setting session " happy Viming, " copyLeft (#) Abruzzi John
set linebreak " line break set nocompatible " no compatible set history=400 " history set ruler set number " line number set hlsearch " highlight search set noincsearch " no in C search set expandtab " expand table set t_vb= "close bell set foldmethod=marker set tabstop=4 " table step set shiftwidth=4 set nobackup " don't backup set smarttab " smart table set smartindent " smart indent set autoindent " auto indent set cindent "cindent set cursorline " hightlight cursor line 高亮光标所在行
" set the back space set backspace=indent,eol,start "这行比较重要,刚接触vim的朋友会发现有时候backspace键删不了文字
colorscheme desert " color scheme
let Tlist_Use_Right_Window=0 " for tag_list plugin only let Tlist_File_Fold_Auto_Close=1 " for tag_list plugin only
let g:winManagerWindowLayout="FileExplorer|TagList" " for winmanager
filetype plugin indent on " filetype setting set completeopt=longest,menu " for code complete
" the following function is used for show the status bar on the buttom function! CurrectDir() let curdir = substitute(getcwd(), "", "", "g") return curdir endfunction set statusline=/ [File]/ %F%m%r%h/ %w/ / [PWD]/ %r%{CurrectDir()}%h/ / %=[Line]/ %l,%c/ %=/ %P
" this is a setting of font if has("win32") set guifont=Courier_New:h10:cANSI endif
" make sure that syntax always on if exists("syntax_on") syntax reset else syntax on endif