megalithic / Dotfiles-2

My config files for Fish, Vim and Git.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotfiles

Installation

First, clone this repo onto your system:

$ git clone https://github.com/jason2506/Dotfiles.git && cd Dotfiles

Then, you should create symlinks in your home directory to point to the actual dotfile files:

$ ln -s `pwd`/vimrc ~/.vimrc
$ ln -s `pwd`/vim ~/.vim
$ ln -s `pwd`/gitconfig ~/.gitconfig
$ ln -s `pwd`/config.fish ~/.config/fish/config.fish

Environment

To have full features of those dotfiles, you need to install the following packages/softwares:

Features

Fish Profile

  • Show Git status on prompt.
  • Lighter color configure.

Git Exclude Files

  • .DS_Store
  • *.swp

Git Shortcuts

  • git br = git branch
  • git ci = git commit
  • git co = git checkout
  • git lg = git log --graph --oneline
  • git st = git status

Vim Configurates

  • Show syntax highlight and line number.
  • Remember last cursor position for each file.
  • Disable backup setting.
  • Enable auto indent/smart indent.
  • Indent = 2 whitespaces (html, xml, css, vim) or 4 whitespaces (others).

Vim Shortcuts

  • <leader>y (visual mode): Copy selected content into clipboard.
  • <leader>x (visual mode): Cut selected content into clipboard.
  • <leader>p (normal mode): Paste clipboard content.
  • <leader>tn (normal mode): Shortcut for :tabnew.
  • <leader>tc (normal mode): Shortcut for :tabclose.
  • <leader>tm (normal mode): Shortcut for :tabmove.
  • <leader>ed (normal mode): Toggle NERDTree window.
  • <leader>et (normal mode): Toggle Tagbar window.
  • <leader>ee (normal mode): Toggle NERDTree and Tagbar window at the same time.
  • > (visual mode): Indent selected lines.
  • < (visual mode): Unindent selected lines.
  • > (normal mode): Indent current line.
  • < (normal mode): Unindent current line.

Vim Plugins

About

My config files for Fish, Vim and Git.