Skip to content

Instantly share code, notes, and snippets.

View AviKav's full-sized avatar

AviKav

  • United States
  • 03:41 (UTC -04:00)
  • X @Avi_Kav
View GitHub Profile
@AviKav
AviKav / vim_crash_course.md
Created November 30, 2020 23:23 — forked from dmsul/vim_crash_course.md
Vim Crash Course

NOTE: Specific examples given for options, flags, commands variations, etc., are not comprehensive.

NORMAL MODE

Vim has 2 main "modes", that chance the behavior of all your keys. The default mode of Vim is Normal Mode and is mostly used for moving the cursor and navigating the current file.

Some important (or longer) commands begin with ":" and you will see the text you enter next at the bottom left of the screen.

:q[uit] - quit (the current window of) Vim. ("Window" here is internal to Vim, not if you have multiple OS-level windows of Vim open at once.)
:q! - force quit (if the current buffer has been changed since the last save)
:e[dit] {filename} - read file {filename} into a new buffer.

@AviKav
AviKav / index.html
Last active March 30, 2019 02:11 — forked from TimothyGu/index.html
for-of loop vs forEach (https://jsbench.github.io/#3e02cc5ae174106bb0de5e00435a3b7e) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>for-of loop vs forEach</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>