Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1150443
  • 博文数量: 341
  • 博客积分: 12744
  • 博客等级: 上将
  • 技术积分: 4040
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-12 09:34
文章分类
文章存档

2014年(1)

2013年(10)

2012年(17)

2011年(63)

2010年(102)

2009年(107)

2008年(41)

分类: LINUX

2008-12-29 16:58:27

set nu
set autoindent
set shiftwidth=4
set softtabstop=4
set tabstop=4
compiler gcc
set sm
set cin
set fileencodings=utf8
set fileencodings=utf8,gb2312,gbk,big5
filetype plugin on
filetype indent on
set tabstop=4
nmap F :!sdcv -n =expand("")
set nocp
set hlsearch
set incsearch
set showcmd
let Tlist_Use_Right_Window=1
let Tlist_Compart_Format = 1
let Tlist_File_Fold_Auto_Close=1
nmap :Explore " 文件列表
nmap :TlistToggle "函数变量
map :call CompileRunGcc()
func! CompileRunGcc()  "编译运行程序
    exec "w"
    exec "!gcc % -o %<"
    exec "! ./%<"
    endfunc
nmap :call Search_Word() "打开quickfix
nmap :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .
nnoremap :Grep "寻找grep
inoremap "全能补全
nnoremap :A
set updatetime=100
noremap :call ToggleSketch()
set modifiable
set write
set smartindent
set ambiwidth=double
syntax on
let g:SuperTabRetainCompletionType=2
let g:SuperTabDefaultCompletionType=""
set nocp
"set mouse=a
set mouse=h
autocmd CursorMoved * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
set path+=/usr/include/gtk-2.0/*,/usr/include/gtk-2.0,/usr/include/glib-2.0/*,/usr/include/glib-2.0
set tags+=/usr/include/gtk-2.0/gtk/tags,/usr/include/gtk-2.0/tags,/usr/include/glib-2.0/tags,/usr/include/glib-2.0/glib/tags
set fo+=mB
set lbr
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
set nobackup
set noerrorbells
set formatoptions=tcrqn
set foldenable
set foldmethod=manual
nnoremap @=((foldclosed(line('.')) < 0) ? 'zc' :'zo')
set backspace=indent,eol,start
set shortmess=atI
ab #i #include"apue.h"
autocmd BufEnter * call DoWordComplete()
let g:WC_min_len = 3
let g:WC_accept_key = ""
nmap :Matrix
let g:winManagerWindowLayout = "BufExplorer,FileExplorer|TagList"
let g:winManagerWidth = 30
let g:defaultExplorer = 0
nmap :WMToggle

阅读(1161) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~