Posts

Showing posts from June, 2023

How to use the visual mode in vim

Image
The Vim editor provides a powerful feature known as visual mode, which allows users to select and manipulate text in a more interactive and precise manner. In visual mode, users can easily highlight text by moving the cursor or using motion commands. This mode offers three variations: character-wise, line-wise, and block-wise visual modes. Character-wise visual mode selects text character by character, line-wise visual mode selects whole lines, and block-wise visual mode selects rectangular blocks of text. Once text is selected, various operations can be performed, such as copying, cutting, pasting, or applying commands to the selected text. Vim's visual mode offers a flexible and efficient way to manipulate and edit text, making it a valuable tool for users seeking fine-grained control over their editing tasks. Visual Line Mode The visual line mode is a versatile feature that allows users to select and manipulate entire lines of text in a convenient and efficient manner. By e

10 Coding styles for a cleaner C code

Image
In this post we are going to see multiple conventions that enhances code readability, making it easier for both the original author and other team members to understand and maintain the codebase.  Simple coding style plays a crucial role in the development of efficient and maintainable software. By adhering to a simple coding style, developers ensure that their code is clear, readable, and easy to understand. This simplicity enhances collaboration within the development team, as well as aids in code reviews and debugging processes. A simple coding style also reduces the likelihood of introducing bugs and makes it easier to identify and fix issues when they arise. Additionally, simplicity in coding leads to more maintainable code, as it is easier to modify, refactor, and extend in the future. This is key for code quality, team productivity, and contributes to the long-term success of software projects. Over the years I've tried multiple coding style in different projects. Some

Best key bindings for tmux

Image
TMUX key bindings provide a powerful and efficient way to navigate and manipulate the terminal multiplexer. With customizable key combinations, users can streamline their workflow, saving valuable time and effort.  TMUX is a terminal multiplexer, which is a command-line tool that allows you to divide a single terminal window into multiple panes, each containing its own command line interface. It provides a convenient way to work with multiple terminal sessions within a single window, making it easier to multitask and manage your workflow. With TMUX, you can create, switch between, and detach terminal sessions, enabling you to keep processes running in the background even when you're not actively connected to a terminal. It's particularly useful for working on remote servers or managing long-running processes that need to continue running even after you disconnect from the terminal. These are its main features: Multiple Panes : TMUX allows you to split