vim fu,为方法调用交换参数 [英] vim fu, swapping parameters for a method call

查看:23
本文介绍了vim fu,为方法调用交换参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Vim 中为方法调用交换两个参数的最有效方法是什么?

What is the most efficient way to swap two params for a method call in Vim?

比如我想改:

call "hello mister 123", 2343

到:

call 2343, "hello mister 123" 

(假设光标在行首.)

理想情况下,该技巧适用于

Ideally the trick works for stuff like

call "hello, world" , "goodbye, world"

推荐答案

这是一个用于在python脚本中交换参数的脚本,您可以对其进行调整.

Here's a script designed to swap params in python scripts, you may be able to adapt it.

这篇关于vim fu,为方法调用交换参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆