Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Vimのpluginを書く
Search
さっちゃん
December 14, 2013
Programming
0
56
Vimのpluginを書く
VimScript怖くないヾ(〃l _ l)ノ゙
さっちゃん
December 14, 2013
Tweet
Share
More Decks by さっちゃん
See All by さっちゃん
みんなのオブザーバビリティプラットフォームを作ってるんだがパフォーマンスがやばい #mackerelio #srenext
ne_sachirou
0
380
作ってよかったgraceful shutdownライブラリ #kyotogo
ne_sachirou
0
940
path 依存型って何?
ne_sachirou
0
380
野生の onbording と onbording 設計 #kyototechtalk
ne_sachirou
0
530
メトリックはいかにして見え續ける樣になったか #devio2022
ne_sachirou
0
62
名實一致
ne_sachirou
0
580
まかれるあなとみあ ―Mackerel のしくみを理解する 30 分― @ Hatena Engineer Seminar #16
ne_sachirou
0
2.9k
tacit programming : Point-free, Concatenatives & J
ne_sachirou
0
730
Monitoring Containerized Elixir
ne_sachirou
1
860
Other Decks in Programming
See All in Programming
Product Management LT会_クアンド新家
shinshin
0
260
Webエディタライブラリ 「CodeMirror」から学ぶ Webアプリ開発のテクニック
ryosukeigarashi
0
250
AWS初心者ってどうやってAWSを学ぶ?〜アプリエンジニアがやってよかったアーキテクチャ学習方法〜
yamanashi_ren01
0
190
CSC307 Lecture 06
javiergs
PRO
0
360
ドメイン駆動設計の実践
masuda220
PRO
19
5.2k
SRE チーム立ち上げ前に考えたこと・取り組んだこと / Considerations and Preparations Before Establishing an SRE Team
mackey0225
3
320
Introduction of Happy Eyeballs Version 2 (RFC8305) to the Socket library
coe401_
1
220
データカタログ運用物語 〜令和6年夏の理想と現実〜
kuro_kurorrr
0
110
小さな開発会社を作った理由
polidog
0
1.9k
DMMプラットフォームにおけるTiDBの導入から運用まで
pospome
7
3k
Microservices rules (July 2024) : what good looks like
cer
PRO
0
1.6k
Advanced App Shrinking Techniques
cbeyls
2
150
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
78
15k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
35
6.3k
How GitHub Uses GitHub to Build GitHub
holman
471
290k
Building Effective Engineering Teams - LeadDev
addyosmani
47
2.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
42
2.7k
Building a Modern Day E-commerce SEO Strategy
aleyda
25
6.7k
Build The Right Thing And Hit Your Dates
maggiecrowley
28
2.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
325
21k
Testing 201, or: Great Expectations
jmmastey
33
6.9k
Optimising Largest Contentful Paint
csswizardry
18
2.6k
Being A Developer After 40
akosma
72
580k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
Transcript
Vim の plugin を書く .。oO(さっちゃんですよヾ(〃l _ l)ノ゙☆)
vim-quickrun-markdown-gfm を Windows に 対応させました ヾ ( 〃 l _
l) ノ゙
vim-quickrun-markdown-gfm を Windows に 対応させました ヾ ( 〃 l _
l) ノ゙
VimScript 怖くないヾ ( 〃 l _ l) ノ゙ ヾ (l
_ l 〃 ) ノ゙
怖くないヾ ( 〃 l _ l) ノ゙ ヾ (l _
l 〃 ) ノ゙
怖くないヾ ( 〃 l _ l) ノ゙ ヾ (l _
l 〃 ) ノ゙
§1 help を読む ヾ ( 〃 l _ l) ノ゙
help :h ヾ (l _ l 〃 ) ノ゙
help CTRL-] CTRL-o ヾ (l _ l 〃 ) ノ゙
help CTRL-] → リンク先へ飛ぶ CTRL-o → 戻る ヾ (l _
l 〃 ) ノ゙
help Vim の help には何でも書いてある。 日本語訳は、 vimdoc-ja ヾ (l _
l 〃 ) ノ゙
help help の引き方 ↓ :h help ヾ (l _ l
〃 ) ノ゙
help の全文検索 :helpgrep ヾ ( 〃 l _ l) ノ゙
help の全文検索 helpgrep の使い方 ↓ :h helpgrep ヾ ( 〃
l _ l) ノ゙
§2 VimScript 用 help ヾ (l _ l 〃 )
ノ゙
VimScript :h script :h eval ヾ ( 〃 l _
l) ノ゙
runtimepath :h rtp ヾ (l _ l 〃 ) ノ゙
runtimepath autoload/ 自動的に読み込まれるスクリプト doc/ ヘルプドキュメント ftplugin/ ファイルタイププラグイン plugin/ プラグインスクリプト syntax/文法ファイル
…… 等 ヾ (l _ l 〃 ) ノ゙
autoload :h autoload ヾ ( 〃 l _ l) ノ゙
autoload global 領域みたいに使へる :h s:var ヾ ( 〃 l _
l) ノ゙
変数の型や scope :h variables ヾ (l _ l 〃 )
ノ゙
Data 構造 (List と Dictionary) :h list :h dictionary ヾ
( 〃 l _ l) ノ゙
Data 構造 (List と Dictionary) map(copy(list), 'v:val') deepcopy(dict) ヾ (
〃 l _ l) ノ゙
関数一覧 :h functions ヾ (l _ l 〃 ) ノ゙
§3 感想戦 ヾ ( 〃 l _ l) ノ゙
VimScript 文字列を振り回してると PHP に近いものを感じ る…… ( 〃 l _ l)
↑ > C macro 感< ヾ (l _ l 〃 ) ノ゙
VimScript echo debug はできる (l _ l 〃 ) ヾ
(l _ l 〃 ) ノ゙
compatible let s:cpo_save = &cpo set cpo&vim ・ ・ ・
let &cpo = s:cpo_save unlet s:cpo_save ヾ ( 〃 l _ l) ノ゙
VimScript 怖くないヾ ( 〃 l _ l) ノ゙ ヾ (l
_ l 〃 ) ノ゙