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 introduction
Search
Dmitrijs Vrublevskis
July 12, 2014
Programming
1
97
Vim introduction
https://plus.google.com/events/cv8rtf625f5hc8jn6qmhpsb2nho
Dmitrijs Vrublevskis
July 12, 2014
Tweet
Share
More Decks by Dmitrijs Vrublevskis
See All by Dmitrijs Vrublevskis
Cypher Editor
fylmtm
0
130
Cypher in JetBrains IDE
fylmtm
0
170
Adopting Neo4j @ Enterprise scale
fylmtm
0
63
League of Graphs \w Neo4j
fylmtm
0
1.3k
Performance & Stability testing \w Gatling
fylmtm
0
220
Neo4j Magic Adventures
fylmtm
1
180
Google I/O 2014 - Web updates
fylmtm
0
130
Other Decks in Programming
See All in Programming
DMMプラットフォームにおけるTiDBの導入から運用まで
pospome
7
3k
最古の関数型言語「Lisp」ことはじめ / lisp_in_kamiyama
uhooi
1
190
CSC307 Lecture 11
javiergs
PRO
0
240
Rustのweb開発を助ける 便利なツール紹介
yuki0418
1
190
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
Trial
cairolibrary720
1
130
「2024年版 Kotlin サーバーサイドプログラミング実践開発」の補講 〜O/Rマッパー編〜
n_takehata
2
260
APIのない大学ログインWebサービスをWKWebViewとJavaScriptでアプリ化した話
akidon0000
1
330
Google's Recipe for Scaling (Web) Security – LocoMocoSec 2024
lweichselbaum
0
170
英語
s_shimotori
1
220
Terraformテスト入門
msato
0
520
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
26
2.1k
How to name files
jennybc
67
96k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
78
15k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
17
8.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
121
18k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
24
1.8k
Art, The Web, and Tiny UX
lynnandtonic
291
20k
Creatively Recalculating Your Daily Design Routine
revolveconf
214
11k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
189
16k
Git: the NoSQL Database
bkeepers
PRO
423
64k
Speed Design
sergeychernyshev
9
270
Transcript
Vim introduction @Dmitrijs Vrublevskis
About me • Developer @ “Transact PRO” • Unhappy with
PHP • In love with Ruby • Believe in Linux
Backup plan https://www.codebox.io
Intro • Programmer's text editor • Released publicly in 1991
• Based on the vi editor • Vim is a tool, the use of which must be learned. • Shortcuts & no-mouse
My use cases • Ruby (Rails) development (sometimes) • One-time
source editing (bugfixes, types and etc) • Editing via SSH (nginx, apache, hosts and etc) • Diff (rarely) • Development (Intellij IDEA plugin)
$ vim file.txt § - command sequences for pro
<esc> <esc> <esc> <esc> <ctrl-c> <ctrl-c> <ctrl-c> <ctrl-c>
Modes • Insert • Normal ! • Visual • Command
Modes[Insert] 1. Insert A. Cursor - <i> B. Append -
<a> C. On new line - <o> 2. Type text 3. Exit - <ctrl-c>
Modes[Normal] • Left - <h> - <left_arrow> • Right -
<l> - <right_arrow> • Down - <j> - <down_arrow> • Up - <k> - <up_arrow> ! • § 5l • § 2j
Modes[Normal] • Word - <w> • End word - <e>
• Back word - <b> • Find - <f><any_letter_to_find> ! • § F2e • § t”
Modes[Normal] • Delete under cursor - <x> • Replace -
<r><letter> • Delete - <d><motion> • Change - <c><motion> • Motion - <w>|<e>|<h> … ! • § d5k • § ca”
Modes[Visual] • Visual - <v> • Line visual - <shift-v>
• Block visual - <ctrl-v>
Modes[Command] • Write - <:><w> • Quit - <:><q> •
Write and quit - <:><w><q> • Write and quit - <:><x> • Quit without save - <:><q><!> • Search - </><pattern><enter> • Next / Prev - <n> / <N>
Useful • § <c><i><“> - Delete all in “” and
put in insert mode. • § <d><t><)> - Delete all till first ‘)’ • § <i><text><.> - Write some text and repeat • § <F><(> - Move cursor to first ‘(‘, backwards
Learn vim • http://www.viemu.com/ a_vi_vim_graphical_cheat_sheet_tutorial.html • http://vim-adventures.com/ • https://www.shortcutfoo.com
Vim projects • http://neovim.org/ - New next generation • https://github.com/gmarik/Vundle.vim
- Plugin manager • https://github.com/Valloric/YouCompleteMe - Autocompletion • https://github.com/FylmTM/dotfiles/blob/master/ vim/vimrc - Mine ‘.vimrc’
None