Coder Social home page Coder Social logo

learning-vim's Introduction

learning-vim

My Vim journey.

Config paths

  • Mac = /Users/gregorio.costa/.config/nvim
  • Ubuntu = /home/greg/.config/nvim

How to resources

To try out

Commands

  • :WhichKey
  • :Maps - shows current mapps visually
  • :PlugInstall - install newvim plugin

ShortCuts

Manipulation

  • Capital J bring next line to current line
  • Intent multiple lines: V, select the lines, >. Use . to repeat.
  • Delete till a ": ft"
  • Rename by COC - Leader + rn
  • Fix by COC - Loader + do
  • Get a diff from two splits: Open the two files, and run :diffthis in both split
  • Replace in current file %s/โ€/"/g

Navigation

  • Shift + H/M/L to jumb top, middle, bottom of the screen
  • Ctrl + J/H to select elements from pop up (e.g. autocomplete)
  • After you search f", you can go to the next " with ;
  • Go next error by COC [g or previus ]g
  • Go to n split: n ctrl-w ctrl-w

NerdTree

  • m create/edit/manage a node
  • o open a folder
  • x close recursivelly open folders

Rearange splits

  • CTRL-W K (i.e., Ctrl+W Shift+K), with H = left, J = bottom, K = top, L = right Move split to different position

Registers

  • :reg see register states
  • "0p paster from register 0 (visual mode)
  • ctrl+r 0 paste from register 0(insert mode)

learning-vim's People

Contributors

costagreg avatar costagregtrint avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.