Ⅰ. 插件描述
Script for use with Total Commander's button barⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/tcmdbar-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/tcmdbar-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/tcmdbar-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/tcmdbar.vim
Ⅳ. 文档说明
This script is only for users of Total Commander and Win32 (maybe Win16).
After proper installation:
Start Total Commander, select one or more files, then click the GVim button.
GVim will create an argument list from the selected files so you can edit them.
Sounds trivial, but it is not.
Works with Ctrl-B (show flattened file list).
Customization for _vimrc (optional)
Open files in windows, tab pages or in diff mode:
:let Tcmdbar_OpenIn = "Windows"
:let Tcmdbar_OpenIn = "Tabs" " ignored in Vim6
:let Tcmdbar_OpenIn = "Diff Mode"
Values may be abbreviated to "win", "tab" and "diff".
You will get an error if you want to open too many files. In this case
Vim will only open windows/tabs for as many files as possible.
-- Please report errors if the script does not work for you! --
2007 Sep 17
If the first argument is always the file list, the plugin actually isn't needed!
You can define the button this way:
Command: <path>gvim.exe "+n =readfile(argv(0))"
Parameters: %L
In the help:
:h `=
:h next_f