我的vi/vim配置文件

位于/etc/vim/的vimrc

" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below.  If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the ‘compatible‘ option.

" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim

" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets ‘nocompatible‘.  Setting ‘compatible‘ changes numerous
" options, so any other options should be set AFTER setting ‘compatible‘.
"set compatible

" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
if has("syntax")
  syntax on
endif

" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
"set background=dark

" Uncomment the following to have Vim jump to the last position when
" reopening a file
"if has("autocmd")
"  au BufReadPost * if line("‘\"") > 1 && line("‘\"") <= line("$") | exe "normal! g‘\"" | endif
"endif

" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
"if has("autocmd")
"  filetype plugin indent on
"endif

" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
"set showcmd        " Show (partial) command in status line.
set showmatch        " Show matching brackets.
"set ignorecase        " Do case insensitive matching
"set smartcase        " Do smart case matching
"set incsearch        " Incremental search
"set autowrite        " Automatically save before commands like :next and :make
"set hidden        " Hide buffers when they are abandoned
"set mouse=a        " Enable mouse usage (all modes)
set number
set ww=<,>,[,]

" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
  source /etc/vim/vimrc.local
endif

我的vi/vim配置文件

时间: 2024-11-08 20:34:33

我的vi/vim配置文件的相关文章

强大的vim配置文件,让编程更随意

花了很长时间整理的,感觉用起来很方便,共享一下. 我的vim配置主要有以下优点: 1.按F5可以直接编译并执行C.C++.java代码以及执行shell脚本,按"F8"可进行C.C++代码的调试 2.自动插入文件头 ,新建C.C++源文件时自动插入表头:包括文件名.作者.联系方式.建立时间等,读者可根据需求自行更改 3.映射"Ctrl + A"为全选并复制快捷键,方便复制代码 4.按"F2"可以直接消除代码中的空行 5."F3"

mac 下vim 配置文件

" Configuration file for vim set modelines=0 " CVE-2007-2438 " Normally we use vim-extensions. If you want true vi-compatibility " remove change the following statements set nocompatible " Use Vim defaults instead of 100% vi compa

Linux下 vi vim vim-gnome vim-tiny vim-gtk vim-nox的区别

http://blog.csdn.net/pipisorry/article/details/39508417 1.使用vim替换vi vim比vi强大多了,vim属于vi的超集,而且能够解决很多习惯的问题,所以还是有必要使用vim替换vi的.简单地话,可以直接使用"alias vi=vim"命令即可,不过这样只能在这次启动的时候有用,下次启动后,这条就无效了,如果想下次还能使用,那么就需要修改用户自启动配置文件.bashrc,具体的修改如下: sudo apt-get install

vim配置文件 高亮+自动缩进+行号+折叠+优化

配置文件是网上找的,我把出错的几个地方改了下 将一下代码copy到 用户目录下 新建文件为  .vimrc保存即可生效: 如果想所有用户生效 请修改 /etc/vimrc (建议先cp一份) "========================================================================= " DesCRiption: 适合自己使用的vimrc文件,for Linux/Windows, GUI/Console " "

分享一下个人的Vim配置文件

强烈拥护开源精神,高举开源大旗,今天我就分享下我自己结合网上还有自己实际使用配的vimrc,可以给各位参考下,不要见笑哈,具体说明我在rc里写的也很详细,可以具体看下,也希望可以借这个机会能多认识认识几个Vimer们 "======================================== " File Name: .vimrc " Author: Jin Yuqi " Email: [email protected] " Description

Linux介绍+配置虚拟机+安装CentOS6.5+基本命令+使用VI/VIM+rpm的安装和卸载

一.Linux的发展史 1.Linux的发展史 在第2次世界大战刚刚结束(以抗日战争胜利作为标记),也就是19世纪的40年代末西方国家的通用电气,麻省理工大学和贝尔工作室倡导了一个超级计算机的开发计划,这计划被称为Multics工程计划,这个计划最终是以失败告终. 但这个计划的失败为后人对计算机操作系统的研究和开发的宝贵经验,肯?汤谱森和丹尼斯?里奇总结了失败的经验在19世纪的60年代末(苏美冷战时代)发明了举世闻名的Unix操纵系统,由于肯?汤谱森和丹尼斯?里奇不局限于计算机科学只用于军事和国

vim 配置文件 ,高亮+自动缩进+行号+折叠+优化

vim 配置文件 ,高亮+自动缩进+行号+折叠+优化 将一下代码copy到 用户目录下 新建文件为  .vimrc保存即可生效: 如果想所有用户生效 请修改 /etc/vimrc (建议先cp一份)"=========================================================================" DesCRiption: 适合自己使用的vimrc文件,for Linux/Windows, GUI/Console""

[转] vim配置文件.vimrc

--------------------------------------------------------------------------- 转自:http://www.cnblogs.com/wangj08/archive/2013/03/13/2957309.html ------------------------------------------------------------------------------------- vim 配置文件 ,高亮+自动缩进+行号+折

vim配置文件--显示行号tabstop设置

在Red Hat Linux 中管理员的vim的配置文件存放在/etc/vimrc set nocompatible            //去掉有关vi一致性模式,避免以前版本的bug和局限 set nu                      //显示行号 等等配置信息都在vimrc这个文件下,可以查看该文件下的具体设置. 如果是普通用户,可以再普通用户的主目录(~)下即cd跳转到的那个文件目录,新建一个.vimrc文件: 如 set nu set tabstop=4       //按