Tips & Tricks
All those cool little snippets of magic.
All those cool little snippets of magic.
Here are the backslash-escape special characters that have meaning to bash: \a an ASCII bell character (07) \d the date in “Weekday Month Date” format (e.g., “Tue May 26”) \e an ASCII escape character (033) \h the hostname up to the first `.’ \H the hostname \j the number of Read more…
If you are like me you get alot of source/text files created in windows that are filled with the usual extra carriage return. To get rid of these stupid things it is a simple one line regular expression. :1,$ s/^M$//g Note: Make sure you create the ^M using CTRL+V and Read more…
Description: Autocomplete will complete any word, in any open document you are currently editing Mode: Insert Commands: Ctrl+N – Next Suggestion Ctrl+P – Previous Suggestion Usage: Open an existing text document in vim and enter insert mode. Type any character (for example ‘s‘) and press Ctrl+N or Ctrl+P. Vim will Read more…