背景: 作为一个"代码民工"也得巧干,不然,别以为敲键盘累不死人.我本记得我的.vimrc是很少的几句的,可是一打开,吓坏了,肯定是不知道什么时候拷了别人的东西,而平时也没试着去用,真是浪费呀,现在得好好学学,别让那些好设置白占地方呀. 正文: set visualbell " Silence the bell, use a flash instead set cinoptions=:.5s,>1s,p0,t0,(0,g2 " :.5s = indent case statements 1/2 shiftwidth ...
runtime! debian.vim """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " General """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "Get out of VI's compatible mode.. set nocompatible "Sets how many lines of history VIM har to remember set history=100 "Enable filetype plugin filetype plugin on filetype indent on "Set to auto read when a file is changed from the outside se...
请问问如何在vimrc中判断文件类型, like this
if is c/c++ file
then
set cino=:0g0t0(sus
set cindent
map
set autoindent set history=50 set ruler set showcmd set list set number syntax enable set background=light colorscheme pablo set encoding=chinese set fileencoding=utf-8 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1120/showart_390724.html
set encoding=utf-8 #编码方式 syn on #语法高亮 set guifont=Luxi\ Mono\ 11 #字体字号 set tabstop=4 #TAB健大小 set shiftwidth=2 # set autoindent #自动退缩 set backspace=2 #回退间隔 set smartindent #智能缩进 set ai! # set nu! ...
set nobackup set ic set nohls set ruler set showcmd set incsearch syntax enable filetype plugin indent on set cindent shiftwidth=4 set softtabstop=4 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/11171/showart_273132.html
set enc=utf-8 set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set mouse=a set wildmenu set nu set ruler set tabstop=4 set softtabstop=4 set shiftwidth=4 set cindent set autoindent set autoread set nohlsearch set expandtab set history=400 filetype indent on filetype plugin on filetype on syntax on if version >=603 set helplang=cn ...
" vim:shiftwidth=2:tabstop=8:expandtab if has('autocmd') " Remove ALL autocommands for the current group au! " Mark .asm files MASM-type assembly au BufNewFile,BufReadPre *.asm let b:asmsyntax='masm' endif if has('gui_running') let do_syntax_sel_menu=1 endif if has('gui_running') && $LANG !~ '\.' set encoding=utf-8 endif set nocompatible source $VIMRUNTIME/vimrc_example.vim set autoind...
LFS文档将vim作为自己的文本编辑器。这里,我们需要说明还有很多不同的编辑器例如:emacs, nano, joe 等等。每个互联网的用户都会很容易发现网上有很多vim和emacs的狂热拥护者。 LFS文档提供了一个基本的vimrc 文件。这里,我们要增强这个文件的功能。在启动的时候vim会读取 /etc/vimrc 和 ~/.vimrc (也就是说, 全局设置的vimrc 和用户设置)。 这里需要使用LFS3.1或者更新的版本来编译vim。在这个之前全局的vimrc是在/usr/share/v...
我用的是aix5.2 的系统,vim的版本是6.3 但是vimrc里德一些设置 总是调不好,比如 del键总是用不起来 还有语法高亮只是显示下划线,请问该如何解决,最好能发一份可用的vimrc文件给我 邮箱是[email]zuibeidemei@126.com[/email] 非常感谢