Giter Club home page Giter Club logo

vim's Introduction

Getting started with Vim

Repo to document my journey to use Vim. It’s meant to be a personal documentation of the most important steps to get Vim (on Mac) working.

Notes

On Mac there is a version of Vim installed already. However, it may not me the most current and some things don’t work (e.g. System Clipboard). To get the most current homebrew version of Vim use brew install vim resp. brew upgrade vim.

If preferred, you can map the Capslock key to ESC: https://vim.fandom.com/wiki/Map_caps_lock_to_escape_in_macOS

Customizing Vim

📄 My .vimrc file can be found here: https://github.com/acsany/dotfiles

When you open Vim for the first time, it looks quite basic. By creating a .vimrc file (usually in your home-directory) and adding settings to it, you can customize it entirely.

Basic customizations may be:

set number                " show line numbers
set clipboard=unnamed     " use system clipboard

syntax on                 " Syntax highlighting

Type :syntax on to enable syntax highlighting.

Commands (Normal Mode)

List of commands that I used had to look up first.

You can combine counters with commands e.g. 2w to jump two words forward.

File commands

  • Save: :w
  • Quit: :q

Adding/Deleting

  • Delete Line: dd
  • Delete Word: dw
  • Delete until end of line: d$
  • Delete Character: x
  • Add new line below: o
  • Add new line above: O

Undoing

  • Undo previous action: u
  • Undo all the changes on a line: U

Navigation

  • Go to line number [n]: E.g. 48gg
  • Go to begining of line: 0
  • Go to end of line: $
  • Go to beginning of next word: w
  • Go to beginning of current/previous word: b

vim's People

Contributors

acsany 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.