bash-cheatsheet

Because I suck at bash

View the Project on GitHub asser-dk/bash-cheatsheet

(Yes, vim is not bash but I didn’t feel like making an entirely new setup just for vim.)

Search

Source: https://linuxize.com/post/vim-search

Search for the current word

You can also search for the “current word” (meaning the word the cursor is currently “on”) by pressing:

Search history

Case sensitivity

By default searches are case sensitive.

You can change the case sensitivity behaviour from either the vim command line or the ~/.vimrc like so:

Change line endings to unix

If you manage to download a file with windows line endings (^M errors) do the following:

  1. Open the file in vim
  2. Execute the command :set ff=unix
  3. Save and quit (:wq)