All Projects → vim-scripts → Argtextobj.vim

vim-scripts / Argtextobj.vim

Text-object like motion for arguments

Labels

Projects that are alternatives of or similar to Argtextobj.vim

Vim Jst
A vim plugin for highlighting and indenting JST/EJS syntax
Stars: ✭ 92 (-10.68%)
Mutual labels:  viml
Textobjectify
TextObjectify is a Vim plugin which improves text-objects
Stars: ✭ 98 (-4.85%)
Mutual labels:  viml
Vimrc
My vim files (i'm a n00b, don't use these)
Stars: ✭ 100 (-2.91%)
Mutual labels:  viml
Cmd2.vim
cmdline-mode enhancement for Vim
Stars: ✭ 94 (-8.74%)
Mutual labels:  viml
Preto
A minimal dark theme for VIM.
Stars: ✭ 97 (-5.83%)
Mutual labels:  viml
Vimperator Colors
colorsheme
Stars: ✭ 99 (-3.88%)
Mutual labels:  viml
Prolog.vim
Prolog Integration for Vim
Stars: ✭ 91 (-11.65%)
Mutual labels:  viml
Vim Luna
Touchdown on Lunar Surface ! :)
Stars: ✭ 102 (-0.97%)
Mutual labels:  viml
Vim Ruby Minitest
Vim highlighting & completion for MiniTest
Stars: ✭ 97 (-5.83%)
Mutual labels:  viml
Vim Togglelist
Functions to toggle the [Location List] and the [Quickfix List] windows.
Stars: ✭ 100 (-2.91%)
Mutual labels:  viml
Vip
DEPRECATED - Switch to https://github.com/tobyS/pdv and https://github.com/tobyS/vip instead!
Stars: ✭ 94 (-8.74%)
Mutual labels:  viml
Vim Howdoi
A Vim frontend for howdoi, the awesome command line tool that lets you ask what you need and grabs the snippet of code from SO.
Stars: ✭ 96 (-6.8%)
Mutual labels:  viml
Vim Follow My Lead
Vim plugin for showing all your <Leader> mappings in a readable table including the descriptions.
Stars: ✭ 100 (-2.91%)
Mutual labels:  viml
Vim config
My vim configuration; packaged to be other-user-friendly
Stars: ✭ 92 (-10.68%)
Mutual labels:  viml
Browser Connect.vim
Live browser interaction for VIM.
Stars: ✭ 101 (-1.94%)
Mutual labels:  viml
Yavide
Modern C/C++ integrated development environment
Stars: ✭ 1,306 (+1167.96%)
Mutual labels:  viml
Elixir.nvim
Vim Completion/Doc/Eval for Elixir (nvim), compile https://github.com/awetzel/neovim-elixir and https://github.com/awetzel/nvim-rplugin
Stars: ✭ 99 (-3.88%)
Mutual labels:  viml
Tasklist.vim
Eclipse like task list
Stars: ✭ 102 (-0.97%)
Mutual labels:  viml
Vim Hybrid
A dark color scheme for Vim
Stars: ✭ 1,380 (+1239.81%)
Mutual labels:  viml
Vim Arduino Syntax
Arduino syntax files for Vim
Stars: ✭ 100 (-2.91%)
Mutual labels:  viml

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2699

This plugin provides a text-object 'a' (argument). You can d(elete), c(hange), v(select)... an argument or inner argument in familiar ways. That is, such as 'daa'(delete-an-argument) 'cia'(change-inner-argument) 'via'(select-inner-argument). What this script does is more than just typing F,dt, because it recognizes inclusion relationship of parentheses.

There is an option to descide whether the motion should go out to toplevel function or not in nested function application.

Examples: case1) delete An argument function(int arg1, ch<press 'daa' here>ar* arg2="a,b,c(d,e)") function(int arg1<cursor here; and if you press 'daa' again..>) function()

case2) change Inner argument function(int arg1, ch<press 'cia' here>ar* arg2="a,b,c(d,e)") function(int arg1, )

case 3) smart argument recognition (g:argumentobject_force_toplevel = 0) function(1, (20<press 'cia' here>*30)+40, somefunc2(3, 4)) function(1, , somefunc2(3, 4))

   function(1, (20*30)+40, somefunc2(<press 'cia' here>3, 4))
   function(1, (20*30)+40, somefunc2(<cursor here>4))

case 4) smart argument recognition (g:argumentobject_force_toplevel = 1) function(1, (20<press 'cia' here>*30)+40, somefunc2(3, 4)) function(1, , somefunc2(3, 4)) " note that this result is the same of above.

   function(1, (20*30)+40, somefunc2(<press 'cia' here>3, 4))
   function(1, (20*30)+40, <cursor here>) " sub-level function is deleted because it is a argument in terms of the outer function.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].