Command Description
M-Backspace Kill word backward from point
C-_ Undo
M-space Mark
C-x C-x Exchange point and mark (only for current row, is not saved along with command in history)
ESC 10 f Prefix key, inserts ffffffffff
!! show previous command and execute it
!-1 (!-x) Show previous command and execute it
C-t switch character before and at cursor
M-t switch word before and after cursor
Command Description
C-a d minimize screen
screen -R maximize screen
C-a \ exit screen
Key Bindings Purpose
M-S-; Toggle comment
M-h mark paragraph
C-c C-x C-d Show timers behind tasks (org-clock-display)
C-x = Display cursor position and character info
M-x rename-buffer rename buffer, useful for similar files
C-M-f Move forward by s-expression
C-M-b Move backward by s-expression
C-M-k Kill s-expression
C-M-d Move down into a list
C-M-u Move up out of a list
C-M-n Move forward to the next list
C-M-p Move backward to the previous list
M-a Move to beginning of sentence
M-e Move to end of sentence
org-agenda
b switch to previous week
b switch to next week
C a L Show scheduled tasks
C a n Show scheduled, then unscheduled tasks
M-x subword-mode Minor mode that treats CamelCase as distinct words
M-x superword-mode Minor mode that treats snake_case as one word
Tips
Org-mode
write in the past tense, makes more sense to someone who reads it later
Execute org-lint for debugging of source-blocks.
This is helpful when exporting produces errors.
Startup visibility for one headline:
:Properties:
:Visibility: children (content/all)
:End:
To set file-specific source-block settings put this to the top:
#+PROPERTY: header-args :eval never-export
cua-mode
1. Activate cua-mode
2. Move point to beginning of rect and press c-ret
3. Move point to end of rect and press M-i
C-x C-f /sudo::/etc/fstab
C-x C-f /sudo::user@server
C-x C-f /sudo:ssh-host:file-on-ssh-host
C-x C-f /ssh:localhost#4000|ssh:10.2.2.4|ssh:10.5.5.5:/etc/nagiosconfigbuilder.yml
C-x C-f /ssh:10.2.2.4|sudo:root@10.2.2.4:/etc/hosts
eshell:
cd /ssh:user@fqdn:~
cd /ssh:ubu12\|sudo:ubu12:/etc/
=apt-cache policy > #<buffer apt-policy>
Command Description
hjkl use these to move
x delete character at point
A enter insert mode after current line
C-c exit insert-mode
:e filename edit another file
gf open file at point
zz center the screen
S-zz save file and exit
:%s/foo/gar/gc replace every foo with bar in current file with confirmation
C-F page down
C-B page up
:match Todo /regexp of word/ highlight a specific word
C-w v split the window vertically
C-w s split the window horizontically
C-w q close the current window
C-w C-w jump to next window
C-w arrow jump to window in arrow-direction
Commands defined in my .vimrc
Command Description
M-p switch current line with previous one
M-n switch current line with next one
Comment / Uncomment a selection of lines
move to the beginning of intended selection
C-V (enter visual mode)
move to the end of the intended selection
S-I # C-c
Give it a second