zoukankan      html  css  js  c++  java
  • windows下wim配置成IDE

    1、配置文件_wimrc

    set fileencodings=utf-8,ucs-bom,cp936,big5
    set fileencoding=utf-8
    
    source $VIMRUNTIME/vimrc_example.vim
    source $VIMRUNTIME/mswin.vim
    behave mswin
    
    "设置默认配色方案
    colorscheme blue
    
    " 设置winmanager
    " 设置界面分割
    let g:winManagerWindowLayout = "FileExplorer|TagList"
    "设置winmanager的宽度,默认为25
    let g:winManagerWidth = 30
    let g:winManagerHeight = 80
    "定义打开关闭winmanager快捷键为F8
    nmap <silent> <F8> :WMToggle<cr>
    "在进入vim时自动打开winmanager
    let g:AutoOpenWinManager = 1
    
    set diffexpr=MyDiff()
    function MyDiff()
      let opt = '-a --binary '
      if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
      if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
      let arg1 = v:fname_in
      if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
      let arg2 = v:fname_new
      if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
      let arg3 = v:fname_out
      if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
      if $VIMRUNTIME =~ ' '
        if &sh =~ '<cmd'
          if empty(&shellxquote)
            let l:shxq_sav = ''
            set shellxquote&
          endif
          let cmd = '"' . $VIMRUNTIME . 'diff"'
        else
          let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . 'diff"'
        endif
      else
        let cmd = $VIMRUNTIME . 'diff'
      endif
      silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
      if exists('l:shxq_sav')
        let &shellxquote=l:shxq_sav
      endif
    endfunction

    2、安装文件管理器和语法提示插件

    文件管理器 winmanager

    语法提示 ctags

    下载后解压,把doc和plugin目录覆盖到vim80目录下。

    3.安装Bufxplorer

    地址: http://www.vim.org/scripts/script.PHP?script_id=42

    2.安装Taglist

      在http://www.vim.org/scripts/script.php?script_id=273上下载taglist_45.zip

    ctags需要下载源码编译,使用vs2005命令行编译。nmake /f mak_mvc.mak

    请阅读readme文件,然后把编译得到的ctags复制到vim80目录下,命令行执行 ctags -R

    http://ctags.sourceforge.net/

  • 相关阅读:
    1053: 正弦函数
    1052: 数列求和4
    1051: 平方根的和
    1050: 阶乘的累加和
    POJ 1321 棋盘问题(搜索的方式)
    HDU 1176 免费馅饼
    BZOJ 2423 (求LCS的长度和种类数)
    HDU 2612 (2次BFS,有点小细节)
    POJ 1088 滑雪(模板题 DFS+记忆化)
    HRBUST 1186 青蛙过河 (思路错了)
  • 原文地址:https://www.cnblogs.com/jiftle/p/6706634.html
Copyright © 2011-2022 走看看