Tidak Ada Deskripsi

Weiyi Lou 8d164ec687 Update readme, add word count for pandoc files 10 tahun lalu
ack 0310a09947 add `.ackrc` 12 tahun lalu
bin 7c93fd5e8f Add `dotfiles/bin` path 10 tahun lalu
git 90766b2060 Add vim-plug to repo, Update git ignores 10 tahun lalu
homebrew 158a6f2c9b Update brewfile, add tmux vim mode lines 10 tahun lalu
irssi deebd959da add irssi scripts for nick colors, and nick and window lists 13 tahun lalu
screen a925c35842 enforce no vbell in screen, remove default windows 12 tahun lalu
tmux 70721be638 Add `:DiffOrig`, change tmux pane cutting 10 tahun lalu
vim 8d164ec687 Update readme, add word count for pandoc files 10 tahun lalu
vimperator dc9eb02bde Revert vimperator to auto-fade flash messages 10 tahun lalu
zsh 2d4db83d7a Add command line editing to zsh 10 tahun lalu
.gitignore e3215b1c37 Add NeoVim XDG config, update vim-plug 10 tahun lalu
.gitmodules e8c0dd5673 Remove tmux-colors-solarized, update vim-plug 10 tahun lalu
README.md 8d164ec687 Update readme, add word count for pandoc files 10 tahun lalu
setup.sh e3215b1c37 Add NeoVim XDG config, update vim-plug 10 tahun lalu

README.md

dotfiles

These are configuration files for:

  • Vim 7.4+ or NeoVim
  • Vimperator (3.8+)
  • Tmux
  • Zsh
  • Other bits and pieces

The configs reflect a heavy preference for vim-like bindings.

Requirements

  • The configs only make sense with at least zsh and vim installed.
  • zsh has been used with 4.3.17 and up.
  • vim can work with 7.3, but is best with 7.4+ to have all the right patches.

Optional

  • The Solarized dark colour palette makes the zsh prompt nicer.
  • The Meslo font (Menlo, patched for powerline), makes vim and tmux look better, and has Rainbarf graph glyphs.
  • Vim with Python/Ruby support or NeoVim is needed for Vim-Plug to perform parallel downloads.
  • The Silver Searcher should be installed where possible. If not available, Ack (part of this repo) will be used as a fallback (requires Perl 5.8.8).
  • Install Pandoc for vim to generate documents from .pandoc files (Pandoc Markdown). Install pandoc-citeproc for bibliographical assistance.

Set Up

Clone this repository to the home folder, and run setup.sh:

$ ~/dotfiles/setup.sh

Restart the shell after that.

Useful Things

Below are some examples of how this config is used. The list is not exhaustive. Users are encouraged to actually read the dotfiles. Hopefully, any comments left help users to understand, modify and improve what is there.

And improve you should. Streamline your work flow. Introspect constantly. See what others do. Enjoy the amount of time wasted on tweaking a setup :D

Zsh

  • Git prompt tries to reflect the actual file state, not just hint at change types.
  • Mostly-Mnemonic Git shortcuts. Go learn Git.
  • SSH agent forwarding persists through tmux/sudo when remotes also use these dotfiles. (Be a one-private-key kind of person.)
  • A .zshlocal file can contain machine-specific settings.
  • z folder jumping enabled, e.g. z regex = cd /path/with/regex.

Vim

Space is the <Leader>.

  • <Leader>p fuzzy-finds files. Best in Git repositories.
  • <Leader>f fuzzy-finds functions in the current file.
  • <Leader>t opens a function/variable list for the current file.
  • <Leader>n toggles line numbers.
  • <Leader>w saves.
  • <Leader>q closes files.
  • Additional text objects exist (see 'Text Objects' in plugins.vim).
  • Saving .pandoc files also outputs .docx versions.
  • Activate :Goyo for distraction-free writing.
  • 3 colour schemes are available. Toggle with :Dark, :Light and :Neon.

Tmux

Ctrl-a is the Prefix. PrefixHold = Hold down Ctrl during that binding.

  • Prefix + vi motion moves around panes.
  • PrefixHold + vi motion moves around windows.
  • Alt/Meta + number moves to window number (1-10).
  • Prefix + - cuts a pane horizontally,
  • Prefix + \ cuts a pane vertically (think |).
  • Prefix + s starts synchronized panes.
  • PrefixHold + s swaps between sessions.
  • Mouse support works to select/resize panes/windows.

Vimperator

Apart from all the default vimperator goodness e.g.

  • / searches like vim.
  • f and F follow links on this tab/in a new tab.
  • et cetera...

This config provides the following:

  • h and l move left and right between tabs.
  • j and k half-pages down and up (<C-d>/<C-u> equivalents).
  • H, J, K, L are small motions (5 lines or chars) within a page.
  • <C-h> and <C-l> relocate a tab left and right.