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
VimScript is pretty good: VIm London Jan 2014
Search
Jack Franklin
January 28, 2014
Technology
0
110
VimScript is pretty good: VIm London Jan 2014
A talk about how learning VimScript has really improved my Vim usage.
Jack Franklin
January 28, 2014
Tweet
Share
More Decks by Jack Franklin
See All by Jack Franklin
Advanced React Meetup: Testing JavaScript
jackfranklin
1
250
Components on the Web: Frontend NE
jackfranklin
1
840
ReactiveConf: Lessons Migrating Complex Software
jackfranklin
0
510
Front Trends: Migrating complex software
jackfranklin
1
830
Migrating from Angular to React: Manc React
jackfranklin
1
200
Half Stack Fest: Webpack
jackfranklin
4
580
FullStackFest: Elm for JS Developers
jackfranklin
1
260
Codelicious: Intro to ES2015
jackfranklin
0
410
PolyConf: Elm for JS Developers
jackfranklin
0
290
Other Decks in Technology
See All in Technology
Copilot 宇宙へ 〜生成AIで「専門データの壁」を壊す方法〜
nakasho
0
180
Agent Skill 是什麼?對軟體產業帶來的變化
appleboy
0
230
Amazon Qはアマコネで頑張っています〜 Amazon Q in Connectについて〜
yama3133
1
100
夢の無限スパゲッティ製造機 #phperkaigi
o0h
PRO
0
360
イベントで大活躍する電子ペーパー名札を作る(その2) 〜 M5PaperとM5PaperS3 〜 / IoTLT @ JLCPCB オープンハードカンファレンス
you
PRO
0
200
AWS Systems Managerのハイブリッドアクティベーションを使用したガバメントクラウド環境の統合管理
toru_kubota
0
160
FastMCP OAuth Proxy with Cognito
hironobuiga
3
190
Phase02_AI座学_応用
overflowinc
0
2.8k
Astro Islandsの 内部実装を 「日本で一番わかりやすく」 ざっくり解説!
knj
1
270
「通るまでRe-run」から卒業!落ちないテストを書く勘所
asumikam
2
480
Change Calendarで今はOK?を仕組みにする
tommy0124
1
100
20260321_エンベディングってなに?RAGってなに?エンベディングの説明とGemini Embedding 2 の紹介
tsho
0
160
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Docker and Python
trallard
47
3.8k
Context Engineering - Making Every Token Count
addyosmani
9
770
Prompt Engineering for Job Search
mfonobong
0
220
How to Think Like a Performance Engineer
csswizardry
28
2.5k
Become a Pro
speakerdeck
PRO
31
5.9k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
180
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
410
Music & Morning Musume
bryan
47
7.1k
Technical Leadership for Architectural Decision Making
baasie
3
300
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
200
Transcript
VimScript is pretty good. @Jack_Franklin
I suck at VimScript.
And I’m going to show you some rubbish VimScript
This isn’t a presentation on learning VimScript.
But why you should learn it.
None
None
And this is why we all love Vim.
We’ve all put mappings in our .vimrc
And VimScript is the natural progression
And VimScript is the natural progression
None
None
None
Each of these saves me time, but more importantly, keystrokes
Plus VimScript isn’t that bad* ! *mostly
function! TwitterLink() let searchRegex = '@\([^ .]*\)' let searchReplace =
'[&](http:// twitter.com/\1)' ! let oldLine = getline('.') let newLine = substitute(oldLine, searchRegex, searchReplace, ‘g') ! call setline('.', newLine) endfunction
You might not want to write plugins
But any arbitrary VimScript can go inside a .vimrc…
Something I do all the time is want to execute
a file
So I wrote some VimScript to do it all for
me
None
map <leader>e :call ExecuteFile()<CR>
None
xkcd.com/1319
github.com/jackfranklin/dotfiles ! github.com/jackfranklin/vim-markdown- writer ! github.com/r00k/dotfiles ! learnvimscriptthehardway.stevelosh.com/
tilvim.com github.com/jackfranklin/tilvim
@Jack_Franklin ! (PS: https://thenetawards.com/) ! (sorry)