惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Proofpoint News Feed
G
GRAHAM CLULEY
P
Privacy International News Feed
The Hacker News
The Hacker News
Forbes - Security
Forbes - Security
U
Unit 42
N
News and Events Feed by Topic
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cisco Blogs
A
About on SuperTechFans
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
Docker
I
Intezer
Spread Privacy
Spread Privacy
The Last Watchdog
The Last Watchdog
V2EX - 技术
V2EX - 技术
S
Security @ Cisco Blogs
F
Full Disclosure
S
Secure Thoughts
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
W
WeLiveSecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Project Zero
Project Zero
Recorded Future
Recorded Future
Cyberwarzone
Cyberwarzone
S
Security Affairs
AWS News Blog
AWS News Blog
H
Help Net Security
The GitHub Blog
The GitHub Blog
Hacker News: Ask HN
Hacker News: Ask HN
Vercel News
Vercel News
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Register - Security
The Register - Security
S
Schneier on Security
F
Fortinet All Blogs
C
CERT Recently Published Vulnerability Notes
L
LINUX DO - 最新话题
T
Tor Project blog
T
The Exploit Database - CXSecurity.com
MongoDB | Blog
MongoDB | Blog
Webroot Blog
Webroot Blog

Stonecharioteer on Tech

I Traced My Traffic Through a Home Tailscale Exit Node What Was I Reading Last? In Three Not-So-Easy Pieces Dogfooding Is Hard Code blocks in your books, finally GoForGo v0.9.0 Merrilin - We built an app to read books I use a Macbook now Data Structures & Algorithms - Preparing for Interviews Using a local DNS namespace for local service discovery Direction KOllector - Publishing KOReader Highlights gbt: branches touched in the last 24 hours A Soiree into Symbols in Ruby Some Smalltalk about Ruby Loops Ruby Blocks Returning from Ruby Blocks, Procs and Lambdas My Linux Laptop Finally Works: How Claude Helped Me Fix Years of Annoyances TIL: Watchexec - Modern File Watching for Development Workflows A Less Busy Mind GoForGo - Learn Go through live examples Migrating My Old Blog to Hugo with Claude The Qtile Window Manager: A Python-Powered Tiling Experience Read the RFCs that Built the Internet Py-x-Protobuf - Or How I Learned to Stop Worrying and Love Protocol Buffers Python Reverse a List New Beginnings Leaving ChainSafe Systems Screen Lock for Cinnamon Desktop using Zenity and Terminal Commands Crews Not Teams A System for Getting Better at LeetCode So Far So Rust Retrying HTTP Requests with Rust A Primer on Control Charts Learning Rust Explicit is Better than Implicit: Rust for Pythonistas Using Custom Delimiters in Jinja Templates TIL: Creating Fixed Length Iterables in Python Documentation Without Assumption Vagrant Python - A Reflection in 2022 Learning Golang No, A Virtual Machine Is Not Enough: Why Developers Need Native Linux Empathy in Tech For Those Who Came in Late A Weekend With PostgreSQL TIL: Gooey and Python Fire for Quick GUIs and CLIs TIL: 2ality - Dr. Axel Rauschmayer's JavaScript Blog TIL: MassDNS - High-Performance Bulk DNS Lookups TIL: Matomo Analytics, Google Tech Writing, Memory Programming, and NES TV Signals TIL: MontyDB - MongoDB Implemented in Python Returning to the Craft of Programming TIL: CPUFetch, OneFetch, and Learn CSS TIL: DNS Performance Testing and Pi-hole with Unbound TIL: Eli Bendersky's Blog, Awesome By Example, NoCoDB, and Martin Kleppmann TIL: CRDTs, Extreme HTTP Performance, and BYTEPATH Game TIL: AutoInvent, ASGI, Python Packaging, RAPIDS GPU Computing, and FlaskCon TIL: MangaDesk - Terminal Client for MangaDex TIL: McFly - Smart Shell History Search TIL: Siege Load Testing and Awesome FastAPI Resources TIL: Ventoy Bootable USB and Justniffer Network Analysis TIL: CLI Code Review, Git Split Diffs, and Internal Combustion Engine TIL: Benford's Law, Web Security Headers, Event Sourcing, and Mozilla Security Guidelines How to Write Documentation - The README.md File The Importance of Documentation TIL: NNgroup UX Research, SponsorBlock, and Labella Python Library TIL: The Little Book of Rust Macros and Rust Performance Book TIL: Git-Bug Distributed Issue Tracker and Omni Kubernetes Monitoring TIL: Zellij - Modern Terminal Multiplexer TIL: How Discord Handles 2.5 Million Concurrent Voice Users TIL: Volumio - The Audiophile Music Player TIL: Areopagitica - Milton's Defense of Free Speech TIL: Fast Node Manager, Zoxide Smart CD, Technical Writing, PyO3, and Qubes OS TIL: Slurm Workload Manager for HPC Clusters TIL: Data Visualization Guide and Oso Authorization Academy TIL: CORS Deep Dive, Piku Tiny PaaS, Rust Strings, and Deno Standard Library TIL: Raspberry Pi OS Development, Vim Beginner Guide, Password Management, and QueryBook TIL: uBlock Origin Performance Optimization on Firefox TIL: Breaking PostgreSQL at Scale and LeetCode Problem Patterns TIL: Awesome Tmux Resources for Terminal Multiplexing TIL: Grit - A Multitree-Based Personal Task Manager TIL: Lens 4.2 Kubernetes IDE, Shell Scripting Guide, and Dark HTTP Server Do The Job You Hate So You Won't Hate The Job You Love TIL: Innernet VPN Solution and NoteCalc Calculator App TIL: Argo CD for GitOps and Lens Kubernetes IDE TIL: Modern Rust CLI Tools - System Monitoring, HTTP Requests, and DNS TIL: tz - A Time Zone Helper Tool TIL: Distributed Systems Education, Fallacies, and Self-Hosted Internet Archiving TIL: Real-Time Voice Cloning Technology TIL: ChartMuseum for Helm, AMD's Corporate Journey, and Kubernetes Pod Scaling TIL: Docker and Kubernetes Tools - Whaler, Descheduler, and Dive TIL: Post-Mortem Collection, Terminal Plotting, and Technical Twitter TIL: Dark Mode Toggle Web Component by Google Chrome Labs TIL: Python eval(), exec(), and compile() Functions TIL: Camelot PDF Tables, PostgreSQL Row Level Security, Zerodha Varsity, and Write Yourself a Git TIL: fuser Command for Process and File Investigation TIL: i Hate Regex - The Ultimate Regex Cheat Sheet TIL: Dolt - Git for Data and Database Version Control TIL: x86 Assembly Programming and SafeEyes Break Reminder TIL: Comprehensive Distributed Systems Reading List TIL: Cosmopolitan C Library, Distributed Systems Book, High Performance Browser Networking, and Rust Roguelike Tutorial
TIL: Most Productive Vim Shortcuts and Techniques
2021-01-21 · via Stonecharioteer on Tech

Vim Productivity Techniques

Most Productive Vim Shortcuts Discussion

Essential Vim Productivity Shortcuts

Text Objects and Motion

  • ci" (Change Inside Quotes): Change text within quotes
  • da{ (Delete Around Braces): Delete including surrounding braces
  • yiw (Yank Inner Word): Copy current word
  • vip (Visual Inner Paragraph): Select entire paragraph
  • gqip (Format Inner Paragraph): Format paragraph text

Advanced Navigation

  • * and #: Search for word under cursor (forward/backward)
  • %: Jump between matching brackets/parentheses
  • gd: Go to definition of variable under cursor
  • Ctrl-o / Ctrl-i: Navigate back/forward through jump history
  • m{a-z}: Set marks, '{a-z} to jump to marks

Powerful Editing Commands

  • =: Auto-indent selected text or motion
  • gU / gu: Convert to uppercase/lowercase
  • > / <: Indent/unindent selected text
  • .: Repeat last command (extremely powerful)
  • q{a-z} / @{a-z}: Record and replay macros

Search and Replace

  • / and ?: Forward and backward search
  • n / N: Next/previous search result
  • :s/old/new/g: Substitute in current line
  • :%s/old/new/gc: Global search and replace with confirmation
  • :g/pattern/command: Execute command on lines matching pattern

Advanced Techniques

Buffer and Window Management

  • :ls: List all buffers
  • Ctrl-w commands: Window management (split, resize, navigate)
  • :b{number} or :b{name}: Switch to specific buffer
  • Ctrl-^: Switch between current and previous buffer

Command Line Efficiency

  • q:: Open command history in editable buffer
  • Ctrl-r: Insert register contents in command mode
  • !!: Repeat last shell command
  • :r !command: Insert output of shell command

Visual Mode Power

  • gv: Reselect last visual selection
  • o: Move to other end of visual selection
  • Ctrl-v: Column/block visual mode
  • I / A in visual block: Insert at beginning/end of each line

Vim Philosophy and Mindset

Composability

  • Operators + Text Objects: Commands combine (d + iw = delete inner word)
  • Counts: Numbers multiply actions (3dd = delete 3 lines)
  • Ranges: Apply commands to line ranges (10,20s/old/new/g)

Efficiency Principles

  • Minimize Keystrokes: Learn the shortest path to accomplish tasks
  • Muscle Memory: Practice common operations until they’re automatic
  • Modal Editing: Leverage different modes for different tasks
  • Text Objects: Think in terms of words, sentences, paragraphs, not characters

Learning Progression

  • Basic Navigation: Start with hjkl, basic editing
  • Text Objects: Learn word, sentence, paragraph operations
  • Advanced Motion: Search, marks, jumps
  • Customization: Adapt Vim to your specific workflow

Key Takeaways

  • Community Knowledge: Stack Overflow discussions provide real-world expertise
  • Incremental Learning: Master a few shortcuts at a time rather than trying to learn everything
  • Practice: Consistent use builds muscle memory and efficiency
  • Composability: Understanding how Vim commands combine multiplies productivity
  • Personal Optimization: Different workflows benefit from different shortcut priorities
  • Long-term Investment: Time spent learning Vim pays dividends over years of use

Vim’s power comes not from memorizing hundreds of shortcuts, but from understanding its compositional nature and developing muscle memory for the most common operations in your specific workflow.