zoukankan      html  css  js  c++  java
  • [11]vim IDEconfiguration and plugin

    先贴个.vimrc配置,稍后再详细说

    ctags -R --c++-kinds=+p --fields=+iaS --extra=+q src  

    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    " => General
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    "sets how many lines of history VIM has to remenber
    set history=700
    "with a map leader it's possible to do extra key combinations
    let mapleader = ","
    let g:mapleader =","

    " Fast editing of the .vimrc
    map <leader>e :e! ~/.vimrc<cr>

    " When vimrc is edited, reload it
    autocmd! bufwritepost vimrc source ~/.vim_runtime/vimrc
    "enable filetype plugin
    filetype plugin indent on
    " set to auto read when a file is changed from the outside
    set autoread
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    " => VIM user interface
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    " Set 7 lines to the curors - when moving vertical..
    set so=7

    set wildmenu "Turn on WiLd menu

    set ruler "Always show current position

    set cmdheight=2 "The commandbar height

    set hid "Change buffer - without saving

    " Set backspace config
    set backspace=eol,start,indent
    set whichwrap+=<,>,h,l

    set ignorecase "Ignore case when searching
    set smartcase

    set hlsearch "Highlight search things

    set incsearch "Make search act like search in modern browsers
    set nolazyredraw "Don't redraw while executing macros

    set magic "Set magic on, for regular expressions

    set showmatch "Show matching bracets when text indicator is over them
    set mat=2 "How many tenths of a second to blink

    " No sound on errors
    set noerrorbells
    set novisualbell
    set t_vb=
    set tm=50

    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    " => Colors and Fonts
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    syntax on
    colorscheme desert
    "colorscheme zellner
    syntax enable
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    " => Text, tab and indent related
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    set expandtab
    set shiftwidth=4
    set tabstop=4
    set smarttab

    set lbr
    set tw=500

    set ai "Auto indent
    set si "Smart indet
    set wrap "Wrap lines
    """"""""""""""""""""""""""""""
    " => find&grep
    """"""""""""""""""""""""""""""
    nnoremap <silent> <F3> :Grep<CR>
    map <leader><F3> :Rgrep<cr>
    """"""""""""""""""""""""""""""
    " => bufExplorer plugin
    """"""""""""""""""""""""""""""
    let g:bufExplorerDefaultHelp=0
    let g:bufExplorerShowRelativePath=1
    map <leader>o :BufExplorer<cr>

    """"""""""""""""""""""""""""""
    " => Minibuffer plugin
    """"""""""""""""""""""""""""""
    let g:miniBufExplModSelTarget = 1
    let g:miniBufExplorerMoreThanOne = 2
    let g:miniBufExplModSelTarget = 0
    let g:miniBufExplUseSingleClick = 1
    let g:miniBufExplMapWindowNavVim = 1
    let g:miniBufExplVSplit = 25
    let g:miniBufExplSplitBelow=1

    let g:bufExplorerSortBy = "name"

    autocmd BufRead,BufNew :call UMiniBufExplorer

    map <leader>u :TMiniBufExplorer<cr>
    """""""""""""""""""""""""""""""""""""""""""""""""""""
    "
    """""""""""""""""""""""""""""""""""""""""""""""""""""
    "shut vi mode
    set nocp
    "
    set cscopequickfix=s-,c-,d-,i-,t-,e-
    set number
    "completion
    set completeopt=longest,menu
    let Tlist_Show_One_File=1
    let Tlist_Exit_OnlyWindow=1
    let g:winManagerWindowLayout='FileExplorer|TagList'
    nmap wm :WMToggle<cr>
    nnoremap <silent> <F12> :A<CR>
    let g:SuperTabRetainCompletionType=2
    let g:SuperTabDefaultCompletionType="<C-X><C-O>"
    """""""""""""""""""""""""""""""""""""""""""""""""""""
    "add work project env
    """""""""""""""""""""""""""""""""""""""""""""""""""""
    :source /home/mark/workhome/cpp/log4cplus-1.0.4/workenv.vim
  • 相关阅读:
    gdb ../sysdeps/i386/elf/start.S: No such file or directory
    zoj 2068
    poj 1068 Parencodings
    图论----同构图
    Leetcode-Sum Root to Leaf Numbers
    作弊揭发者
    理解 Delphi 的类(十一)
    动态生成lookup字段
    Delphi报的错误
    Cannot create file"C:UsersLMLAppDataLocalTempEditorLineEnds.ttr"。另一个程序正在使用此文件,进程无法访问。
  • 原文地址:https://www.cnblogs.com/smartvessel/p/1943515.html
Copyright © 2011-2022 走看看