Search for: vim

How to step debug debugging rust in vim 8.1
24 Jul 2021

“Basically, rust-gdb is a wrapper that loads external Python pretty-printing scripts into GDB. This is useful (and somewhat necessary) when debugging more complex Rust programs because it significantly improves the display of Rust data types.” (src) what the developer has […]

GNU Linux how to vim install VimPlug
16 Jul 2021

tested on hostnamectl Static hostname: lenovo Icon name: computer-laptop Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-17-amd64 Architecture: x86-64 preperations: su – root apt update # install vim and git and curl apt install vim git curl # install […]

how to copy and paste outside of vim – system clipboard to another other gui applications – the 1 million lines text editor benchmark onemillionlines.txt
28 Jul 2020

what is the problem? https://vi.stackexchange.com/questions/13564/why-is-vim-for-debian-compiled-without-clipboard for whatever reasons a lot of vim packages come compiled without system -clipboard support. furthermore: for copy & paste per default vim uses it’s own registers (not the default primary and secondary system clipboard that […]

password protect encrypt files with vim and vi
02 Jun 2017

it’s amazing… try this: open up a text file Hit ESC (command mode) :X now vim / vi will ask you for a password if you know save and quit and reopen the file it detects that the file was […]

GNU Linux -> Vim Search & Replace
27 Aug 2015

vim is one of the greatest terminal based editors that is out there (though Stallman & Linus prefer Emacs) it is capable of editing pretty large files, that would make other gui based editors crash # Find each occurrence of […]

28 May 2015

you can enable syntax highlighting in vim by typing: :syntax on and disable by: :syntax off per default vim shows *.conf files as blue-text on black-bg, which is pretty hard to read. you can change the color-scheme used by typing: […]

GNU Linux how to setup PC (with 2x NIC) as NAT router (LAN, WAN)
31 Dec 2024

WARNING! WORDPRESS DISPLAYS ONE-LINER-COMMANDS IN MULTIPLE LINES MAKE SURE TO ALWAYS COPY THE WHOLE LINE! based on https://anchored.host/articles/how-to-turn-a-debian-machine-into-a-router hardware requirements: have at least 2x network interfaces LAN (internal network shielded from WAN) WAN (this is the network that connects to […]

GNU Linux bash stopwatch script
26 Dec 2024

sometimes it is usefull to meassure how long what took in the shell vim /scripts/stopwatch.sh #!/bin/bash # function to get current time in seconds and milliseconds get_time() { date +%s%N | cut -b1-13 } # initial time start_time=$(get_time) echo “press […]

Ubuntu + Debian: how to pip (python package manager) cheat sheed how to examples and getting started with robot + selenium gui testing framework – nokia’s eclipse red vs vscode extension (how to eclipse+pydev + virtual python environment) (error: “externally-managed-environment” “This environment is externally managed”)
29 Sep 2024

imho it’s recommended to solve things without 3rd party packages (which might possible be neglected (no more security updates) or even hijacked after some time) it is sometimes agreed upon to extend python’s capabilities with 3rd party packages like psutil […]

Python on GNU Linux mate how to run script in external separate terminal window
24 Jun 2024

hostnamectl; # tested on Static hostname: debian12DevPython Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-20-amd64 Architecture: x86-64 python –version Python 3.11.2; # tested on vim run_script_in_external_terminal.py #!/usr/bin/env python import subprocess process = subprocess.Popen(‘/usr/bin/mate-terminal -e /run/some/script.sh’.split(), stdout=subprocess.PIPE) output, error = […]

GNU Linux ssh magic tricks – access devices without opening firewall port – reverse ssh proxy tunnel – open source admin’s vpn and teamviewer replacement (no open ports needed) – how to use ssh into a network behind router-firewall and forward port of any device to localhost
01 Apr 2024

scroll down to: “how to access user-dev-admin’s home network boxes from anywhere via reverse-ssh-tunnel! :D” ssh tunnel remote deviceD’s port access a device’s port that is only available via a specific machine 😀 or in other words: ssh-tunnel port of […]

GNU Linux howto ssh sshd config hardening security guide
10 Mar 2024

update: 2024-06: ed25519 is currently “the way to go” ssh can be regarded as “critical core infrastructure” time spend on it’s security is time well spend time + money well invested: https://www.openssh.com https://github.com/openssh current manpage: ssh.man.txt WARNING: this howto guide […]