Categoría : vim

Spell checking

aspell is a command-line spell checker. It is a replacement for the older ispell. It can be used to manage dictionaries, to check a complete file, or words typed in your terminal, among other uses. We can invoke aspell this way: $ aspell -a –lang=en @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.3) This […]

Leer Más →

gdb & nice Vim macro

Imagine we have a simple program like the one below: #include <stdio.h> int main(int argc, char **argv) { char *str = “Hello guys, this is just a bit large string to test a nice Vim macro”; printf(“%sn”, str); return (0); } This program is pretty simple, but it will serve its purpose. Imagine we have […]

Leer Más →

ASCII codes in Vim

Today, a work mate asked if anyone had an ASCII code table at hand. He was editing a file in Vim and wanted to know the ASCII code for a certain character. Here is the answer: While having the cursor on the character, type: <ESC>:ascii<ENTER> Enjoy!

Leer Más →