Skip to content

convers39/nvchad-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

why using vim

Typing is not the bottleneck.

There are 2 main reasons why I keep using Vim/Neovim as my main editor.

  • Vim gives developers a language to express the motion and changes in a concise and efficient way.
  • The journey of improvement on using Vim will never end.

The Zen of Vim

  1. Speak Vim, not memorize.

Text is structured (through text objects)

  • Vim has a composable language
  • It makes use of text structure

The expression syntax is declarative, extend your thoughts in a natural way.

  • A common pattern as verb(operator) + noun(text objects), e.g.
    • dw as delete word,
    • cl as change letter,
    • yib as yank in block,
    • va[ as visual around [ bracket
    • 2j as indent 2 lines below

  • the pattern is well structured and extensible
    • plugins like vim-surround, vim-visual-multi, comment, etc

The motion in Vim lifts you to the sky, e.g.

  • gg/G as top and end of file
  • ^/$ as begin/end of line
  • w as word
  • e as end(of a word)
  • b as back
  • 2k as up 2 lines
  • f,F or t, T to local the character
  • ?, / to search pattern up and down

Combination of motion and edit expression.

  • cf'
  • d/

Navigate accross files

  • vimgrep
  • qflist
  1. DRY.

Don't type it twice

All the changes are repeatable.

  • dot
  • macro
  1. Be a time traveller.

All the changes are not only repeatable, but also undoable.

Vim memorize things for you.

  • register
    • clipboard
    • macro
  • marker
  • jumplist, changelist
  1. Feel no modes.

The Ideal: One Keystroke to Move, One Keystroke to Execute.

  • Just for reading(normal) and writing(normal+insert)
  • Move, change, move again
  • Visual mode is the smell, some better solution may exist
  1. Embrace the world, make it your own.
  • Vim is highly configurable and extensible
  • Follow the mindset of Vim, then fit your own habbits
  • PDE, a.k.a Personal Development Environment

Good For Reading/Watching

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages