Skip to content

bencao/vimo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIMO

Personalized NeoVim configurations

Installation

Install NeoVim first if you haven't done so.

git clone https://github.com/bencao/vimo.git ~/.vimo

~/.vimo/install_neovim.sh

Also install Universal Ctags for ctags based code navigation.

Uninstallation

~/.vimo/uninstall_neovim.sh
rm -rf ~/.vimo

Plugins Selection and Why

List of Plugins

Vim Frequently Used Key Bindings

Vimo Help

  • [normal mode] Space then h open vimo help in VIM

Movement Key Bindings

  • [normal mode] Space then f quick jump to any words in the screen Demo
  • [normal mode] Space then r rebuild ctags for current directory
  • [normal mode] Ctrl + ] jump to definition, need to rebuild ctags first
  • [normal mode] Ctrl + o jump back to last cursor position
  • [normal mode] Ctrl + i jump back to next cursor position
  • [normal mode] Space then Space jump to and jump back between the current editing file and the last edited file

Selection Key Bindings

  • [normal mode] Ctrl + n press multiple times to select multiple current word and edit all of them at the same time Demo

Comment Key Bindings

  • [visual mode] g then c toggle comment

Complete Key Bindings

  • [insert mode] Tab auto complete with next candidate
  • [insert mode] Shift + Tab auto complete with previous candidate

Format/Alignment Key Bindings

  • [visual mode] space then p format the file with Prettier
  • [visual mode] Enter then = align selected lines by =
  • [visual mode] Enter then : align selected lines by :

Search & Navigations Bindings

  • [normal mode] Space then b browse files, use Ctrl + j/Ctrl + k to move between candidates Demo
  • [normal mode] Space then a search text patterns in directories using Ag, the result will be shown in a Quickfix window

Windows Key Bindings

  • [normal mode] Space then t toggle directory tree
  • [normal mode] Space then T open directory tree and select current editing file Demo
  • [normal mode] Space then s split a new horizontal window to the left
  • [normal mode] Space then S split a new vertical window to the top
  • [normal mode] Space then o toggle window/fullscreen
  • [normal mode] Space then w shortcut for :w
  • [normal mode] Space then W shortcut for :w!
  • [normal mode] Space then q shortcut for :q
  • [normal mode] Space then Q shortcut for :q!
  • [normal mode] Ctrl + h/Ctrl + j/Ctrl + k/Ctrl + l move left/up/down/right among windows Demo

List Available Key Bindings

  • :map all mode key mappings
  • :nmap normal mode key mappings
  • :vmap visual mode key mappings
  • :imap insert mode key mappings