Vim Nauxscript Keyboard Efficiency Training

website·Indexed 31 days ago

https://vim.nauxscript.com

A comprehensive guide to keyboard-centric workflows and Vim-style navigation across various tools. The documentation covers Vim fundamentals, VS Code optimization (including VSpaceCode), Chrome efficiency via Vimium-c, macOS system and app shortcuts (Alfred, Obsidian, Finder), and terminal productivity using zsh-vi-mode and Zellij.

Tokens
17.6K
Snippets
99
Records
165
Agent score
49%

What's inside Vim Nauxscript

  1. Overview of the Just Vim It training program

    Just Vim It is an introductory training program designed for absolute beginners or developers who want to rebuild their Vim foundations for daily professional work. The training focuses on reducing reliance on the mouse and is primarily centered around using Vim within VS Code and the command line, though the skills are transferable to other editors like WebStorm, Sublime, Chrome, and Obsidian.
  2. Overview of Just Vim It training

    Just Vim It is an introductory training program designed for complete beginners or developers who want to rebuild their Vim foundation for daily professional work. The training focuses on achieving a level of proficiency where users can perform common coding operations without relying on a mouse. While the primary context is using Vim within VS Code and the command line, the skills are transferable to other editors like WebStorm, Sublime, Chrome, and Obsidian.
  3. Use vim-easymotion for intuitive cursor movement

    vim-easymotion replaces the need for numeric-prefixed movement commands (like 5j or 5w) by highlighting potential target locations on the screen, allowing the user to jump to them more intuitively. It is commonly configured with a <Leader> key (often mapped to space) to trigger its commands.
  4. Use VS Code Snippets to accelerate coding

    Snippets in VS Code allow developers to quickly insert repetitive code templates via shorthand triggers. After selecting a snippet from the suggestions, you can use the Tab key to jump between predefined cursor positions (placeholders). If the suggestion box disappears, you can trigger it again using Cmd + . (macOS) or Ctrl + Space.
  5. Manage surrounding characters with vim-surround

    The vim-surround plugin allows you to easily add, change, and delete pairs of surrounding characters such as parentheses, brackets, quotes, and XML/HTML tags. It uses the s key as the primary operator for these actions.
  6. Configure custom Vim mappings using Vimrc Support plugin

    Since native Obsidian Vim mode has limited configuration, the Vimrc Support community plugin is used to enable file-based key mappings.

    1. Disable Safe mode in Settings -> Third-party plugins to allow community plugins.
    2. Install Vimrc Support from the Community plugins marketplace.
    3. Create a file named .obsidian.vimrc in the root of your Obsidian vault. The plugin reads this file to apply custom Vim mappings.
    # Create the vimrc file in the vault root
    touch .obsidian.vimrc
  7. Change text case in Vim

    Vim provides several commands to change the case of characters. These commands can be used in Normal mode (followed by a motion) or in Visual mode (applied to the selection).
    " Normal Mode
    gu[motion] : Convert to lowercase (e.g., `gue` converts from cursor to end of word)
    gU[motion] : Convert to uppercase (e.g., `gUiw` converts current word to uppercase)
    ~          : Toggle case of the character under the cursor
    
    " Visual Mode
    u : Convert selected text to lowercase
    U : Convert selected text to uppercase
  8. Launch and navigate lazygit

    • lazygit: Launch the tool in a Git repo.
    • q: Quit lazygit.
    • h / l (or numbers 1-5): Switch focus between the five functional panels on the left.
    • j / k: Move focus up/down within a panel (e.g., switching between commits or branches).
    • [ / ]: Switch between tabs within a panel (e.g., switching between Local Branches, Remotes, and Tags).
    • ?: Open the help menu to see all available commands for the current panel.
    # Add to ~/bash_profile or ~/.zshrc
    alias lg='lazygit'
  9. Install lazygit on macOS

    lazygit can be installed on macOS using Homebrew. If you encounter errors during installation (e.g., missing dependencies) while using a domestic mirror source, it is recommended to switch back to the official Homebrew source.
    brew install lazygit
  10. Create a new VS Code window

    To open a new VS Code window for working on multiple projects simultaneously, use the following shortcuts:

    • MacOS: shift + command + n
    • Windows: shift + ctrl + n