RepositoryRubyBEBỉ
AN

AndrewRadev/sideways.vim

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

487sao
8fork
12issue
3lượt xem

🔄 Di chuyển đối số hàm sang trái/phải trong Vim

Sideways.vim giúp refactoring danh sách đối số và các mục phân tách chỉ bằng một phím tắt.

Sideways.vim là plugin Vim cho phép di chuyển các phần tử bên trong danh sách phân tách — đặc biệt là đối số hàm — sang trái hoặc sang phải. Thay vì phải cắt-dán thủ công để sắp xếp lại thứ tự tham số, người dùng chỉ cần dùng phím tắt để shift từng mục.

✨ Điểm nổi bật

  • Di chuyển đối số: Shift function arguments left/right trong lời gọi hàm.
  • Hỗ trợ nhiều loại delimiter: Hoạt động với danh sách phân tách bằng dấu phẩy, dấu chấm phẩy, hoặc bất kỳ ký tự phân tách nào.
  • Text-object aware: Tích hợp với hệ thống text-object của Vim, hoạt động chính xác trong ngữ cảnh code.
  • Refactoring nhanh: Không cần cut-paste thủ công khi sắp xếp lại thứ tự tham số.
  • Lightweight: Plugin nhỏ gọn, không phụ thuộc phức tạp.

💡 Vì sao đáng chú ý

Khi refactoring code, việc sắp xếp lại thứ tự đối số hàm là thao tác thường xuyên nhưng nhàm chán. Sideways.vim biến thao tác đó thành một phím tắt duy nhất — tương tự cách easymotion hay vim-surround xử lý các trường hợp cụ thể. Plugin đặc biệt hữu ích khi làm việc với hàm có nhiều tham số, hoặc khi cần thử nghiệm thứ tự đối số để tối ưu hóa readability.

Đối với người dùng Vim đã quen với hệ sinh thái plugin, sideways.vim bổ sung một "mảnh ghép" nhỏ nhưng hiệu quả cho workflow refactoring hàng ngày.


#Vim #Refactoring #Plugin #TextManipulation #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryRuby
AndrewRadev/sideways.vim

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

487
Oct 8, 2026
RepositoryVim Script
AndrewRadev/splitjoin.vim

Switch between single-line and multiline forms of code

2.0k
Oct 1, 2026
RepositoryRuby
AndrewRadev/switch.vim

A simple Vim plugin to switch segments of text with predefined replacements

764
Oct 18, 2026
Repository
sindresorhus/awesome

😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones]

546.4k
Sep 2, 2026
Repository
x1xhlol/system-prompts-and-models-of-ai-tools

FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sourced) System Prompts, Internal Tools & AI Models

145.0k
Oct 12, 2026
RepositoryJavaScript
Leonxlnx/taste-skill

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

124.6k
Nov 26, 2026
RepositoryJavaScript
addyosmani/agent-skills

Production-grade engineering skills for AI coding agents.

122.0k
Nov 24, 2026
RepositoryPython
Panniantong/Agent-Reach

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

116.7k
Nov 24, 2026
RepositoryRuby
kilimchoi/engineering-blogs

A curated list of engineering blogs

39.1k
Aug 21, 2024