Code Monkey home page Code Monkey logo

tmux-vim-config's Introduction

Tmux Configuration File

Tmux is a terminal multiplexer. It is a smarter terminal that can let you code with minimum usage of mouse. This configuration file is valid for Tmux version 1.9 or greater. This article can relate why you should try to go full keyboard.

This is how it looks like

Prefix mapped to Ctrl-a because in my opinion it's easier than the default prefix Ctrl-b.

This Tmux configuration has many plugin to make you throw your mouse away. They are:

Prequisites

Install base-16-color to get the desired color scheme.

Installation

Option 1:

  1. Clone the repo:
git clone https://github.com/muhrifqii/tmux-vim-config
  1. Make the install.sh executable:
chmod +x install.sh
  1. Run install.sh
./install.sh
  1. Download Tmux Plugin Manager:
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  1. Update tmux config:
tmux source-file ~/.tmux.conf

Option 2:

  • Download Tmux Plugin Manager (only if you do not have it yet):
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  • Just copy the desired part in this .tmux.conf on your own .tmux.conf file.
  • Do exactly the same like the step 4 and 5 on Option 1

Try it

Launch tmux:

tmux

And press Control + a then d to go back to the terminal.

To start a session:

tmux

To show the active tmux session:

tmux ls

To reattach a previous session:

tmux a -t {session-name}

To reload config file inside tmux

<Control + a>: (Prefix key then :) then source-file ~/.tmux.conf

Basic Commands

In case you miss the top of README content, this configuration uses prefix key Ctrl + a. This prefix is a typed before any tmux shortcut sequence.

  • Ctrl + a before any command
  • Ctrl + a then d to detach session without closing it
  • Ctrl + a then ? to bring up list of keyboard shortcuts
  • Ctrl + a then " to split window into view pane horizontally
  • Ctrl + a then % to split window into view pane vertically
  • Ctrl + a then Ctrl + (arrow) to configure the pane size
  • Ctrl + a then (arrow) to move between view pane
  • alt + arrow can also be used to move between view pane
  • alt then h, j, k, or l can also be used to move between pane (so the vim hjkl wont be forgotten)
  • Control + a then c to create a new window
  • Control + a then n to next window
  • Control + a then p to previous window
  • Control + a then [0-9] move to window number
  • Control + a then & to kill window

tmux-vim-config's People

Contributors

muhrifqii avatar wawando avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tmux-vim-config's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.