my vimrc

来源:互联网 发布:单片机社团主要做什么 编辑:程序博客网 时间:2024/06/11 15:09
set hlsearch "搜索到内容高亮set fenc=utf-8  "设定默认解码 set fencs=utf-8,usc-bom,gb18030,gbk,gb2312,cp936,euc-jpset nocp "或者 set nocompatible 用于关闭VI的兼容模式 set number "显示行号 set ai "或者 set autoindent vim使用自动对齐,也就是把当前行的对齐格式应用到下一行 set si "或者 set smartindent 依据上面的对齐格式,智能的选择对齐方式set et " 或者: set expandtab,将所有tab键转换为空格set tabstop=2 "设置tab键为4个空格set sw=2 "或者 set shiftwidth 设置当行之间交错时使用4个空格, tab键自动转换为了空格set ruler "设置在编辑过程中,于右下角显示光标位置的状态行 set incsearch "设置增量搜索,这样的查询比较smart set showmatch "高亮显示匹配的括号 set matchtime=5 "匹配括号高亮时间(单位为 1/10 s) set ignorecase "在搜索的时候忽略大小写 syntax on "高亮语法set backspace=indent,eol,startset guioptions-=m  "set guioptions-=bautocmd GUIEnter * simalt ~x " 模拟键盘双击全屏动作"set lines=1000 set columns=1000  设置窗口长和款 "colorscheme pablo "set colorscolorscheme desertset background=dark:set foldmethod=marker "code fold settings":set foldopen=all  " code open when cousor moving on the folded code":set foldclose=all " code close when cousor leaving the undolded code""""""""""""""""""""""""""""""" Tag list (ctags)"""""""""""""""""""""""""""""""let Tlist_Show_One_File = 1            "不同时显示多个文件的tag,只显示当前文件的"let Tlist_Exit_OnlyWindow = 1          "如果taglist窗口是最后一个窗口,则退出vim"let Tlist_Use_Right_Window = 1         "在右侧窗口中显示taglist窗口"let Tlist_Auto_Open=1set tags=/home/leizhou/cEx/algorithms/list/tagsset shell=bash