LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 684|回复: 3

哪位大侠给我一份vimrc

[复制链接]
发表于 2004-9-12 16:20:24 | 显示全部楼层 |阅读模式
我不小心把/etc/vim/vimrc给删了
哪位好心的大侠给我一份
thx
发表于 2004-9-12 17:40:04 | 显示全部楼层
我的是/usr/share/vim/vimrc


  1. " An example for a vimrc file.
  2. "
  3. " Maintainer:   Bram Moolenaar <Bram@vim.org>
  4. " Last change:  2002 Sep 19
  5. "
  6. " To use it, copy it to
  7. "     for Unix and OS/2:  ~/.vimrc
  8. "             for Amiga:  s:.vimrc
  9. "  for MS-DOS and Win32:  $VIM\_vimrc
  10. "           for OpenVMS:  sys$login:.vimrc

  11. " When started as "evim", evim.vim will already have done these settings.
  12. if v:progname =~? "evim"
  13.   finish
  14. endif

  15. " Use Vim settings, rather then Vi settings (much better!).
  16. " This must be first, because it changes other options as a side effect.
  17. set nocompatible

  18. " allow backspacing over everything in insert mode
  19. set backspace=indent,eol,start

  20. if has("vms")
  21.   set nobackup          " do not keep a backup file, use versions instead
  22. else
  23.   set backup            " keep a backup file
  24. endif
  25. set history=50          " keep 50 lines of command line history
  26. set ruler               " show the cursor position all the time
  27. set showcmd             " display incomplete commands
  28. set incsearch           " do incremental searching

  29. " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
  30. " let &guioptions = substitute(&guioptions, "t", "", "g")

  31. " Don't use Ex mode, use Q for formatting
  32. map Q gq

  33. " This is an alternative that also works in block mode, but the deleted
  34. " text is lost and it only works for putting the current register.
  35. "vnoremap p "_dp

  36. " Switch syntax highlighting on, when the terminal has colors
  37. " Also switch on highlighting the last used search pattern.
  38. if &t_Co > 2 || has("gui_running")
  39.   syntax on
  40.   set hlsearch
  41. endif

  42. " Only do this part when compiled with support for autocommands.
  43. if has("autocmd")

  44.   " Enable file type detection.
  45.   " Use the default filetype settings, so that mail gets 'tw' set to 72,
  46.   " 'cindent' is on in C files, etc.
  47.   " Also load indent files, to automatically do language-dependent indenting.
  48.   filetype plugin indent on

  49.   " Put these in an autocmd group, so that we can delete them easily.
  50.   augroup vimrcEx
  51.   au!

  52.   " For all text files set 'textwidth' to 78 characters.
  53.   autocmd FileType text setlocal textwidth=78

  54.   " When editing a file, always jump to the last known cursor position.
  55.   " Don't do it when the position is invalid or when inside an event handler
  56.   " (happens when dropping a file on gvim).
  57.   autocmd BufReadPost *
  58.     \ if line("'"") > 0 && line("'"") <= line("$") |
  59.     \   exe "normal g`"" |
  60.     \ endif

  61.   augroup END

  62. else
  63.   set autoindent                " always set autoindenting on

  64. endif " has("autocmd")


复制代码
发表于 2004-9-12 17:41:42 | 显示全部楼层
我的是 VIM 6.3-013+2

在 Debian 3.1 上
 楼主| 发表于 2004-9-12 20:01:58 | 显示全部楼层
多谢斑竹
我的vim也是6.3的,简直量身定做的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表