.vimrc

set ic


set cindent

syntax on


set hlsearch



" search increment



set incsearch











set nu



"undo for all file buffer files


set hid 











"set the number of lines to be remembered











set history=1000























"case insensitive & smart style











set ci scs 























" display chinese at vim











set encoding=utf-8











set fileencoding=chinese











set fileencodings=ucs-bom,utf-8,chinese











set ambiwidth=double























set showcmd  











" General {











set backspace=indent,eol,start " make backspace a more flexible











set clipboard+=unnamed " share windows clipboard











set fileformats=unix,dos,mac " support all three, in this order











" }























" for vimim plugin, which is a chinese input plugin











let g:vimim_static_input_style=2











let g:vimim_www_sogou=1











let g:vimim_cloud_sogou=3











let g:vimim_datafile="/home/nchen/.vim/plugin/vimim.pinyin_fcitx.txt"











let g:vimim_datafile_has_english=1











let g:vimim_datafile_has_pinyin=1























autocmd BufReadPost *











        / if line("'/"") > 0 && line("'/"") <= line("$") |











        /   exe "normal g`/"" |











        / endif























"mouse option











set mouse=a











nmap <C-LeftMouse> :cs f g <cword><CR>























nmap <F9> :TlistToggle<CR><CR>











"nmap <F4> <C-6>











nmap <Space>  <PageDown>











nmap - <PageUp>























" for cscope browse the reference and definition











nmap <F2> :tprevious<CR>











nmap <F3> :tnext<CR>











nmap <F4> :nohlsearch<CR>











nmap <F5> :ls<CR>:b























" re-generate cscope database











nmap <F8> :!./gencscope.sh<CR>:!cscope -bkq<CR>:cs reset<CR>























" For plugin minibufexpl.vim











let g:miniBufExplMapWindowNavVim = 1











let g:miniBufExplMapWindowNavArrows = 1











let g:miniBufExplMapCTabSwitchBufs = 1











let g:miniBufExplModSelTarget = 1























"can go to next line and don't require for blank space, useful for chinese 











set formatoptions+=mM
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值