[RK_2014_0927]ubuntu下的vimrc信息备份,rk_2014_0927vimrc
[RK_2014_0927]ubuntu下的vimrc信息备份,rk_2014_0927vimrc
ubuntu下的vimrc信息备份
set number set autoindent set smartindent set tabstop=4 set shiftwidth=4 set showmatch set hlsearch
eclipse.desktop
[Desktop Entry] Name=Eclipse Comment=c++ project manage software Exec=/opt/eclipse/eclipse Icon=/opt/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;GTK;Office;Eclipse
四、本文网址[本文发布于2014-09-27 12:27]
http://www.cnblogs.com/tom-and-jerry/p/3996240.html
一般在/usr/share/vim/vim73 目录下有vimrc_example.vim,它是模版文件拷贝到用户目录下改成.vimrc就可以了。如果有特殊需求需要根据需求上网找相应的修改方式。
去vim的安装目录下拷一个啊,然后加上一些自己常用的设定。
安装目录一般在/usr/(local/)share/vim/vimxx
把其中的vimrc_example.vim拷过来改名为.vimrc
想用图形界面的话,把gvimrc_example.vim拷过来改名为.gvimrc
然后把常用设定补充在最后的endif之前,我一般喜欢加的有:
source $VIMRUNTIME/colors/torte.vim
set ts=4 "tabstop
set sw=4 "shiftwidth
set et "expandtab
set ru "ruler
set ai "autoindent
set nu "line number
set ic "ignore case
set is "incsearch
set bs=eol,start,indent "backspace
set nocp "nocompatible
set nowb "no backup
评论暂时关闭