| ” An example for a vimrc file. ” ” Maintainer: Bram Moolenaar <Bram@vim.org> ” Last change: 2002 May 28 ” ” To use it, copy it to ” for Unix and OS/2: ~/.vimrc ” for Amiga: s:.vimrc ” for MS-DOS and Win32: $VIM\_vimrc ” for OpenVMS: sys$login:.vimrc ” When started as “evim”, evim.vim will already have done these settings. ” Use Vim settings, rather then Vi settings (much better!). ” allow backspacing over everything in insert mode “set autoindent ” always set autoindenting on ” For Win32 GUI: remove ‘t’ flag from ‘guioptions’: no tearoff menu entries ” Don’t use Ex mode, use Q for formatting “################################################################### ” switch between windows ” according to SMTH’s VIM board ” let F5 insert current time to current location. “mouse function support ” set auto shift width ” disable auto backup ” set root directory of DICTIONARY, whose value by default is “”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”* autocmd FileType c call C() “”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"CPP “”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"PERL “”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"HTML “”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"JSP “”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"JS “”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"PHP “”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"”"XML ” This is an alternative that also works in block mode, but the deleted ” Switch syntax highlighting on, when the terminal has colors ” Only do this part when compiled with support for autocommands. ” Enable file type detection. ” For all text files set ‘textwidth’ to 78 characters. ” When editing a file, always jump to the last known cursor position. endif ” has(“autocmd”) |
原创文章,转载请注明: 转载自猪在笑 [ http://www.huangwei.me/blog/ ]
本文链接地址: http://www.huangwei.me/blog/2006/12/28/ioua_vimrcudha-2/
最近评论