Text Editor Evaluation
What is the most important shortcuts?
File mangement
- Create New File
- E:
C-x C-f <new>
- V:
:tabedit
- open in tab
- E:
- Open File
- E:
C-x C-f <file>
- V:
:tabedit file
or use NerdTree
- E:
- To File (TextMate specific)
- E:
...
- V:
C-p
- The Silver Searcher
- E:
- Open File Browser
- E:
...
- V:
:Te
(open file in new tab) orC-n
(NerdTree)
- E:
- Save File
- E:
C-x C-s
- V:
:w
- E:
- Close Buffer (Close Editor if last buffer)
- E:
C-x C-c
- V:
:q
- E:
Moving Around
- Move to Top
- E:
M-<
- V:
gg
- E:
- Move to Bottom
- E:
M->
- V:
G
- E:
- Move Char (Back/Forward)
- E:
Lt/Rt
- V:
Lt/Rt or h/l
- E:
- Move Word (Back/Forward)
- E:
M-b/M-f
- V:
b/w
- E:
- Move Row (Up/Down)
- E:
Up/Dn
- V:
Up/Dn or j/k
- E:
- Move Section (Back/Forward)
- E:
M-{/M-}
- V:
{/}
orC-Up/Dn
- E:
- Move Screen (Back/Forward)
- E:
M-v/C-v
- V:
...
- E:
- Move to End of Line (Back/Forward)
- E:
C-a C-e
- V:
0/$ or 0/9
- E:
- Move to Symbol (TextMate specific)
- E:
...
- V:
...
- E:
Selection
- Select + Movement
- E:
...
- V:
v (select)
- E:
- Column Select + Movement
- E:
...
- V:
C-v
- E:
Collapse
- Collapse Section
- E:
...
- V:
...
- E:
- Expand Section
- E:
...
- V:
...
- E:
Copy and Paste
- Copy
- E:
M-w
- V:
y
- E:
- Cut
- E:
C-w
- V:
d
- E:
- Cut Line(s)
- E:
C-k
- V:
dd
- E:
- Paste (Cut or Copied)
- E:
C-y
- V:
p
- E:
Completion
- Complete Command
- E:
...
- V:
...
- E:
- Show Possible Commands
- E:
...
- V:
...
- E:
Undo
- Undo
- E:
C-x u
- V:
u
- E:
- Redo
- E:
C-x u
- V:
U
- E:
- Abort command (vi/emacs specific)
- E:
C-g
- V:
Esc
- E:
Search and Replace
-
Search in File (Options: Replace, Regexp, Direction, All)
- E:
C-s (normal), C-M-s (regexp), M-p (prev), M-n (next), RET (abort)
- V:
:%s/foo/bar/gci
- global, confirm and ignore case
- E:
-
Search in Project (Options: Replace, Regexp, Direction, All)
- E:
...
- V:
...
- E:
Formatting
- Intendent Selection (Back/Forward)
- E:
...
- V:
...
- E:
- Toggle Comment on Selection
- E:
...
- V:
C-v Up/Dn I # Esc
i.e. column select, multi row insert, comment char and escape.
- E:
Buffer
- Switch Buffer (Back/Forward)
- E:
C-x 2 (split horizontally), C-x 3 (split vertically), C-x o (switch buffer), C-x 1 (close split)
- V:
...
- E:
Help
- Open Help
- E:
C-h, C-x 1 (close help)
- V:
help topic
- E:
Vim tricks
Color schemes: Vibrant Inc, Vivid Chalk
Use Caps Lock as Escape
Make the remapping of keys in ~/.Xmodmap
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
And then call this file from ~/.xinitrc
if [ -f ~/.Xmodmap ]; then
xmodmap ~/.Xmodmap
fi
References
Vim
- solarized - color scheme
- Vim Color Scheme Test
- Kevin's Vim Tips and Tricks
- Vim Surround
- Fuzzy File Finder, cmd-T
- Ways to avoid ESC key
- Ultimate .vimrc
- åäö with xmodmap
- NerdTree - works with tabsabout](http://www.catonmat.net/blog/vim-plugins-surround-vim/)
- My VIM cheat sheet
- VIM introduction and tutorial
- VIM Command Ref
- 25 Vim Tutorials
- VIM tips for rails
- VIM QRef
- TextMate to VIM training wheels
- Vi complete key binding list
- molokai color scheme
- taglist
- vimgrep and cousins
- autotag, Browsing with tagsd
- vim-endwize
- A Starting Guide to VIM from Textmate
- Editors
- GMate
- Scribes
- RedCar
- Sublime Text - Developed by a Google Engineer, cross platform.
- Vim Ref Card
- ScrotWM - Tiling Window Manager
- Vim Tips - Vim Poster
- A Modern Vim Config with Pathogen
- ACME Editor - Editor/IDE developed by Rob Pike.
- HappyEdit - An editor in the Browser supporing vim editing
- Xi Editor - Editor written in Rust
- Yi Editor - Compiler for Haskell written in Haskell
- Howl - Fast and lightweight editor written in Lua