Some Vim Resources

Read more →

Vim Directories Navigation and Autocomplete File Names

Navigating files with Vim is cumbersome. The default settings and the inbuilt file browser netrw are not convenient. I use vim-picker to navigate in a project. vim-picker is a fuzzy file picker for NeoVim and Vim: To use vim-picker you need a program that can traverse your project with a fuzzy text selector. vim-picker will search the current working directory. That’s the folder in which you’ve opened Vim. The Problem You need to open Vim in the project root directory (most often the Git project root), so that you can use fuzzy file and text searching.
Read more →

TIL About Git Pretty Log

Read more →

On the Lookout for a New RSS Feed Reader

I’m looking for a new RSS reader. I’ve tried subscribing to blogs via email. Now I have tons of emails which I don’t have the time to read. I’d rather use RSS again. I can collect the blogs I want in a central place. When I have time, I can skim through new entries and decide which ones catch my interest. I don’t want to self-host. I self-hosted a selfoss instance once but it was a hassle to maintain.
Read more →

TIL About the i3 Scratchpad

Today I learned about the i3 scratchpad. The scatchpad is a special i3 window. You can use it as a window that opens your favorite program, e.g., a music player or editor. Examples:

Make the currently focused window a scratchpad bindsym $mod+Shift+minus move scratchpad # Show the first scratchpad window bindsym $mod+minus scratchpad show The first command moves the current window to the scratchpad and makes it invisible. With the second command you open the scratchpad and cycle through all windows.

Read more →

TIL About How To Create Ordered Lists in Vim Quickly

Today I found a cool trick on the Vim SubReddit: how to quickly create ordered lists. Here’s a screen-cast by rnevius: Steps Let’s say that you have a list: one item another item it’s an item Use <C-v> (CTRL + V), then I to select all lines at the start of the line and add a 0. in front of each: 0. one item 0. another item 0.
Read more →

Get Your Touchpad Working on Manjaro i3 (2020)

I’ve re-installed my laptop from scratch with Manjaro Architect, using the i3 community edition. My laptop has a touchpad, an ETPS/2 Elantech. It doesn’t work out of the box. i3 is a tiling window manager, so I have to find a way to configure the touchpad. For i3, it makes sense to use the X11 configuration. Create a new file in the folder /etc/X11/xorg.conf.d/. In my case, there already was a file called 30-touchpad.
Read more →

TIL Copy With Clipboard in Vim Over Ssh

Today I tried using Vim over SSH on a remote machine. I needed to copy some configuration to the server. I opened Vim in the terminal (via SSH): vim config.txt I wanted to paste into the Vim buffer. I tried to use the "+p command in normal mode to paste from the system clipboard. Unfortunately, that didn’t work. [Solution][stackexchange]: The “clipboard” is a feature of X11, so you will need to enable “X11 forwarding” for the SSH connection in “trusted” mode:
Read more →

Tuesday Picks 003

Read more →

Code Snippets With vim-vsnip

When you work with a language like Dart, you soon realize that you have a lot of boilerplate code. For example, here is the skeleton code for a stateless Widget in Flutter: class YellowBird extends StatefulWidget { const YellowBird({ Key key }) : super(key: key); @override _YellowBirdState createState() => _YellowBirdState(); } class _YellowBirdState extends State<YellowBird> { @override Widget build(BuildContext context) { return Container(color: const Color(0xFFFFE306)); } } A few code snippets would be helpful.
Read more →