I often find myself just want to compare the contents of buffers in memory as I may use something like “:sort” or a find and replace and not necessarily want … Continue Reading How to compare vim’s in-memory buffers
To find lines which have “This” and “NotThat” it is as simple as: :g/This\&\(.*NotThat\)\@! Let’s dive into each piece of this in a little more detail… The :g is a … Continue Reading vim find a line that has this but not that
Normally when doing find and replaces in a file there are some key words that we want to key off, but not replace. This can be a pain because you … Continue Reading Vim finding and replacing without captures
I highlight my searches in VIM using the following in my .vimrc: While demoing or in a code review it is nice to highlight more than one item. You can … Continue Reading Vim Highlighting
The ctags command allows you to index source – any source. The command generates a single file called a tags file (which [ironically] is the name of the file). Then … Continue Reading How to generate a ctags files and use it with vim
I have seen zip files used as containers for hand off between programs. Java’s JAR files are just zip archives. Sometimes you just want to modify a file in a … Continue Reading How do I easily manipulate individual files in a zip archive?
This post is about using GDB to debug a DLL built with debug symbols which was called from a Java application being debugged by JetBrains IntelliJ IDEA. First things first: I am … Continue Reading Debugging DLL using GDB called via JNI (Java Native Interface) being debugged by JetBrains IntelliJ IDEA