- 論壇徽章:
- 0
|
================================
Author: taoyuetao
Email:
[color="#0000ff"]tao_yuetao@yahoo.com.cn
Blog:
[color="#800080"]http://blog.chinaunix.net/u/31100/
07-07-25
================================
Placed my .vimrc file at blog for backup, when has new configuration, i'll update it to blog.
Source file content:
=========================================================
1 set number
2 "總在 Vim 窗口的右下角顯示當(dāng)前光標(biāo)位置
3 set ruler
4 set tabstop=4
5 "set cindent shiftwidth=4
6 "set foldmethod=indent
7 set guifont=SimSun\ 10
8 set hlsearch
9 "set foldcolumn=4
10 syntax on
11 set browsedir=buffer
12 "自動進(jìn)入目錄
13 "set autochdir
14 "colorscheme peachpuff
15
16 " When editing a file, always jump to the last known cursor position.
17 " Don't do it when the position is invalid or when inside an event
18 " handler
19 " (happens when dropping a file on gvim).
20 " 記住上次的編輯位置
21 autocmd BufReadPost *
22 \ if line("'\"") > 0 && line("'\"") -,trail:~
29 "set list
30 "syntax match Trail " +$"
31 "highlight def link Trail Todo
32
33 " 插入系統(tǒng)日期
34 map :r !date +\%c
35
36 " Open a file explorer
37 " 我喜歡用F4鍵打開一個文件瀏覽窗口
38 if has("vertsplit")
39 nnoremap :call FileExplOpen()
40 if !exists("*FileExplOpen")
41 fun FileExplOpen()
42 if @% == ""
43 20vsp .
44 else
45 exe "20vsp " . expand("%:p:h")
46 endif
47 endfun
48 endif
49 endif
50
51 "don't create backup file
52 set nobackup
53 "禁止自動換行
54 set nowrap
55
本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u/31100/showart_346356.html |
|