贴出本人的vim配置文件,随时更新

原创 2012年03月27日 22:31:16
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
" /usr/share/vim/vimcurrent/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

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

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

" 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 tabstop=4		" The width of Tab key
set number		" Show lines number
set hlsearch		" Search highlighted text to be found
set guioptions-=T       " remove toolbar
set guioptions-=m       " remove menu bar

" Auto indent
set autoindent
set cindent
set smartindent

" Uniform indentation of 4
set softtabstop=4
set shiftwidth=4

" Code problem
set enc=utf-8
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936

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


vim 配置

1、使用cd /  转到文件系统中; 2、cd /etc/vim 切换到vim目录内; 3、修改文件权限 :  sudo chmod  777 vimrc ,会提示你输...

贴出个人使用的gvim配置文件

个人正在使用的 gvim配置文件 set nu "设置行号 set autoread " 文件被改动时自动载入 set cu...

我的vim和emacs配置文件(2014-05-19更新)

vimrc: "cnsworder set colorscheme ron syntax on set nobackup set tabstop=4 set softtabstop=4 set s...
  • cnsword
  • cnsword
  • 2012年03月01日 11:37
  • 5978

vim配置文件(持续更新

刚学会用vim,真的很强大很好用的感觉。自己写了一点配置文件,今后会持续更新。"vim环境变量设置 set nu "显示行号 set hlsearch ...

vim配置文件(持续更新)

" 关闭 vi 兼容模式 set nocompatible " 自动语法高亮 set syntax=on " 检测文件类型 filetype on " 检测文件类型插件 filetype plugin...

spf13-vim+sourceinsight 配置文件

  • 2017年11月27日 21:15
  • 51KB
  • 下载

vim配置文件

  • 2016年07月14日 17:01
  • 13KB
  • 下载

PE文件数字签名信息读取存储及格式详解图之上(历史代码,贴出学习)

PE文件数字签名信息读取存储及格式详解图 。
  • bjtbjt
  • bjtbjt
  • 2014年07月22日 11:20
  • 4229

VIM配置文件

  • 2016年08月09日 16:38
  • 11KB
  • 下载

vim 配置文件与插件

  • 2016年04月11日 15:54
  • 214KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:贴出本人的vim配置文件,随时更新
举报原因:
原因补充:

(最多只允许输入30个字)