The VimL Primer: Edit Like a Pro with Vim Plugins and Scripts (Paperback)
暫譯: VimL 入門:使用 Vim 插件和腳本專業編輯

Benjamin Klein

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2015-02-01
  • 售價: $900
  • 貴賓價: 9.5$855
  • 語言: 英文
  • 頁數: 84
  • 裝訂: Paperback
  • ISBN: 1680500406
  • ISBN-13: 9781680500400
  • 相關分類: Vim
  • 已絕版

買這商品的人也買了...

商品描述

Build on your editor's capabilities and tailor your editing experience with VimL, the powerful scripting language built into Vim. With VimL you can configure basic settings or add entirely new functionality. Use this quick and easy introduction to create your own Vim plugin while learning the concepts and syntax of VimL.

VimL is the scripting language of the Vim editor. If you've ever edited or saved a vimrc file, you've written VimL. And VimL can do much more than simply configure settings and specify option values--you can write entire plugins in VimL. But without a background in scripting Vim, it can be hard to know where to start.

The VimL Primer gives you the tools and confidence you need. It gets you comfortable in VimL quickly, walking you through creating a working plugin that you can run yourself as you write it in Vim. You'll learn how to script common commands and buffer interaction, work with windows and buffers from within a plugin script, and how to use autocommands to have Vim recognize entirely new filetypes. You'll discover how to declare filetype-specific settings and define your own syntax elements for use with Vim's syntax highlighting. And you'll see how you can write your own command-line commands and define new mappings to call them.

With this introduction to scripting Vim, your own Vim extensions are only plugins away. Take control of your editor!

What You Need::

Vim version 7 or later is required, and it's available on any of the major operating systems. This book uses the "Huge" version of Vim 7.4.

商品描述(中文翻譯)

建立在您編輯器的功能之上,並使用 Vim 內建的強大腳本語言 VimL 來量身定制您的編輯體驗。使用 VimL,您可以配置基本設置或添加全新的功能。利用這個快速且簡單的介紹,創建您自己的 Vim 插件,同時學習 VimL 的概念和語法。

VimL 是 Vim 編輯器的腳本語言。如果您曾經編輯或保存過 vimrc 文件,那麼您就已經寫過 VimL。而且 VimL 能做的遠不止於配置設置和指定選項值——您可以用 VimL 編寫整個插件。但如果沒有 Vim 腳本的背景,可能很難知道從何開始。

《VimL 入門》為您提供所需的工具和信心。它能讓您快速熟悉 VimL,帶您一步步創建一個可以在 Vim 中運行的工作插件。您將學會如何編寫常見命令和緩衝區交互,如何在插件腳本中處理窗口和緩衝區,以及如何使用自動命令讓 Vim 認識全新的文件類型。您將發現如何聲明特定於文件類型的設置,並定義您自己的語法元素以用於 Vim 的語法高亮。您還將看到如何編寫自己的命令行命令並定義新的映射來調用它們。

通過這個 Vim 腳本的介紹,您自己的 Vim 擴展僅需幾個插件的距離。掌控您的編輯器!

您需要的:

需要 Vim 版本 7 或更高版本,並且它可以在任何主要操作系統上使用。本書使用的是 Vim 7.4 的「Huge」版本。