vi vim htop... default installs - ScottKirvan/WSL GitHub Wiki

By default, the WSL Ubuntu install includes the full vim install and htop, among other things. This simply means, that compared to a vanilla Ubuntu install, you don't have to install htop, or go through the process of untinstalling tiny-vim and reinstalling vim.

TODO: I'll toss my vim.rc in here

Disabling the MF'n beep!

  1. To disable the beep in bash you need to uncomment (or add if not already there) the line set bell-style none in your /etc/inputrc file.

    Note: Since it is a protected file you need to be a privileged user to edit it (i.e. launch your text editor with something like sudo <editor> /etc/inputrc).

  2. To disable the beep also in vim you need to add set visualbell in your ~/.vimrc file.

  3. To disable the beep also in less (i.e. also in man pages and when using "git diff") you need to add export LESS="$LESS -R -Q in your ~/.profile file.

Mouse Copy/Paste in tmux

This is unrelated to WSL, really, but I've started using tmux a lot more lately. I've gotten used to using my mouse to select text and copy/paste things around - in tmux, this doesn't work... well, actually it does, but it's just slightly different:

  1. Copy: shift + mouse-select the text, then hit enter or right mouse button to put the text into the clipboard buffer.
  2. Paste: shift key + right button
⚠️ **GitHub.com Fallback** ⚠️