Install and use tmux + Vim

Source: Internet
Author: User

# Follow these steps to install the dependency patch package;

Wget https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz

Tar xvzf libevent-2.0.20-stable.tar.gz

./Configure -- prefix =/usr/local/libevent

Make

Make install


Ncurses is missing after installation.

yum -y installncurses-devel


To download and install mux 1.8, follow these steps;

Wget http://jaist.dl.sourceforge.net/project/tmux/tmux/tmux-1.8/tmux-1.8.tar.gz

Tar-xvf tmux-1.8.tar.gz

Cd tmux-1.8

CFLAGS = "-I/usr/local/libevent/include" LDFLAGS = "-L/usr/local/libevent/lib"./configure -- prefix =/usr/local/tmux

Make

Make install

Ln-s/usr/local/tmux/bin/tmux/usr/bin/


tmux: error whileloading shared libraries: libevent-2.0.so.5: cannot openshared object file: No such fileor directory
1 cp/tmp/libevent/lib/libevent-2.0.so.5 /usr/lib

OK.

The default value is Ctrl + B, that is, C-B, and then some quick usage:

  • C-B? Show shortcut key help

  • C-B C-o swap window position

  • The C-B Space key uses the next built-in Layout

  • C-B! Change the current window to a new window.

  • C-B "Mode separation window

  • C-B % vertical separation window

  • C-B q: the number of the separated window is displayed.

  • C-B o jumps to the next split window

  • Upper/lower key of C-B and the next separate window

  • C-B C-direction keys adjust the size of the split window

  • C-B c create a new window

  • C-B 0 ~ 9 select the number of Windows

  • C-B c create a new window

  • C-B n select the next window

  • C-B l last used window

  • C-B p select the previous window

  • C-B w display and selection window in menu Mode

  • C-B s display and select sessions in menu Mode

  • C-B t display clock




This article from "would rather dwelling on the first line" blog, please be sure to keep this source http://zhaiku.blog.51cto.com/2489043/1302063

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.