项目作者: billzeh

项目描述 :
Bash home dir configurations
高级语言: Vim script
项目地址: git://github.com/billzeh/home.git
创建时间: 2018-02-04T15:18:04Z
项目社区:https://github.com/billzeh/home

开源协议:

下载


home

My personal bash zsh ~/home dir configurations

Most of the files in the project are hidden files.

To show hidden files on a Mac use the keyboard shortcut:
⌘^.

Tmux Cheat Sheet

  • Split pane horizontally:

    Prefix "

  • Split pane vertically:

    Prefix %

  • Create new window:

    Prefix c

  • Auto arrange panes:

    Prefix space

  • Auto re-arrange pane order:

    Prefix ctrl+o

  • Reorder pane down / up:

    Prefix { / Prefix }

Vim Cheat Sheet

  • ZZ - Save file & exit
  • zz - Move current line to the middle of the screen
  • zt - Move current line to the top of the screen
  • zb - Move current line to the bottom of the screen
  • dd - Delete current line
  • dw - Delete word at cursor
  • D - Delete from cursor to the end of the line
  • x - Delete character at cursor
  • ~ - Toggle case of character under cursor
  • v - Visual mode
  • V - Line select visual mode
  • ^v - Column select visual mode
  • Vp - Replace current line with paste buffer
  • cw - Change word at cursor
  • r - Replace character at cursor
  • ^a - Increment number at cursor
  • i - Insert mode
  • A - Enter insert mode at the end of line
  • O - Create a blank line under cursor and enter insert mode

Column Edit

  1. Enter column visual mode with ^v
  2. User arrow keys to select column
  3. I to enter insert mode
  4. Edit and esc to exit insert & visual mode and apply changes

Find / Replace

  • :%s/<search pattern>/<replacement txt>/g

Line Numbers

  • :set nu - Set line numbers
  • :set rnu - Set relative line numbers