搭建Linux 编程工具-萝卜青菜各有所爱

来源:互联网 发布:画路线图的软件 编辑:程序博客网 时间:2024/06/11 23:45

你懂的,不解释

1) # yum install git

       // set admin and some client. the client have to send patch to the admin,wait for check ...

2) # yum install wine 

       // install sourceinsight

3) # yum install ctags

4) # yum install vim

5) command:find、grep、nautilus

6) makefile、lua

7) vimrc file reference

syntax on " 语法高亮set number " 行号set cursorline " 当前行下滑线set ruler " 打开状态栏标尺set tabstop=4 " 设定 tab 长度为 4set softtabstop=4set shiftwidth=4set expandtab" 搜索时忽略大小写,但在有一个或以上大写字母时仍保持对大小写敏感set ignorecase smartcaseset incsearch " 输入搜索内容时就显示搜索结果set hlsearch " 搜索时高亮显示被找到的文本set ignorecase              " 搜索时忽略大小写“ /xxx (搜索变量、函数等)set smartindent         " 开启新行时使用智能自动缩进 (set autoindent)set foldenable              " 开始折叠set foldmethod=syntax       " 设置语法折叠set foldcolumn=0            " 设置折叠区域的宽度setlocal foldlevel=1        " 设置折叠层数为set foldlevelstart=99       " 打开文件是默认不折叠代码nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>" 用空格键来开关折叠set mouse=a" 设置鼠标操作set showmatch               " 显示匹配的括号" 80行后下划线au BufWinEnter * let w:m2=matchadd('Underlined', '\%>' . 80 . 'v.\+', -1)set cc=80" 显示80行对齐线" 括号补全inoremap ( ()<ESC>iinoremap ) <c-r>=ClosePair(')')<CR>inoremap { {<CR>}<ESC>Oinoremap } <c-r>=ClosePair('}')<CR>inoremap [ []<ESC>iinoremap ] <c-r>=ClosePair(']')<CR>inoremap " ""<ESC>iinoremap ' ''<ESC>ifunction ClosePair(char)    if getline('.')[col('.') - 1] == a:char        return "\<Right>"    else        return a:char    endifendfunctionfiletype plugin indent on  " 开启插件" tagList nnoremap <silent><F4> :TlistToggle<CR>let Tlist_Show_One_File = 1      " 不同时显示多个文件的tag,只显示当前文件的let Tlist_Exit_OnlyWindow = 1    " 如果taglist窗口是最后一个窗口,则退出vimlet Tlist_Use_Right_Window = 1   " 在右侧窗口中显示taglist窗口let Tlist_File_Fold_Auto_Close=1 " 自动折叠当前非编辑文件的方法列表let Tlist_Auto_Open = 0let Tlist_Auto_Update = 1let Tlist_Hightlight_Tag_On_BufEnter = 1let Tlist_Enable_Fold_Column = 0let Tlist_Process_File_Always = 1let Tlist_Display_Prototype = 0let Tlist_Compact_Format = 1" :ts xxx(要查询的函数或变量)" 光标所在xxx,按ctrl + }调转“ ctrl + T 返回