Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10056
  • 博文数量: 6
  • 博客积分: 1440
  • 博客等级: 上尉
  • 技术积分: 80
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-26 21:00
文章分类
文章存档

2011年(2)

2008年(4)

我的朋友
最近访客

分类: WINDOWS

2008-07-12 06:56:54

文件: vimrc_linux.zip
大小: 1KB
下载: 下载
"
" use below command copy it to home directory:
"     copy /Y _vimrc "%USERPROFILE%"
"
version 6.0
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
cnoremap c
inoremap c
cnoremap w
inoremap w
cnoremap :simalt ~
inoremap :simalt ~
cmap +
imap 
xnoremap  ggVG
snoremap  gggHG
onoremap  gggHG
nnoremap  gggHG
vnoremap  "+y
noremap  
vnoremap  :update
nnoremap  :update
onoremap  :update
nmap  "+gP
omap  "+gP
vnoremap  "+x
noremap  
noremap  u
map Q gq
nmap gx NetrwBrowseX
nnoremap NetrwBrowseX :call netrw#NetBrowseX(expand(""),0)
onoremap c
nnoremap c
vnoremap c
onoremap w
nnoremap w
vnoremap w
noremap :simalt ~
vmap 
vnoremap d
vmap "*d
vnoremap "+x
vnoremap "+y
nmap "+gP
omap "+gP
cnoremap  gggHG
inoremap  gggHG
inoremap  :update
cmap  +
inoremap  
inoremap  u
let &cpo=s:cpo_save
unlet s:cpo_save
set backspace=indent,eol,start
set backup
set diffexpr=MyDiff()
set guifont=楷体_GB2312:h16:b:cGB2312
set helplang=Ch
set history=50
set hlsearch
set incsearch
set keymodel=startsel,stopsel
set ruler
set selection=exclusive
set selectmode=mouse,key
set whichwrap=b,s,<,>,[,]
" vim: set ft=vim :
 
" ------------------------------------------------------------------------- 
" My Vim Configuration  
" ------------------------------------------------------------------------- 
 
" -------------------------------------------------------------------------  
" Common Settings 
" -------------------------------------------------------------------------  
set nocompatible                        " Use vim advance settings 
set autoindent                          " Auto-indent on  
set tabstop=4                           " Use 4 spaces for tabs 
set shiftwidth=4                        " 2 spaces for autoindent  
set expandtab                           " Use space instead of tabs 
"set foldcolumn=4                       " Colums for fold display 
"set incsearch                          " Incremental search 
"set hlsearch                           " Highlight search hits 
set showcmd                             " Show panding commands  
set cmdheight=1                         " lines for command window 
set laststatus=2                        " Always show status line  
set backspace=indent,eol,start          " Backspace over everyting 
set history=50                          " Save at most 50 commands  
"set ruler                              " show ruler  
"set showmatch                          " Display matching paren  
"set matchtime=2                        " Be breif when displaying the match  
set nobackup                            " No backups 
set visualbell                          " Use visual bell  
"set mouse=nv                           " Mouse in normal and visual  
"set viminfo='100,f1,rE:,:100,/100      " Vim info options  
set lazyredraw                          " Don't redraw on macro execute 
set noerrorbells                        " Don't make noise  
set autoread                            " Re-read if modified 
"set backupcopy=yes                     " Save resources 
set diffopt=filler,iwhite               " Diff options  
set nostartofline                       " Keep cursor column when moving 
set number                              " Show number of line on left  
set helplang=cn,en                      " Language of help 
set enc=cp936                           " cp936 in Winxp  
set fenc=UTF-8  
set fencs=UTF-8,chinese  
syntax on                               " Syntax Highlight on 
 
 
"--------------------------------------------------------------------------  
" Options for Graphic version of VIM 
"--------------------------------------------------------------------------  
set guioptions-=T           " No Toolbar 
set guioptions-=L           " No left hand scrollbars  
set guioptions-=r           " No right hand scrollbars 
"set guioptions-=m           " No menu bar  
  
  
"-------------------------------------------------------------------------- 
" Auto commands  
"-------------------------------------------------------------------------- 
filetype plugin indent on   " Enable file type indenting and plugins  
set browsedir=buffer  
set autochdir  
  
  
"-------------------------------------------------------------------------- 
" Color scheme  
"-------------------------------------------------------------------------- 
"set t_Co=256  
colorscheme murphy  
"colorscheme vibrantink 
"highlight StatusLine gui=none  
"highlight SpecialKey guibg=bg 
"highlight Folded     gui=none  
"highlight Boolean    gui=none 
 
 
" -------------------------------------------------------------------------  
" Other 
" -------------------------------------------------------------------------  
auto BufEnter * let &titlestring = expand("%:p") . " (" . &ft .":" . &fenc . ") "

 
阅读(892) | 评论(0) | 转发(0) |
0

上一篇:some linux relative useful link

下一篇:android tips

给主人留下些什么吧!~~