4 ms·
Learn to use text objects¹ – they are what makes Vim much more powerful than Vi. You can even add custom text objects² such as function argument³ or camel case
by ehamberg 15y ago
Learn to use text objects¹ – they are what makes Vim much more powerful than Vi. You can even add custom text objects² such as function argument³ or camel case word⁴.
Text objects let you operate on logical units of text. E.g. “change inner word” (ciw), “delete a sentence” (das), change inner double quotes (ci"), ...
[1] http://blog.carbonfive.com/2011/10/17/vim-text-objects-the-definitive-guide/ http://blog.carbonfive.com/2011/10/17/vim-text-objects-the-d...
[2] http://vim.wikia.com/wiki/Creating_new_text_objects http://vim.wikia.com/wiki/Creating_new_text_objects
[3] http://www.vim.org/scripts/script.php?script_id=2699 http://www.vim.org/scripts/script.php?script_id=2699
[4] http://www.vim.org/scripts/script.php?script_id=1905 http://www.vim.org/scripts/script.php?script_id=1905