Giter Club home page Giter Club logo

dotfiles's Introduction

dotfiles

My bash configuration files with a couple of useful aliases.

Installation

Automatic way

Fire up your terminal and type the following in it:

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/wschott/dotfiles/main/install)"

Don't worry, all your old files will be backed up!

Manual way

$ git clone git://github.com/wschott/dotfiles.git ~/.dotfiles
$ ~/.dotfiles/install

Update every now and then

by running:

$ ~/.dotfiles/install

VIM Mappings

Hints: = ESC, = CTRL, = SPACE, = CMD on OSX

General

  • ;; = : — easier command typing
  • jj, jk, ;; — exit to normal mode
  • H, L — go to start/end of line (EOL)
  • U — redo
  • Y — yank (copy) from cursor to EOL
  • ⎋⎋ — hide search highlights
  • Q — reformat paragraph
  • S — split line (opposite of J to join lines)
  • >, < — indent/deindent current block
  • . — repeat last command
    • >, . — indent many times
    • <, . — deindent many times
  • gw — swap words
  • {insert} ⌃F — omni completion
  • — fold/unfold current folding
  • ;s — substitute (search & replace)
  • ;* — replace word under cursor
  • ;c — find VCS merge conflict marker
  • ;1 — add a Markdown H1 below current line
  • ;v — select the just pasted text
  • {insert} ⌃v — paste from OS clipboard
  • ;y, ;Y — copy to OS clipboard
  • ;p, ;P — paste from OS clipboard
  • ;vs — reload .vimrc
  • %% — puts the current path to the command line
  • ;ft — fold html tag
  • ;S — sort CSS properties

Open/Save/Close files

  • ;e — edit
  • ;t — tabedit
  • ;es — split
  • ;ev — vsplit
  • ;w — save
  • ;W, ;x — save and close file
  • ;q — close file
  • ;Q — close all files
  • ;d — open directory of current file in current tab
  • ;dt — open directory of current file in new tab

Tabs

  • ⌃j, ⌃k — go to previous/next tab

Splits

  • ⌃h, ⌃l — go to left/right split
  • ;H, ;L — create a split on the left/right side
  • ;K, ;J — create a split above/below
  • +, - = _ — increase/decrease split size
  • ;= — set width of all splits to equal size
  • T — move split window into new tab
  • ;mw and ;pw — swap split windows
    1. ;mw — mark first window for swap
    2. ;pw — swap current window with the previously marked one

Toggles

  • ;pp — toggle paste mode
  • ;\ — toggle line wrapping
  • ;inv — toggle invisibles
  • ;num — toggle line numbers
  • ;C — toggle "keep current line in the center of the screen" mode

Set Filetype

  • _d — diff
  • _md — markdown

Mac OS X

  • ⌘k, ⌘{ — go to previous tab
  • ⌘j, ⌘} — go to next tab
  • ⌘1⌘9 — switch to tab #

Thanks to...

Help

dotfiles's People

Contributors

wschott avatar

Stargazers

 avatar

Watchers

 avatar

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.