• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Snippet #835

Created 10/18/2011, updated 5/18/2017
  • vim
  • snippets

Something I'd never noticed about Vim text objects: if you do something like ci" when you're not even inside a double-quote string, it will operate on the first such string it finds to the right of the cursor on the current line. If there is no such string, or the string is to the left, it does nothing (source).

← Snippet #836
Involuntary Reboot Log 3.11 →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).