Se ha denunciado esta presentación.
Vim for
Mere Mortals
@VimIndy 06.2016
Who am I?@claytron IRL and on the internets
Senior Software Engineer at TinderBox
Vimmer ca. 2003
is hard retro.
Don't rage :quit! just yet...
Fundamentals
You start by learning the
minimal to survive,
then you integrate all the
tricks slowly.
— Learn Vim Progressively
$ vimtutor
in Neovim
:Tutor
command line
$ alias vimtutor='nvim -c Tutor'
Terminology
A buffer is the in-memory text of a file.
A window is a viewport on a buffer.
A tab page is a collection of windows.
:help ...
Modal Editing
Normal
Visual
Select
Insert
Command
Ex
How do you generate a
random string?
Put a first year CS student
in front of Vim and tell
them to save and exit.
#normalmodeproblems
Normal Mode
Insert Mode
Command Mode
Help!
:help
:help help
For any topic :help syntastic
For an option :help 'syntastic_ignore_files'
For a command :help :SyntasticInfo
:helpgrep syntastic.*checkerc
:tab help intro
1. Help commands *online-help*
*help* *<Help>* *:h* *:help* *<F1>* *i_<F1>* *i_<Help>*
<Help> or
:h[elp] Open a window and...
VimIndy Slack.
#vim on Freenode.
Vi and Vim StackExchange.
Vim! Do you speak it?
:help motion.txt
2d3w
│││└─ motion
││└─ count
│└─ operator
└─ count
ggguG
the jerry yang treatment.
xp
Transpose characters.
dw
Delete till end of word.
diw
Delete the current word.
d2w
Delete two words.
dd
Delete a line.
d2d
Delete two lines.
cw ciw c2w cg_ cG
vw viw v2w vg_ vG
68i-<Esc>
Add an ascii bar
2d3w
│││└─ motion
││└─ count
│└─ operator
└─ count
Arrow Keys?
Experienced users prefer
the hjkl keys because
they are always right
under their fingers.
Beginners often prefer
the arrow keys,
because they do not know
what the hjkl keys do.
The mnemonic value of hjkl
is clear from looking at the
keyboard.
Think of j as an arrow
pointing downwards.
— :help motio...
VIM
WIZARD[1] a man who has magical powers, especially in
legends and fairy tales
You can use your
MOUSE
Use vim-sensible to start out.
Or go all in with Vim Bootstrap, Janus or spf13.
Plugins
Plugin Managers
Pathogen
Vundle
vim-plug
vim-addon-manager
dein.vim
Vizardry
Vimana
Install Plugins
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'scrooloose/syntastic'
call plug#end()
Pillaging .vimrc
THE END
Links
→ @VimIndy
→ vim.org
→ Neovim
→ Help always in a tab
→ My .vimrc
→ VIM: Hard Mode
→ vim-galore: Everything you
need ...
Screencasts
→ Vimcasts
→ Derek Wyatt Tutorials
Articles / Books
→ Learn Vim Progressively
→ Learn Vim the Hard Way
→ Coming Home to Vim
→ Everyone Who Tried to Convince
...
Photo Credits
Title (B.B. Wijdieks)
Fundamentals (@nobida)
Terminology (@nicklockey)
Modal (@chrisobayda)
Help (@mountaine...
Vim for Mere Mortals by claytron is licensed under a
Creative Commons Attribution-ShareAlike 4.0
International License.
*bar*
| To screen column [count] in the current line.
|exclusive| motion. Ceci n'est pas une pipe.
Vim for Mere Mortals
Vim for Mere Mortals
Próxima SlideShare
Cargando en…5
×

Vim for Mere Mortals

280 visualizaciones

Publicado el

An introduction to becoming a vim user.

Publicado en: Tecnología
  • Sé el primero en comentar

Vim for Mere Mortals

  1. 1. Vim for Mere Mortals @VimIndy 06.2016
  2. 2. Who am I?@claytron IRL and on the internets Senior Software Engineer at TinderBox Vimmer ca. 2003
  3. 3. is hard retro.
  4. 4. Don't rage :quit! just yet...
  5. 5. Fundamentals
  6. 6. You start by learning the minimal to survive, then you integrate all the tricks slowly. — Learn Vim Progressively
  7. 7. $ vimtutor
  8. 8. in Neovim :Tutor command line $ alias vimtutor='nvim -c Tutor'
  9. 9. Terminology
  10. 10. A buffer is the in-memory text of a file. A window is a viewport on a buffer. A tab page is a collection of windows. :help window
  11. 11. Modal Editing
  12. 12. Normal Visual Select Insert Command Ex
  13. 13. How do you generate a random string?
  14. 14. Put a first year CS student in front of Vim and tell them to save and exit.
  15. 15. #normalmodeproblems
  16. 16. Normal Mode
  17. 17. Insert Mode
  18. 18. Command Mode
  19. 19. Help!
  20. 20. :help
  21. 21. :help help
  22. 22. For any topic :help syntastic For an option :help 'syntastic_ignore_files' For a command :help :SyntasticInfo
  23. 23. :helpgrep syntastic.*checkerc
  24. 24. :tab help intro
  25. 25. 1. Help commands *online-help* *help* *<Help>* *:h* *:help* *<F1>* *i_<F1>* *i_<Help>* <Help> or :h[elp] Open a window and display the help file in read-only mode. If there is a help window open already, use that one. Otherwise, if the current window uses the full width of the screen or is at least 80 characters wide, the help window will appear just above the current window. Otherwise the new window is put at the very top.
  26. 26. VimIndy Slack. #vim on Freenode. Vi and Vim StackExchange.
  27. 27. Vim! Do you speak it?
  28. 28. :help motion.txt
  29. 29. 2d3w │││└─ motion ││└─ count │└─ operator └─ count
  30. 30. ggguG the jerry yang treatment.
  31. 31. xp Transpose characters.
  32. 32. dw Delete till end of word.
  33. 33. diw Delete the current word.
  34. 34. d2w Delete two words.
  35. 35. dd Delete a line.
  36. 36. d2d Delete two lines.
  37. 37. cw ciw c2w cg_ cG vw viw v2w vg_ vG
  38. 38. 68i-<Esc> Add an ascii bar
  39. 39. 2d3w │││└─ motion ││└─ count │└─ operator └─ count
  40. 40. Arrow Keys?
  41. 41. Experienced users prefer the hjkl keys because they are always right under their fingers.
  42. 42. Beginners often prefer the arrow keys, because they do not know what the hjkl keys do.
  43. 43. The mnemonic value of hjkl is clear from looking at the keyboard. Think of j as an arrow pointing downwards. — :help motion.txt
  44. 44. VIM WIZARD[1] a man who has magical powers, especially in legends and fairy tales
  45. 45. You can use your MOUSE
  46. 46. Use vim-sensible to start out. Or go all in with Vim Bootstrap, Janus or spf13.
  47. 47. Plugins
  48. 48. Plugin Managers Pathogen Vundle vim-plug vim-addon-manager dein.vim Vizardry Vimana
  49. 49. Install Plugins call plug#begin() Plug 'tpope/vim-sensible' Plug 'scrooloose/syntastic' call plug#end()
  50. 50. Pillaging .vimrc
  51. 51. THE END
  52. 52. Links → @VimIndy → vim.org → Neovim → Help always in a tab → My .vimrc → VIM: Hard Mode → vim-galore: Everything you need to know about Vim
  53. 53. Screencasts → Vimcasts → Derek Wyatt Tutorials
  54. 54. Articles / Books → Learn Vim Progressively → Learn Vim the Hard Way → Coming Home to Vim → Everyone Who Tried to Convince Me to use Vim was Wrong → Learn to Speak Vim → Vim Text Objects: The Definitive Guide → Practical Vim
  55. 55. Photo Credits Title (B.B. Wijdieks) Fundamentals (@nobida) Terminology (@nicklockey) Modal (@chrisobayda) Help (@mountaineer4061) Help (@carbonated) Do you speak it? (@reallyboring) Arrow Keys (@regocasasnovas) hjkl (@donpdonp) mouse (@kapy) Sensible (@matt_gibson) Plugins (@chicagobart) Pillaging (Damian Gadal) Links (@volvob12b) ⬅ This Picture (@rhodes) Thanks to and
  56. 56. Vim for Mere Mortals by claytron is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
  57. 57. *bar* | To screen column [count] in the current line. |exclusive| motion. Ceci n'est pas une pipe.

×