Vim configuration file 1 "do not use the vi keyboard mode, but vim's own 2 set nocompatible 3 "syntax highlighted 4 set syntax = on 5" color scheme 6 colorscheme torte 7 "removed the input error prompt sound 8 set noeb 9" not saved During Processing or read-only files, pop-up confirmation 10 set confirm 11 "automatic indent 12 set autoindent 13 set cindent 14" automatic newline 15 set wrap 16 "full line feed 17 set linebreak 18" Tab key width 19 set tabstop = 4 20 "unified indent to 4 21 set softtabstop = 4 22 set shiftwidth = 4 23" do not use spaces instead of the tab 24 set noexpandtab 25 "use tab 26 at the beginning of the line and segment Set smarttab 27 "show row 28 set number 29" number of history 30 set history = 1000 31 "prohibit generation of temporary files 32 set nobackup 33 set noswapfile 34" Search ignore case 35 set ignorecase 36 "Search by character highlight 37 set hlsearch 38 set incsearch 39" Replace 40 set gdefault 41 "encoding settings 42 set enc = UTF-8 43 set fencs = UTF-8, ucs-bom, shift-jis, gb18030, gbk, gb2312, cp936 44 "language settings 45 set helplang = cn 46 set encoding = utf8 47 set langmenu = zh_CN.UTF-8 48 set imcmdline 49 Source $ VIMRUNTIME/delmenu. vim 50 source $ VIMRUNTIME/menu. vim 51 "set the font. 52 set guifont = Liberation \ Mono \ 12 53 54 "set guifont = Fixedsys \ Excelsior \ 3.01 \ 14 55 56" content displayed on my status line (including file type and decoding) 57 set statusline = % F % m % r % h % w \ [FORMAT = % {& ff}] \ [TYPE = % Y] \ [POS = % l, % v] [% p %] \%{ strftime (\ "% d/% m/% y \-\ % H: % M \")} 58 "set statusline = [% F] % y % r % m % * % = [Line: % l/% L, Column: % c] [% p %] 59 "always displays status row 60 set laststatus = 2 61" during editing, the height of the Status line 62 set r000063 "command line (under the Status line) at the cursor position is displayed in the lower right corner. The default value is 1. Here is 2 64 set cmdh. Eight = 2 65 "detect file type 66 filetype on 67" Load file type plug-in 68 filetype plugin on 69 "load related indent file 70 filetype indent on 71" save global variables 72 set viminfo + =! 73 "do not use line breaks to separate words with the following symbols: 74 set iskeyword + =_, $, @, % ,#, -75 "Number of pixel lines inserted between characters 76 set linespace = 0 77" command lines in enhancement mode automatically complete operation 78 set wildmenu 79 "backspace) normal handling of indent, eol, start, and other 80 set backspace = 2 81 "allow backspace and photomark keys to cross the line border 82 set whichwrap + = <,>, h, l 83 "you can use the mouse anywhere in the buffer (similar to double-clicking the mouse in the workspace in office) 84 set mouse = a 85 set selection = exclusive 86 set selectmode = mouse, key 87 "uses the commands command to tell us which row of the file has been changed by 88 set r. Eport = 0 89 "the prompt 90 set shortmess = atI 91" for assistance to children in Somalia is not displayed at startup "blank between Split windows for ease of reading 92 set fillchars = vert: \, stl: \, stlnc: \ 93 "highlight matching brackets 94 set showmatch 95" the time when matching brackets are highlighted (unit: 10 s) 96 set matchtime = 5 97 "move the cursor to the top and bottom of the buffer to keep three lines away from 98 set scroloff = 3 99" to automatically indent the C program 100 set smartindent101 "only in the following files the row number is displayed when the type is detected, normal text files do not display 102 if has ("autocmd") 103 autocmd FileType xml, html, c, cs, java, perl, shell, bash, cpp, python, Vim, php, ruby set number104 105 autocmd FileType xml, html vmap <C-o> <ESC> '<I <! -- <ESC> o <ESC> '> o --> 106 107 autocmd FileType java, c, cpp, cs vmap <C-o> <ESC> '<o/* <ESC>'> o */108 109 autocmd FileType html, text, php, vim, c, java, xml, bash, shell, perl, python setlocal textwidth = 100110 111 autocmd Filetype html, xml, xsl source $ VIMRUNTIME/plugin/closetag. vim112 113 autocmd BufReadPost * 114 115 \ if line ("'\" ")> 0 & line ("' \ "") <= line ("$ ") | 116 117 \ exe "normal G' \" "| 118 119 \ endif120 121 endif" has ("autocmd") 122 123 let g: rsenseHome = "/home/ldy/Program/rsense-0.3"