Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
vim operation and my hotkey
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Kunihiko Ito
May 13, 2017
Programming
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
vim operation and my hotkey
Toyama.rb #17 エディタについて語ろう会 LT 資料
Kunihiko Ito
May 13, 2017
Transcript
42 slides
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 vimの操作と俺と ホットキー 伊藤 邦彦 Toyamarb#17
エディタについて語ろう会 2017-05-13
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 p self name: 伊藤 邦彦
✓ github: kunitoo ✓ work: [Ruby, Rails, Neo4j] ✓
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 My Editor History Eclipse(Emacs key
bind) ✓ Emacs ✓ Vim ✓
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 きっかけ https://www.slideshare.net/pharaohkj/ ss-70439887
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 俺とホットキー 大変共感しました ✓ 自分の使ってる Vim
はこうだ よって言いたい 比較みたいにまとめてみました ✓ Vimではホットキーというかは微妙ですが ✓ ✓
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 キーの表記 Control key と v
を同時に入力 Vim Ctrl-v ✓ Emacs Ctrl + v "俺とホットキー"の表記 ✓
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 上下左右 Vim j k h
l ✓ Emacs (Ctrl + p ・ 同n ・ 同b ・同f)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 範囲選択開始 Vim v ✓ Emacs
(Ctrl + h, Ctrl +h)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 コピー Vim y ✓ yy
(1行コピー) ✓ Emacs (Cmd + w)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 カット Vim d ✓ dd
(1行カット) ✓ Emacs (Ctrl + w)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 ペースト Vim p ✓ Emacs
(Ctrl + y)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 アンドゥ・リドゥ Vim u ✓ Ctrl-r
✓ Emacs (Ctrl + - ・ Ctrl + ?)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 矩形選択 Vim Ctrl-v ✓ Emacs
(Ctrl + h > Ctrl + b)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 カーソル単語選択 Vim viw ✓ Emacs
(Cmd + , )
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 単語右・左 Vim w (words forward)
✓ b (words backward) ✓ Emacs (Cmd + f ・ Cmd + b)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 行末・行頭 Vim $ ✓ 0
✓ Emacs (Ctrl + e ・ Ctrl + a > Ctrl + a)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 論理行頭 Vim ^ ✓ Emacs
(Ctrl + a)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 行削除 Vim dd ✓ Emacs
(Ctrl + a > Ctrl + k)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 空行挿入 Vim o<Esc> ✓ Emacs
(Ctrl + o)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 行クローン Vim yyp ✓ Emacs
(Cmd + Enter) 動作同じじゃないかも
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 カーソル行コピー Vim yy ✓ Emacs
(Cmd + Shift + Enter)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 編集行画面中央 Vim zz ✓ Emacs
(Ctrl + l)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 カーソル単語削除・単語削除 Vim diw (bdw) ✓
dw ✓ Emacs (Cmd + d ・ Cmd + BS)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 ファイル先頭・ファイル末尾 Vim gg ✓ G
✓ Emacs (Ctrl + < ・ Ctrl + > )
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 入力補完 Vim(insert mode) Ctrl-x Ctrl-l
✓ <Tab> (ervandew/supertab plugin を利用) ✓ Emacs (Ctrl + SPC)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 ファイル履歴から開く Vim :b <Tab>(補完) ✓
<Space>b Shougo/unite.vim plugin を入れて nnoremap <Space>b :Unite buffer<CR> ✓ Emacs (Ctrl + ;) 動作同じじゃないかも
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 最後に編集した箇所に移動 Vim Ctrl-o ✓ Emacs
(Ctrl + j > Ctrl + j)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 直前に開いていたウィンドウ @kunitoo <Mod4>-<Esc> (Awesome Window
Manager) @pharaohkj さん (OS) (Cmd + Tab)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 タグジャンプ Vim Ctrl-] ✓ Emacs
(Ctrl + j > Ctrl + t)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 バックタグジャンプ Vim Ctrl-t tmux の
prefix-key に使ってるので使ってない ✓ Emacs (Ctrl + j > Ctrl + b)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 指定行に移動 Vim :{number} ✓ Emacs
(Ctrl + j > Ctrl + g)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 行ブックマーク Vim 使ってない Emacs (Ctrl
- ' > Ctrl - a)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 対応するカッコに移動 Vim % ✓ Emacs
(Cmd + Ctrl + n/p)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 対応するカッコの自動入力 Vim 使ってないです Emacs ()
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 カーソルの下のファイル開く Vim この操作が分かりませんでした... Emacs (+その行へ)
(compile 実行後 対象行 で enter)
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 これ以降は kunitoo がよく使う便利な操作
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 インデント >> ✓
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 フォーマット = ✓
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 引用符を含む文字列の操作 (text-objects) operator と text-objects
を組み合 わせる operator y コピー ✓ d 削除 ✓
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 引用符を含む文字列の操作 (text-objects) text-objects a' ('を含む'で囲われた文字列)
✓ i' ('を含まない'で囲われた文字列) ✓ 例 ya' ✓ yi" ✓ tpope/vim-surround でさらに便利に
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 最後の操作を繰返す . ✓
vimの操作と俺とホットキー Powered by Rabbit 2.2.0 設定(~/.vimrc) if &compatible set nocompatible
endif set runtimepath+=~/.vim/repos/github.com/Shougo/dein.vim if dein#load_state('~/.vim/dein') call dein#begin('~/.vim/dein') call dein#add('Shougo/unite.vim') call dein#add('ervandew/supertab') call dein#add('tpope/vim-surround') call dein#add('vim-scripts/twilight256.vim') call dein#end() call dein#save_state() endif filetype plugin indent on syntax enable colorscheme twilight256 set clipboard=unnamedplus set expandtab tabstop=2 shiftwidth=2 set nobackup noremap ; : noremap : ; nnoremap <Space>b :Unite buffer<CR>
More Decks by Kunihiko Ito
See All by Kunihiko Ito
データでふりかえるToyama.rb #100 2024
kunitoo
0
60
富山Ruby会議01 をふりかえる
kunitoo
0
81
Using Ractor
kunitoo
0
220
introduction neo4j
kunitoo
0
190
Introduction Neo4j oblove calendar
kunitoo
0
1.5k
アジャイルソフトウェア開発の概要と現場での実践
kunitoo
0
2.3k
Introduction of neo4j
kunitoo
0
2k
Ruby 2.3 のてざわり
kunitoo
2
520
てさぐれ!受託もの
kunitoo
1
620
Other Decks in Programming
See All in Programming
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
240
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
6.2k
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
980
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
190
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
210
The Cost of the DOM
ypresto
2
220
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
110
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
200
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.5k
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
250
特急いなほ as a Workflow / 20261107jaws-festa-2026-akita-lt
kasacchiful
PRO
0
110
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
400
Featured
See All Featured
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
640
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.5k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
360
Believing is Seeing
oripsolob
1
290
Claude Code のすすめ
schroneko
67
230k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
550
Raft: Consensus for Rubyists
vanstee
143
7.9k
Git: the NoSQL Database
bkeepers
PRO
433
67k
ラッコキーワード サービス紹介資料
rakko
5
6M
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Amusing Abliteration
ianozsvald
1
400