vim配置

set nu

set showmatch    高亮显示括号匹配

set shiftwidth=4    设置自动缩进为4个字符

set guifont=Monospace\ 13       设置字体为Monospace及大小为13

colorscheme desert  设置配色方案

syntax enable  启用语法高亮功能

syntax on  开启语法高亮

set cindent  设置C/C++自动缩进模式

set list   显示隐藏字符

set listchars=tab:>-;trail:-    将显示的隐藏字符中制表符变为>-并将换行变成-

 

 

 

高亮显示当前行-----好用漂亮:-)




上面是效果图,第96行为当前行,设置为红色。

具体设置为:
set cursorline
hi CursorLine  cterm=NONE   ctermbg=darkred ctermfg=white
hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white

 set mouse=a    #支持鼠标

If you are using vim >=7.3.74, then you can actually put this in your vimrc:

set clipboard=unnamedplus

Which will automatically use the + buffer (the system clipboard) by default. Then to yank (copy), you just use the regulary command, etc.

I found this behavior to be fairly annoying, though, as commands like d put the text they operate on into the default buffer, which meant I couldn't do a fastdd and paste a line from the internet, for example.

 

注:

      在vim中所有的复制,删除,剪切都是先通过在视图模式下先选中文本区域再复制该文本内容到"+寄存器,这样可以很方便的同各种程序共享"+寄存器中的数据。 因为"+寄存器是系统共用的。

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值