vim 使 用 技 巧(vi and vim editors)
2011-11-25 13:09
405 查看
在 vi 编辑界面
Try to force the system to save your buffer with the ex command :pre (shortfor :preserve). If that doesn’t work, look for some files to remove.
Use :sh (or CTRL-Z if you are using a job-control system) to move out of vi and remove files.
Use CTRL-D (or fg) to return to vi when you’re done. Then write your filewith :w!.
:sh ------------ vim to shell
CTRL-D ------------ back to vim
CTRL-Z ------------ vim to shell
fg ------------- back to vim
when vim in command:
数字 0 ---------------- go to head of current line of cursor
$ --------------- go to end of current line of cursor
u ----------------- undo edit
nG ---------------- go to line n of current file
Try to force the system to save your buffer with the ex command :pre (shortfor :preserve). If that doesn’t work, look for some files to remove.
Use :sh (or CTRL-Z if you are using a job-control system) to move out of vi and remove files.
Use CTRL-D (or fg) to return to vi when you’re done. Then write your filewith :w!.
:sh ------------ vim to shell
CTRL-D ------------ back to vim
CTRL-Z ------------ vim to shell
fg ------------- back to vim
when vim in command:
数字 0 ---------------- go to head of current line of cursor
$ --------------- go to end of current line of cursor
u ----------------- undo edit
nG ---------------- go to line n of current file
相关文章推荐
- Learning the vi and Vim Editors
- vi/vim使用指北 ---- Learning the vi and Vim Editors 读书 笔记
- Insert the control characters in Vi and Vim editors.
- Learning.the.vi.and.Vim.Editors
- Vi and Vim Autocommand: 3 Steps to Add Custom Header To Your File Automatically
- Vi and Vim Macro Tutorial: How To Record and Play
- Vi/Vim Tips and Tricks
- Vi and Vim Autocommand: 3 Steps to Add Custom Header To Your File Automatically
- VI/VIM text editor 12 Powerful Find and Replace Examples
- Vi and Vim 常用命令
- Linux vi and vim editor: Tutorial and advanced features
- <Vi and Vim>-Preface_002
- Vi / VIM: Find And Replace All Text Substitute Command
- Amazon.com: NEW VI AND VIM EDITOR KEYBOARD STICKER: Office Products
- <Vi and Vim>-Book Cover and Preface_001
- vi and vim 用法
- Linux环境下VI/VIM编辑文件时无权限保存的解决方法
- vi-vim-cheat-sheet
- 【Linux入门学习之】vi/vim编辑器必知必会
- ViEmu: vi/vim emulation for Microsoft Visual Studio