In order to configure VIM Editor, we have to edit ~/.vimrc
file.
vim ~/.virmc
The following are list of options to consider enabling before using VIM Editor.
- Enabling Current Line Numbers in VIM Editor
set number
- Enable Relative Line Number
set relativenumber
- Turn on Syntax Highlighting
syntax enable
- Set History to retain more commands. (By Default, VIM Saves last 8 commands).
set history=100
- AutoIndent (Ie, if my current line is indented 3 spaces, when i press enter, the next line should automatically indent 3 spaces as well
set autoindent
NOTE: If you want to undo the default indent behavior just use ^d (Ctrl + d)
- Make Search Case Insensitive
set ignorecase
- Highlight Matching Search String
set hlsearch
- Display mode at the bottom of the screen
set showmode
- Remove compatibility of old vi editor
set nocompatible
- sudo apt -- Command
- How to update apt
- What are all the packaged installed for "apt"
- How to update the JAVA_HOME variable
- Learn more about the "open ~/.bash_profile"
- Learn more about "sudo apt-get update" command
- "sudo apt-get install vim"
- Setting up ".vimrc" file
- http://fisadev.github.io/fisa-vim-config/ -- Fisa Vim Config
- Popular Plugins to Install for Vim -- For example : File Explorer
- Remapping CAPS Lock Key to Escape -- https://pqrs.org/osx/karabiner/index.html
- Vim CheatSheet - https://www.glump.net/_media/howto/desktop/vim-graphical-cheat-sheet-and-tutorial/vi-vim-cheat-sheet-and-tutorial.pdf
- Configuring VIM - ~/.vimrc -- This is the file to configure VIM . "Using ~ means Home Directory" - Make sure that we check it in GITHUB -
- Use other peoples vimrc dot files -
- Dot Files Management in Mac - https://github.com/thoughtbot/dotfiles
- Plugins for Development: A. Ctrl P - Fuzzy file search B. NerdTree C. AG for Vim - Helps to search through projects
- :set showcmd
- https://nvie.com/posts/how-i-boosted-my-vim/
- https://medium.com/usevim/vim-101-set-hidden-f78800142855
- VIM Airline : https://github.com/vim-airline/vim-airline
- VIM Themes : https://github.com/reedes/vim-thematic
- NerdTree Setup : https://medium.com/@victormours/a-better-nerdtree-setup-3d3921abc0b9
- Common Configuration setup of VIM: https://github.com/carlhuda/janus
- Using i3 for Window Management. This is only available in linux. So use https://ianyh.com/amethyst/ for Mac.
- VIM + Tmux
- https://medium.freecodecamp.org/learn-linux-vim-basic-features-19134461ab85