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
53
Vimのpluginを書く
VimScript怖くないヾ(〃l _ l)ノ゙
さっちゃん
December 14, 2013
Tweet
Share
More Decks by さっちゃん
See All by さっちゃん
作ってよかったgraceful shutdownライブラリ #kyotogo
ne_sachirou
0
780
path 依存型って何?
ne_sachirou
0
260
野生の onbording と onbording 設計 #kyototechtalk
ne_sachirou
0
450
メトリックはいかにして見え續ける樣になったか #devio2022
ne_sachirou
0
52
名實一致
ne_sachirou
0
550
まかれるあなとみあ ―Mackerel のしくみを理解する 30 分― @ Hatena Engineer Seminar #16
ne_sachirou
0
2.8k
tacit programming : Point-free, Concatenatives & J
ne_sachirou
0
630
Monitoring Containerized Elixir
ne_sachirou
1
800
Let's create stateful systems, by Elixir
ne_sachirou
1
740
Other Decks in Programming
See All in Programming
incrementalモデルの理解を深める
ikkimiyazaki
2
640
document.write再考
brn
5
2.5k
受託開発でGitLab CI を活用していく
xiombatsg
1
130
Deep Dive 大規模システムアーキテクチャ/開発組織エンジニアリング / Deep Dive Large-Scale System Architecture, Development Organization Engineering
nrslib
15
2.9k
Laravel OpenAPIによる"辛くない"スキーマ駆動開発
kentaroutakeda
2
2.1k
生成 AI の中身を覗いてみよう〜基礎から医療現場での応用まで〜
soh9834
2
770
Understanding Ast By Looking
inouehi
0
120
孤独のCTOグルメという やや奇抜な企画をやった目的と効果
shoheimitani
3
1k
フロントエンドパフォーマンス 入門
shouta2
7
1.5k
LPIXEL×CADDi_kaerururu
kaerururu
3
300
オブジェクトしこう
okuramasafumi
2
130
9年開発を牽引して見えてきた、共通化すべきものと個別でつくるもの ~プログラム言語~
shinout
1
280
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
501
110k
Six Lessons from altMBA
skipperchong
19
2.9k
Agile that works and the tools we love
rasmusluckow
323
20k
Fashionably flexible responsive web design (full day workshop)
malarkey
397
65k
Done Done
chrislema
178
15k
Gamification - CAS2011
davidbonilla
76
4.5k
Code Review Best Practice
trishagee
54
15k
Building Adaptive Systems
keathley
29
1.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
319
23k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Docker and Python
trallard
33
2.6k
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 〃 ) ノ゙