
عنوان:
Mastering Vim Efficient and effortless editing with Vim and Vimscript
نویسنده:
Ruslan Osipov
انتشارات:
Packt Publishing City: Birmingham, UK
تاریخ انتشار
2024
حجم:
5.4MB
معرفی کتاب:" استادی در Vim: ویرایش کارآمد و بیدردسر با Vim و Vimscript "
Mastering Vim یک راهنمای جامع برای توسعهدهندگانی است که میخواهند vim را به ابزاری قدرتمند و همهکاره در گردش کار روزانهی خود تبدیل کنند. این کتاب با پشتیبانی از آخرین نسخههای Vim 9 و Neovim و بهروزرسانی با Vim9script، همراهی عالی برای توسعهدهندگان حرفهای است.
ویژگیهای کلیدی کتاب:
- تسلط کامل بر حرکت، جابهجایی و عملیات متنی در vim
- استفاده از Vimscript برای سفارشیسازی و اتوماسیون
- ساخت محیط توسعه کامل (IDE) در vim با ابزارهای ساخت، تست و دیباگ
- یکپارچهسازی کنترل نسخه (مانند Git) با محیط Vim
- شامل مثالهای واقعی با کد پایتون
- دریافت نسخه PDF رایگان با خرید نسخه چاپی یا Kindle
توضیح کامل کتاب:
این کتاب از مفاهیم پایه شروع کرده و تا قابلیتهای پیشرفته مانند refactoring، دیباگ کردن، مدیریت پلاگینها، تست خودکار و اسکریپتنویسی با Vimscript پیش میرود. طراحی این ویرایش دوم با دیاگرامها و مثالهای بازبینیشده باعث شده درک مطالب آسانتر و کاربردیتر شود.
نویسنده با نگاهی دقیق به تفاوتهای Vim و Neovim، به شما کمک میکند تصمیم بگیرید کدام محیط برایتان مناسبتر است و چگونه آن را به محیط دلخواه خود تبدیل کنید.
آنچه خواهید آموخت:
- حرکت سریع و دقیق در بین خطوط و فایلها
- ویرایش متن حرفهای با ترکیب دستورات و ماکروها
- نصب و بهروزرسانی Vim/Neovim در سیستمهای مختلف (Linux، macOS، Windows، ChromeOS)
- مدیریت و نصب افزونهها برای افزایش کارایی
- سفارشیسازی کامل تنظیمات و محیط کاری
- نوشتن اسکریپتهای کاربردی با Vimscript و Vim9script
- دلیل برتری Vim نسبت به Emacs!
مخاطب این کتاب:
این کتاب برای برنامهنویسانی مناسب است که میخواهند Vim را به محیط اصلی توسعه خود تبدیل کنند. حتی اگر بهتازگی با Vim آشنا شدهاید، محتوای ساختاریافته کتاب به شما در یادگیری تدریجی کمک میکند. آشنایی مقدماتی با Python مفید است ولی ضروری نیست.
فهرست مطالب
- Cover
- Title page
- Copyright and credits
- Dedication
- Contributors
- Table of Contents
- Preface
- Chapter 1: Getting Started
- Technical requirements
- A brief history lesson
- Let’s start a conversation (about modal interfaces)
- Installation
- Vanilla Vim versus gVim
- Configuring Vim with your .vimrc
- Common operations (or, how to exit Vim)
- Moving around – talk to your editor
- Making simple edits in insert mode
- Persistent undo and repeat
- Read the Vim manual using :help
- Summary
- Chapter 2: Advanced Editing and Navigation
- Technical requirements
- Installing plugins
- Organizing the workspace
- Navigating file trees
- Navigating text
- Copying and pasting with registers
- Summary
- Chapter 3: Follow the Leader Plugin Management
- Technical requirements
- Managing plugins
- Deeper dive into modes
- Remapping commands
- The leader key
- Configuring plugins
- Summary
- Chapter 4: Understanding Structured Text
- Technical requirements
- Code autocomplete
- Navigating the code base with tags
- Visualizing the undo tree
- Summary
- Chapter 5: Build, Test, and Execute
- Technical requirements
- Working with version control
- Resolving conflicts with vimdiff
- tmux, screen, and Vim terminal mode
- Building and testing
- Summary
- Chapter 6: Refactoring Code with Regex and Macros
- Technical requirements
- Search or replace with regular expressions
- Recording and playing macros
- Using plugins to do the job
- Summary
- Chapter 7: Making Vim Your Own
- Technical requirements
- Playing with the Vim UI
- Keeping track of configuration files
- Healthy Vim customization habits
- Summary
- Chapter 8: Transcending the Mundane with Vimscript
- Technical requirements
- Why Vimscript?
- How to execute Vimscript
- Major changes in Vimscript 9
- Learning the syntax
- A word about style guides
- Let’s build a plugin
- Further reading
- Summary
- Chapter 9: Where to Go from Here
- Seven habits of effective text editing
- Modal interfaces everywhere
- Neovim
- Recommended reading and communities
- A word about Uganda
- Summary
- Index
مشخصات
نام کتاب
Mastering Vim Efficient and effortless editing with Vim and Vimscript
نویسنده
Ruslan Osipov
انتشارات
Packt Publishing City: Birmingham, UK
تاریخ انتشار
2024
ISBN
9781835081877
چاپ
اول
تعداد صفحات
300
زبان
انگلیسی
فرمت
حجم
5.4MB
موضوع
Vim; Neovim; Developer Tools