[转]Ubuntu下两个小细节的调整,如何将vim光标设置为竖线
2012-04-26 09:05
1231 查看
转自:http://www.conanblog.me/notes/adjust-empathy-font-size-and-vim-cursor/
昨天做了两处地方的调整:Empathy的字体大小和vim的光标形状。
修改
默认下,不管是插入状态还是非插入状态,都是小方块,但是我更希望能看到插入时光标变成小竖线。这需要修改vimrc。没有这个文件就创建一个,一般在$HOME下建一个.vimrc就成了。里面添加5行代码:
昨天做了两处地方的调整:Empathy的字体大小和vim的光标形状。
Empathy的字体大小
修改/usr/share/adium/message-styles/ubuntu.AdiumMessageStyle/Contents/Resources/main.css文件里的
.message里的字号。如果有需要,可以把字体也换了。
Gnome Terminal下VIM的光标形状
默认下,不管是插入状态还是非插入状态,都是小方块,但是我更希望能看到插入时光标变成小竖线。这需要修改vimrc。没有这个文件就创建一个,一般在$HOME下建一个.vimrc就成了。里面添加5行代码:if has("autocmd") au InsertEnter * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam" au InsertLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block" au VimLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam" endif
相关文章推荐
- 如何利用Heartbeat与Floating IP在Ubuntu 14.04上创建高可用性设置
- linux终端如何设置光标位置
- Ubuntu vimrc配置文件 vim 设置行号,缩进距等
- 如何设置vim自动显示行号?
- 如何在VMWare的Ubuntu虚拟机中设置共享文件夹
- ubuntu开机后没有显示无限网络,如何设置
- CComboBox如何设置光标在文字的末尾
- windows下的VIM php IDE设置.(附上了windows和linux下两个不同的vimrc配置)
- sencha touch 两个selectfield之间如何设置间距
- mfc 如何设置光标的位置
- 如何在vim中设置tab键长度
- 如何将windows版的vim界面语言(默认为中文)设置成英文(转)
- 当EditText是多行文本时, 光标如何设置在从左上角
- ubuntu如何设置开机启动默认命令行界面
- 如何用JavaScript获取和设置textfield中光标位置(转)
- 在ubuntu下如何把无线网卡设置成可供wifi设备上网的接入点
- SecureCRT如何设置才能使Vim中代码彩色显示??
- VMware虚拟机Ubuntu如何设置连接方式
- 如何使用vim查找字符,及设置查找字符高亮和取消查找字符高亮
- win7安装ubuntu,如何设置win7为默认启动项