• [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
  • 相关阅读:
    linux网络connect: network is unreachable的解决记录
    kali系统输入msfvenom -l为什么不能显示
    基于fluxion 6.9 钓鱼wifi
    【操作系统】Linux
    【JAVA基础】Mybatis 基本应用
    饮冰三年-人工智能-Vue-70 Promise
    饮冰三年-人工智能-Vue-69 路由
    饮冰三年-人工智能-Vue-68 CLI
    饮冰三年-人工智能-Vue-67 Webpack
    饮冰三年-人工智能-Vue-66 Vue组件化
  • 原文地址:https://www.cnblogs.com/smartvessel/p/1943515.html
Copyright © 2020-2023  润新知