Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

How to use vim

262 views

Published on

Let's check the basic of "how to use Vim".
And there are tricks to use Vim easier by downloading the plugin.

These fundamental guide slides which be able to use Vim editor by just a few knowledge.

Published in: Software
  • Login to see the comments

  • Be the first to like this

How to use vim

  1. 1. How to use VIM SungMin Han
  2. 2. Contents 1 2 3 4 Getting Started Vim plugins Cheat sheet References
  3. 3. Getting Started Vim (Vi IMproved) is CUI(Character User Interface) base text editor
  4. 4. Getting Started You can check vi command in your terminal right now! Recent version of Linux (Including MacOS) support vi alias binding with vim command
  5. 5. You can check vi command in your terminal right now! Recent version of Linux (Including MacOS) support vi alias binding with vim command What is Vim? First, Watch some Vim demo
  6. 6. The ”TEXT EDITOR” Insert Mode Command Mode Visual Mode Normal ModeESC Press i ESC Press vPress : Basically, Vim is text editor what built in your OS. However, there is a little different concept compare with the other editors What is Vim?
  7. 7. Plugins Vim support extensions (aka. plugin). Those plugin helps to use the additional functions in your Vim. Vim vi vi improved Vundle Space plugin A plugin B plugin C
  8. 8. Quick start to use Vim plugin! Install Vundle.vim Check follows link to get a snippet https://gist.oss.navercorp.com/kenneth-ceyer/a640cc7d21e047578be0454d37a510c4 set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim’ call vundle#end() filetype plugin indent on git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 1. Clone Vundle.vim repository from Github. 2. Create ~/.vimrc file in your home directory.
  9. 9. Quick start to use Vim plugin! Install Vundle.vim vi 1. Open vim editor again. 2. If you can see the vim interface without any errors, which mean you successfully installed Vundle.vim!
  10. 10. Quick start to use Vim plugin! Install the other plugins Check follows link to get a snippet https://gist.oss.navercorp.com/kenneth-ceyer/16ca02aac8126b70ea8f91b740079b12 vi ~/.vimrc 1. Open ~/.vimrc again. 2. Use command mode, And turn on line numbers with set number command (type“set nu” and `Enter`!) :set num 3. Append follow lines from 8 line Plugin 'tpope/vim-surround' Plugin 'vim-airline/vim-airline' 4. Use `w` command to write contents in your disk :w
  11. 11. Quick start to use Vim plugin! Install the other plugins :PluginInstall 5. Use command mode again, type “PluginInstall”, and `Enter`! 6. Finally, You can see the result as like follow :q 7. Exit installer panel with `q` command of command mode.
  12. 12. Quick start to use Vim plugin! Install the other plugins 8. Tada!
  13. 13. Quick start to use Vim plugin! Install the other plugins Plugin 'VundleVim/Vundle.vim' Plugin 'tpope/vim-surround' Plugin 'vim-airline/vim-airline' Plugin 'itchyny/lightline.vim' Plugin 'junegunn/fzf' Plugin 'tpope/vim-eunuch' Plugin 'scrooloose/nerdtree' Plugin 'editorconfig/editorconfig-vim' Plugin 'mattn/emmet-vim' Plugin 'w0rp/ale' Plugin 'airblade/vim-gitgutter' Plugin 'terryma/vim-multiple-cursors' Add more plugins and Happy hacking
  14. 14. Cheat sheet Vim editor looks so good And seems to be simple. But Unfortunately, Vim has a different system compare with the other editors
  15. 15. References Plugins User Guide Vundle.vim Github 10 Essential Vim plugins for 2018 Vim Awesome Raddit: Top 5 Best Vim Plugins https://github.com/VundleVim/Vundle.Vim#quick-start https://medium.com/@huntie/10-essential-vim-plugins-for-2018-39957190b7a9 https://vimawesome.com/ https://www.reddit.com/r/vim/comments/6562vs/top_5_best_vim_plugins_in_2017/ Mapping keys in Vim Vim Shortcut http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_1) https://gist.github.com/awidegreen/3854277
  16. 16. Thank you

×