anyone know an elegant way to swap the orders of two parameters in a function call? foo(bar, baz) becomes foo(baz, bar)

This page summarizes the projects mentioned and recommended in the original post on /r/vim

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • vim-exchange

    Easy text exchange operator for Vim

  • Not a native solution but you can use vim-exchange in combination with a function argument text object like the one provided by targets.vim.

  • targets.vim

    Vim plugin that provides additional text objects

  • Not a native solution but you can use vim-exchange in combination with a function argument text object like the one provided by targets.vim.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • sideways.vim

    A Vim plugin to move function arguments (and other delimited-by-something items) left and right.

  • Also not a native solution, but I've been using sideways.vim for a while. I have space as my leader and use leader-L and leader-R.

  • vim-swap

    Reorder delimited items.

  • I've been using vim-swap for a while and it's simple enough: when on top of a delimited argument, you can hit g> or g< to swap right or left, respectively.

  • nvim-treesitter-textobjects

  • If you're on neovim you can do this with nvim-treesitter-textobjects

  • traces.vim

    Range, pattern and substitute preview for Vim

  • To get the live preview you can either use the traces.vim plug-in or use the NeoVim-only inccommand setting.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How can i swap words ?

    3 projects | /r/vim | 9 Aug 2021
  • move function arguments on multiple lines

    3 projects | /r/vim | 14 Jan 2021
  • Is there a shorcut to select words in quotes including the quotes?

    1 project | /r/vim | 25 May 2023
  • Text-object selection works forward, but not backwards, and I'm curious about that

    1 project | /r/vim | 28 Mar 2023
  • Why does ci" work from elsewhere on a line, but it doesn't for ci[ , ci{ ?

    1 project | /r/vim | 14 Sep 2022