Skip to content

Instantly share code, notes, and snippets.

View denis631's full-sized avatar
💪
Improving

Denis Grebennicov denis631

💪
Improving
  • MongoDB
  • Munich, Germany
View GitHub Profile
@zhaojiangbin
zhaojiangbin / test-transient.el
Created April 19, 2020 17:50
Emacs: experiment with transient
(require 'transient)
;; True value for boolean variables has to be the slot value of
;; :argument.
(defvar tt--toggle "--toggle")
;; Empty string "" in string variables are considered changed and
;; highlighted in transient as if they were boolean.
(defvar tt--strarg nil)
(defclass tt--class-boolean (transient-infix)
@dmsul
dmsul / vim_crash_course.md
Last active June 27, 2024 20:25
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.