[20200107]vim的特殊功能g命令.txt
[20200107]vim的特殊功能g命令.txt
--//今天我要使用vim定位一個sql語句某行在整個sql語句偏移位置(與開始位置),這個命令不大常用。
--//我僅僅記憶理命令使用g開頭,我查詢文件發現:
g CTRL-G Prints the current position of the cursor in five
ways: Column, Line, Word, Character and Byte. If the
number of Characters and Bytes is the same then the
Character position is omitted.
If there are characters in the line that take more
than one position on the screen (<Tab> or special
character), both the "real" column and the screen
column are shown, separated with a dash.
See also 'ruler' option. {not in Vi}
--//這樣移到到定位的位置,在輸入g ctrl-g ,在提示行顯示如下。
Col 15 of 201; Line 21 of 21; Word 135 of 160; Char 1427 of 1615; Byte 1429 of 1617
--//這樣可以知道偏移在1429處。
--//開頭是g的命令還有許多特殊功能,比如ga看ascii碼等等。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2672223/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- vim命令
- Vim命令的基本操作
- 常用的vi/vim命令
- VIM 命令大全
- Vim命令合集
- Vim 命令合集
- vi(vim)命令
- 常用vim命令
- VIM退出命令
- Vim 的命令模式記錄模式
- vim中翻頁的命令
- [20200107]討厭的forefox瀏覽器.txt瀏覽器
- VIM 常用插入命令
- VIM 命令總結
- Vim相關命令
- Linux vim命令Linux
- vim命令使用大全
- vim 必備命令
- Vim命令圖譜
- 【vim】vim 常用命令之工作速查
- vim編輯器常用的命令
- vi&vim命令列命令列
- Vim 常用操作命令整理
- Vi/Vim命令桌布圖
- vim 檔案操作命令
- vim命令入門解析
- VIM常用命令
- txt.vim : Universal syntax script for all txt docs, logs and other types
- [20170616]vim 8.0的安裝.txt
- PacVim:一個學習 vim 命令的命令列遊戲命令列遊戲
- Shell命令列中的特殊字元及其轉義(去除特殊含義)命令列字元
- Vim和Vi的常用命令
- 【Linux】—— vim常用操作命令Linux
- vim全域性替換命令
- vim替換命令 (語法)
- vim ctags 配置 自動命令
- [20200424]vim visSum.vim合計外掛.txt
- [20220316]完善vim gdb.vim外掛.txt