winmanager插件安装


• 插件简介

winmanager is a plugin which implements a classical windows type IDE in Vim-6.0. Basically, you have the directory tree and the buffer list as 2 windows which stay on the left and the editing is done in a seperate area on the left. People have already made excellent File and Buffer explorers seperately and I thought that it might be a cool idea to combine them both.  winmanager.vim combines the standard File Explorer which ships with Vim6.0 and a Buffer Explorer written by Jeff Lanzarotta into one package.  It has the following features:  
       winmanager是一款在Vim-6.0中实现经典窗形IDE的插件。总的来说,用户可以在Vim编辑器左边拥有目录树和缓冲列表,同时在右边拥有一块独立的区域来完成编辑。已经有人单独编写出优秀的文件浏览器和缓冲浏览器插件,因此我认为结合二者将是一个很不错的想法。winmanager.vim包含了一个基于Vim6.0的标准文件浏览器和一个由Jeff Lanzarotta编写的缓冲浏览器。它拥有以下特性:

1. the buffer listing is dynamic: i.e as you keep changing windows, editing new files, etc, the buffer list changes dynamically. the window also resizes dynamically, i.e it tries to occupy the minimum possible space to display all the currently listed windows. also, only the filename (i.e without path) is displayed in this window. however, the full path name is echoed on the command line as one moves around.  
       1. 缓冲列表是动态的:譬如你一直在进行改变窗口、编辑新文件等诸如此类的操作,缓冲列表将动态随之改变。窗口大小也会动态进行调整,譬如它将尝试占用尽可能小的空间来显示当前窗口条目。因此,只有文件名才会在该窗口显示。当一个文件移动时,全路径名将在命令行处显示。

2. the file explorer window doesn't actually edit a directory. It's a new empty file with modifiable off, etc. so that it doesnt eat up buffer numbers as you roam around the directory tree. I found the original behaviour slightly annoying... Also, I didnt find a way to change drives i.e go from c:/ to h:/ in the original explorer.vim. therefore i have added a tiny new mapping 'C' which changes the currently displayed directory to pwd.

• 安装方法

▶ 下载winmanager,下载地址:http://www.vim.org/scripts/script.php?script_id=95

▶  存放路径,在Windows系统下路径为:vim安装路径\vimXX\,在Linux系统下安装路径为:/usr/share/vim/vimXX/

▶  将下载的解压包解压,将包中的docplugin目录覆盖到存放路径下。

• .vimrc文件配置

       winmanager的配置:

" winmanager配置
let g:NERDTree_title='NERD Tree'
let g:winManagerWindowLayout='NERDTree|TagList'
function! NERDTree_Start()
exec 'NERDTree'
endfunction function! NERDTree_IsValid()
return
endfunction " 绑定F2到winmanager
nmap <silent> <F2> :WMToggle<CR>

taglist相关配置的修改:

" 绑定F8快捷键
" 使用winmanager时,不使用快捷键
" nnoremap <silent> <F8> :TlistToggle<CR> " 启动Vim后,自动打开taglist窗口。
" 使用winmanager时,将自动打开窗口关闭
let Tlist_Auto_Open =

NERD tree相关配置的修改:

" 绑定F2到NERDTreeToggle
" 使用winmanager时,不使用快捷键
" map <F2> :NERDTreeToggle<CR>

另外,在windows下使用时,打开winmanager时会出现一个空buff,如果想在打开时候自动关闭这个buff,这里有两种方法:

▶  修改开关快捷键

" 绑定F2到winmanager
nmap <silent> <F2> :if IsWinManagerVisible() <BAR> WMToggle<CR> <BAR> else <BAR> WMToggle<CR>:q<CR> endif <CR>

▶  修改winmanager.vim

" toggle showing the explorer plugins.
function! <SID>ToggleWindowsManager()
if IsWinManagerVisible()
call s:CloseWindowsManager()
else
call s:StartWindowsManager()
" 增加启动时候关闭空buff代码
exe 'q'
end
endfunction

修改完毕,按下F2都可以方便地开关winmanager了:

vim使用winmanager整合nerd tree和taglist的更多相关文章

  1. vim 插件之NERD tree

    NERD tree 这个插件可以用来快速浏览目录结构,打开文件 地址 http://www.vim.org/scripts/script.php?script_id=1658 https://gith ...

  2. Vim 配置 winmanager

    问题描述: winmanager是vim中插件,可以方便的查看当前文件夹中文件,可以切换vim打开文件,非常方便 现在说明安装和使用winmanager 问题解决: (1)winmanager源文件 ...

  3. Vim 中文件目录浏览插件——NERD tree

    说明 :vim的插件NERDTree用于使得vim窗口分左右窗口显示的用法说明.其中,左侧为目录的树形界面,简称为NERDTree界面,右则为vim界面. 一.配置步骤 下载地址: http://ww ...

  4. win10/win7下不通过winmanager整合NERDTree和Tagbar的gVim8.0配置

    本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利. 注:图片来自作者公众号--"iKM_2018",亦即& ...

  5. 在 Linux 打造属于自己的 Vim

    Linux 系统中很多东西都是以脚本代码.配置文件的形式存在,使用 Linux 系统时,需经常对这些文件进行编辑.很显然,如果没有文本编辑器,江湖之路寸步难行. 我的选择是 Vim.Vim 是 Lin ...

  6. vim 插件 -- NERDTree

    介绍 NERDTree 插件就是使vim编辑器有目录效果. 所谓无图无真相,所以直接看这个插件的效果图吧. 下载 https://www.vim.org/scripts/script.php?scri ...

  7. ctagst简单应用,将Vim改造:Ctags,Taglist,Cscope,OmniCppComplete,SuperTab,Winmanager,NERDTree,MiniBufExplorer,vimrc

    vim + ctags $ ctags #给同一个目录下的所有文件建立tags 这时在tags文件所在的目录下打开源文件阅读,vim就会自动调用tags文件.如果tags文件不在当前目录下,能在命令模 ...

  8. 【转】将Vim改造为强大的IDE—Vim集成Ctags/Taglist/Cscope/Winmanager/NERDTree/OmniCppComplete(有图有真相)

    原文网址:http://blog.csdn.net/bokee/article/details/6633193 工欲善其事,必先利其器.一个强大的开发环境可以大大提高工作效率.好吧,我知道这是废话.. ...

  9. 将Vim改造为强大的IDE—Vim集成Ctags/Taglist/Cscope/Winmanager/NERDTree/OmniCppComplete(有图有真相)(转)

    1.安装Vim和Vim基本插件首先安装好Vim和Vim的基本插件.这些使用apt-get安装即可:lingd@ubuntu:~/arm$sudo apt-get install vim vim-scr ...

随机推荐

  1. trim() 是什么意思?

    这是一个很常见的函数,他的所用是去掉字符序列左边和右边的空格,如字符串str = " ai lafu yo ";str = trim(str); cout << str ...

  2. 为什么选择使用Spring Cloud而放弃了Dubbo

    为什么选择使用Spring Cloud而放弃了Dubbo 可能大家会问,为什么选择了使用Dubbo之后,而又选择全面使用Spring Cloud呢?其中有几个原因: 1)从两个公司的背景来谈:Dubb ...

  3. 【NOIP模拟题】Incr(dp)

    太水的dp没啥好说的.. #include <cstdio> #include <cstring> #include <cmath> #include <st ...

  4. 【UVa】Jump(dp)

    http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&p ...

  5. 在Chem 3D软件用什么方法可以改变背景

    化学绘图过程中常常需要绘制三维结构的图形,Chem 3D软件是ChemOffice套件中专门用于绘制三维结构的组件.用过它的用户会发现,其背景颜色通常都默认为深蓝色,但是不是每个场景都适合用深蓝色的背 ...

  6. Python Scrapy 验证码登录处理

    一.Form表单分析 以豆瓣登录页面为例分析,豆瓣登录页是:https://accounts.douban.com/login,浏览器打开之后查看源码,查找登录的form表单HTML结构.如下: 包括 ...

  7. UE4关于编译配置的参考(Debug,DebugGame,Development,Shipping,Test等)

    https://docs.unrealengine.com/latest/CHN/Programming/Development/BuildConfigurations/index.html 编译配置 ...

  8. 【黑金原创教程】【TimeQuest】【第六章】物理时钟与外部模型

    声明:本文为黑金动力社区(http://www.heijin.org)原创教程,如需转载请注明出处,谢谢! 黑金动力社区2013年原创教程连载计划: http://www.cnblogs.com/al ...

  9. pdb文件及引发的思考

    最初只想知道线上iis里需要不需要pdb文件,了解部分之后对于.net底层产生了浓厚的兴趣,看了一点点资料 资料来源: https://www.cnblogs.com/itech/archive/20 ...

  10. 帧动画和骨骼json、极速、二进制对比

    对比总结: 1. 帧动画的效率最高,但是图片超过一定帧数,资源图片非常大.比较适合帧数少,大量动画存在,要求效率高的场合. 骨骼json效率较低,已经不推荐使用. 骨骼极速,不支持网格等. 骨骼二进制 ...