🔧 Configuration files
Vim script Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.config
.themes
ftplugin
syntax
.Xresources
.bashrc
.gitconfig
.profile
.tmux.conf
.vimrc
.xinitrc
README.md
_vimrc
batterycheck.sh
bootstrap.sh
linux-4.7.config
mousestart.desktop
mpd.conf
vifmrc

README.md

Dotfiles

Command line

Command Description
find . -type f -exec sed -i 's/foo/bar/g' {} + replace "foo" with "bar" in all the files in the current directory and subdirectories

Vim tips & keys

Generic

Command Description
:%s/foo/bar/gc interactively replace "foo" with "bar"
Key Description
Ctrl+V I .. ESC comment out multiple lines
zR,M open, close all folds
zr,m open, close all folds level by level

Splits

Key Description
Ctrl+w _,| max out the width, height
Ctrl+w t Ctrl+w K,H switch vertical to horizontal, horizontal to vertical
Ctrl+w r,R swap top/bottom, left/right
Ctrl+w = normalize all

Ctrl-P

Key Description
Ctrl+p invoke the Ctrl-P menu
Ctrl+[j,k] navigate the menu up, down
Ctrl+x open file in new tab
Ctrl+[v,x] open file in new split