Copy all the lines to clipboard

You should yank the text to the * or + registers: gg”*yG Explanation: gg to get the cursor to the first character of the file “*y to start a yank command to the register * from the first line, until… G to go the end of the file

Categories vim

Writing binary number system in C code

Standard C doesn’t define binary constants. There’s a GNU C extension though (among popular compilers, clang adapts it as well): the 0b or 0B prefixes: If you want to stick with standard C, then there’s an option: you can combine a macro and a function to create an almost readable “binary constant” feature: And then … Read more

Categories C Tags