安装commant-t时遇到一些问题
通过 Vunble 安command-t 后,在Normal模式下输入 \t
或者 命令模式:CommandT
后,提示
command-t.vim could not load the C extension
于是乎:
进入ruby目录下编译C扩展(当然你需要安装ruby)
cd ~/.vim/bundle/command-t/ruby/command-t
ruby extconf.rb
make
前提是
安装了 ruby-dev
安装好了后,遇到了<c-s>不能用,但是<c-v> <c-t>可以用的问题,
还是在 https://github.com/wincent/command-t/blob/master/doc/command-t.txt
这里找到了答案
If you find that <C-s> also doesn't work the most likely explanation
is that XON/XOFF flow control is enabled; this is the default in many
environments. This means that when you press <C-s> all input to the
terminal is suspended until you release it by hitting <C-q>. While
input is suspended you may think your terminal has frozen, but it
hasn't.To disable flow control, add the following to your
.zshrc
or
.bash_profile
:stty -ixon -ixoff
如果需要切换 tab ,需要在 .vimrc
中添加 参考 另一个参考
map <C-L> :tabn<CR>
map <C-H> :tabp<CR>