windows 下的 _vimrc

gvim7.0,windows下用的不多,偶尔用用就不要搞很复杂了

贴为源代码居然会截掉“/”,就直接贴了

"-------------------------------------------------
"外观显示
"-------------------------------------------------
set nocompatible
au GUIEnter * simalt ~x "Max Window
set guioptions=egmlR
"set guifont=Bitstream_Vera_Sans_Mono:h12
set number
set numberwidth=3
set scrolloff=6
colorscheme evening
hi Pmenu guibg=DarkRed
"-------------------------------------------------
"文件保存
"-------------------------------------------------
set nobackup
set noswapfile
set autowriteall
set helplang=Cn
set dictionary=$VIM/keywords
"-------------------------------------------------
"格式处理
"-------------------------------------------------
set clipboard+=unnamed
set autoindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab
set backspace=indent,eol,start
set incsearch
set hlsearch
set foldenable " Turn on folding
set foldmethod=indent " Make folding indent sensitive
set foldlevel=100 " Don't autofold anything (but I can still fold manually)
set foldopen-=search " don't open folds when you search into them
set foldopen-=undo " don't open folds when you undo stuff
"set showmatch
set showtabline=1 "多于一个标签页才显示
set laststatus=2 "最后一个窗口何时有状态行: 0: 永不1: 只有在有至少两个窗口时2: 总是
set statusline=%<%f/ %y%m%r[%n]%=%-14.(%l,%c%V%)/ %P
set list
set listchars=tab:>-,trail:-
set textwidth=110
set iskeyword=a-z,A-Z,48-57,_,@
" @ 表示所有字母。"48-57" 表示 ASCII 字符 48-57 ,即数字 0 到 9。"192-255" 是可显示的拉丁字符。
filetype plugin indent on
syntax on
set fileencodings=utf-8,chinese
set fileencoding=utf-8
"set encoding=utf-8
"-------------------------------------------------
"键盘映射
"-------------------------------------------------
map <F1> :tab help
imap <F1> <ESC>:tab help
nmap <S-F2> :source $VIM/_vimrc<CR>
imap <S-F2> <C-o>:source $VIM/_vimrc<CR>
nmap <F2> :w<CR>
imap <F2> <C-o>:w<CR>
nmap <F3> :%s/
imap <F3> <ESC>:%s/
nmap <F4> :q<CR>
imap <F4> <ESC>:q<CR>

map <silent> <F11> :Tlist<CR>
map! <silent> <F11> <C-o>:Tlist<CR>
map <silent> <F12> :BufExplorer<CR>
map! <silent> <F12> <Esc>:BufExplorer<CR>

map <S-Right> :tabnext<CR>
map! <S-Right> <C-o>:tabnext<CR>
map <S-Left> :tabpre<CR>
map! <S-Left> <C-o>:tabpre<CR>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值