Add text files
This commit is contained in:
34
content/text/vim-tricks.txt
Normal file
34
content/text/vim-tricks.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
Enter word under cursor into cmdline:
|
||||
CTRL-R CTRL-W
|
||||
(:help c_CTRL-R)
|
||||
|
||||
Rewrap text (reformat):
|
||||
gq
|
||||
|
||||
Remove duplicates from file:
|
||||
vim ~/.ssh/authorized_keys +":sort u|wq"
|
||||
|
||||
N ctrl-^ goes to buffer N
|
||||
|
||||
Centre current line on screen:
|
||||
zz
|
||||
|
||||
Newrw:
|
||||
- fixed on left: :20Lexplore
|
||||
- change to tree: i
|
||||
- toggle .hidden files: gh
|
||||
|
||||
|
||||
|
||||
Config
|
||||
======
|
||||
|
||||
Start Vim without reading .vimrc:
|
||||
vim -u NONE
|
||||
|
||||
Minimal sane config:
|
||||
set encoding=utf-8
|
||||
set nocompatible
|
||||
set background=dark
|
||||
set hidden
|
||||
|
Reference in New Issue
Block a user