My Vim life
VimConf 2019
@gorilla0513

About me• Name

Gorilla (Twitter: @gorilla0513)• Job

Ueno zoo(My home) guardian• Vim experience
1year• HobbyDeveloping Vim plugins
and tool, and writingarticles.

What I like

Banana!!!(other fruit too)
Small animals!!(cat, dog, hamster)What I madedocker.vim
https://github.com/skanehira/docker.vim

docker-compose.vim
https://github.com/skanehira/docker-compose.vim

translate.vim
https://github.com/skanehira/translate.vim

docui (Docker TUI Client)https://github.com/skanehira/docuipst (TUI process monitor)
https://github.com/skanehira/pst

tson (TUI JSON viewer & editor)
https://github.com/skanehira/tson

About my session
This year’s main theme is“how to be more productive with Vim?”.
So, I’m going to look back at what I’ve done over the past year
and talk about how I learned Vim and to be more productivewith Vim.

Simple chronology
Years

What did I do

2018/09

Start of using Vim at work

2018/10~11

Using Vim every day to learn Vim

2018/12Developed my ﬁrst Vim plugin

2019/01

Developed tools with Vim

2019/02

Start of holding an event “gorilla.vim” every month

2019/03~04

Developed tools with Vim

2019/05
2019/06
2019/07~

Developed Vim plugins and tools.
Started write an series of articles about Vim at Sakura Knowledge every month.
Developed Vim plugins and tools.
Published a book “Vimが好きになる本”
Developed Vim plugins and tools.
Writing books, articles, etc… up to now.

2018/09
Start of using Vim at work•Why I started using Vim
The reason is that I had to work development onLinux.
I used IDE(Goland, Eclipse, VSCode) before Vim.

•How was it using Vim
Vim is very difficult to use because it is completely
different from the modeless editor.

•Why I continue using Vim
I can write code in IDE, but I still used Vim.
Because I believed I could write code faster if I could
get used to Vim.

2018/10~11
Learning Vim

•Using Vim every day to do something.
My goal was to operate Vim withoutthinking.
e.g Writing code, articles, memo, etc…

•

Learned what is capable in each modes
I read helps(index, starting, insert, etc…),
articles and book(Practical Vim: Edit Text at
the Speed of Thought) to learned usefulfunctions of Vim.

•Result of learning Vim
I got able to operate Vim as I wanted, andgot faster to write code than before.

Vim, it ’s awesome!!

2018/12
Developed My first Vimplugin• About plugin

The plugin name is “vsession” that can savemore easily and load vim’s sessions.

• Why I made plugin

I wanted to try making a Vim plugin andlearn more about Vim.

• What I thought after making a Vim plugin

Vim plugins are not difficult to make.
I didn't understand Vim script well, but Icould make it with watching example andarticles.

2019/02
Started “gorilla.vim”

• About gorilla.vim

gorilla.vim is an event where people who areinterested in Vim and Vimmer gather toperform LT and sessions.
Approximately 40 people gather on average
every month.

• Why I started holding an event

Because I want to get knowledges of Vim
and interact with Vimmer.

• Result of holding the event

I got knowledges of Vim, and got able tocommunicate with many Vimmer.

2019/05
Started write a series of article
about Vim at "SakuraKnowledge” every month• About the "Sakura Knowledge”"Sakura Knowledge" is an information sitefor IT engineers.

• Why I started writing a serial article

Fortunately, I was offered a job of writing a
serial article on Vim.
I accepted the offer because I want many
people to know the awesomeness of Vim.

2019/06
Published a book
“Vimが好きになる本”• About the book

This book is for beginners and intermediate.
Including mainly the following contents- what can do in each modes- how to use buffer, window and tab page
- how to use help
- how to customize vim- introduction of useful plugins- how to write Vim script and plugin• Why I wrote book

I want to more people to know that Vim has a
lot of useful features and using them canimprove your work efficiency.

• Result of writing book

I learned about the detailed features of Vim.
Also, more than 500 books are sold 🎉2019/07~
Developed Vim plugins andtools. writing books, articles,etc…

• Plugins made so far- translate.vim- docker.vim- docker-compose.vim- vsession- badapple.vim- say.vim- generatedir.vim- train.vim- weather.vim

• Tools made so far- docui- pst- tson- gjo- gocui-component- gol- gtran- go-enc- go-logger- go-run- got•

Write articles about Vim
My blog have only Vim articles.

https://gorilla.netlify.com/

What I thought of using Vim
every day for a year

Vim is an awesome editor!!

• Awesome points- Can edit text faster using count, operator,
motion, text objects and repeat.
- Can format text, run example code frombuffer, run curl and edit response, etc such asshell commands.
- Can use terminal in Vim.
- Extend features with plugins.

• How learn Vim(for beginners)

1. Learn basic Vim operations (vimtutor).
2. Learn operator, motion, text objects, count andrepeat.
3. Learn what can do in each mode.
4. Read help, articles, books and practice.
5. Write articles about Vim.
6. Join the Vim community and communicate withVimmer
7. Make a plugin.

How to be more productivewith Vim

Use plugins• Plugins make it easy to increase productivity

e.g fuzzy finder, auto completion, formatter,etc…

• But I don't think it's good to rely on plugins

too much
Because if we rely on plugins too much, we
might not be able to do anything withoutthem.

Use plugins• Points to determine whether to use

plugins or not
Use plugins when it is difficult to cover Vim
standard features.

Use plugins• Some of the plugins I usually use•

junegunn/fzf.vim
fuzzy finder can search and use some resources. e.g files, buffers,lines, etc…)•prabirshrestha/vim-lsp
Async LSP plugin for vim8 and neovim.
Can auto completion, snippets and Folding.

•thinca/vim-quickrun
Can execute whole/part of editing file.

•SirVer/ultisnips
The ultimate snippet solution for Vim.

Use plugins• Some of the plugins I usually use•

mattn/sonictemplate-vim
Can speed up easily your coding method.

•skanehira/translate.vim(my plugin)
Can translate language with Google translate.

•skanehira/docker.vim(my plugin)
Can manage docker resources on Vim.

•skanehira/docker-compose.vim(my plugin)
Can manage docker-compose resources on Vim.

Improve vimrc• Improve vimrc to match own usage and increasework efficiency

even without plugins, there are things that can be
improved by writing in vimrc.
e.g. display line number, highlight search, restore
cursor, auto indent, mapping keys, display
whitespace at the end of the line in red, etc…

Make plugin• By making a plugin, we will become

familiar with the Vim specification
Through the development of the plugin, I
learned about extension of functions using
external commands, buffer and window
operations, etc… in Vim.

Keep learning Vim
Vim is improving daily and will evolve.
Useful features will be added, and existing
features will be improved.
I recommend you to check GitHub regularly.

Summary•

Vim is awesome editor.

•Good ways to increase productivity with Vim-Use plugins-Improve vimrc-Create plugins-Continue learning Vim•

But, there is no need to use Vim forcibly. The
important thing is whether you can enjoy Vim or not.

Special thanks•

Those who taught me a lot about Vim
mattn, KoRoN, thinca, Tsuyoshi CHO, rbtnn, kuu and other vim-jp
members•

Gorilla.vim organizers
daisuzu, marcy, shinko, hoda•Everyone who participated in Gorilla.vim•

VimConf staff•

Those who contribute to Vim•Those who gave an English review of the slideujihisa, murakami kouhei

Thank you