分页: 1 / 1

求rxvt和vim配置文件?

发表于 : 2007-04-13 22:04
longxj
请哪位高手分享一下

发表于 : 2007-04-13 22:59
eexpress
我的blog有vimrc
rxvt的,只是~/.Xdefaults吧。这个有标准的啊,网上找。ftp里面,我的目录里面有完整的。

发表于 : 2007-04-13 23:21
Nile
呵呵,前面一段是抄eexpress的,后面的是自己写的:

本人也超级大菜鸟,写的不好请指教。

代码: 全选

" 开启语法高亮
syntax on 
" 设置文字编码自动识别
set fencs=utf-8,cp936
" 使用鼠标
set mouse=a
" 设置高亮搜索
set hlsearch
" 输入字符串就显示匹配点
set incsearch
" 输入的命令显示出来,看的清楚些。
set showcmd
" Tlist的内部变量。函数列表。
let Tlist_Use_Right_Window=1
let Tlist_File_Fold_Auto_Close=1
" 打开当前目录文件列表
map <F7> :e .<CR>
" 函数和变量列表
map <F8> :Tlist<CR>
" 搜索当前词,并打开quickfix窗口
map <F9> :call Search_Word()<CR>
" 全能补全
"inoremap <F8> <C-x><C-o>
" 没事,鼠标画线玩的。
" noremap <F9> :call ToggleSketch()<CR>
" 启动函数变量快速浏览的时间设置
set updatetime=100


set number!
set cindent!
set ruler!
filetype plugin indent on
behave mswin
set autowrite
set complete=.,w,u,t,i,b,d,k
set dictionary=./dictionary
inoremap <Tab> <C-P>
nmap <F3> <ESC>:make<CR>
imap <F3> <ESC>:make<CR>
nmap <F4> <ESC>:make<space>clean<CR>
imap <F4> <ESC>:make<space>clean<CR>
nmap <F5> <ESC>:split<space>makefile<CR>
imap <F5> <ESC>:split<space>makefile<CR>
nmap <F2> <ESC>:make<space>run<CR>
imap <F2> <ESC>:make<space>run<CR>
inoremap <c-p> <tab>
nmap <c-up> :cprevious<CR>
nmap <c-down> :cnext<CR>
nmap <c-left> :cfirst<CR>
nmap <c-right> :clast<CR>
nmap <c-a> :cc<CR>
nmap <a-=> <c-w>+
nmap <a--> <c-w>-
nmap <a-c> :close<CR>
nmap <a-x> :only<CR>
nmap <a-up> <c-w>k
nmap <a-down> <c-w>j
nmap <a-left> <c-w>h
nmap <a-right> <c-w>l
注:因为不知道怎么获取当前编辑程序名称所以在makefile中自己加入了run选项:

代码: 全选

objects=test.o 
excutive=test

$(excutive):$(objects)
	g++ -o $@ $^
..cpp.o:
	g++ -c $<
clean:
	rm $(excutive) $(objects)
run:
	$(excutive)
感觉自己写更符合自己习惯。