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
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
More Decks by Kunihiko Ito
See All by Kunihiko Ito
データでふりかえるToyama.rb #100 2024
kunitoo
0
55
富山Ruby会議01 をふりかえる
kunitoo
0
77
Using Ractor
kunitoo
0
200
introduction neo4j
kunitoo
0
190
Introduction Neo4j oblove calendar
kunitoo
0
1.5k
アジャイルソフトウェア開発の概要と現場での実践
kunitoo
0
2.2k
Introduction of neo4j
kunitoo
0
2k
Ruby 2.3 のてざわり
kunitoo
2
510
てさぐれ!受託もの
kunitoo
1
610
Other Decks in Programming
See All in Programming
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
140
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3k
Family mrubyの進捗
kishima
1
120
Webの地図
yosuke_furukawa
PRO
6
4.6k
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
220
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
300
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
700
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
180
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
440
What We Talk About When We Talk About XP
m_seki
2
640
Security issues being discussed on Web Platforms
petamoriken
0
960
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
7.3k
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Invisible Side of Design
smashingmag
301
52k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
550
Automating Front-end Workflow
addyosmani
1369
210k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.9k
Leo the Paperboy
mayatellez
10
2.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
For a Future-Friendly Web
brad_frost
183
10k
Discover your Explorer Soul
emna__ayadi
2
1.3k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Transcript
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>