vi / vim show line number command To display line numbers along the left side of a window, type any one of the following: :set number or :set nu You can also define a mapping to toggle the option, for example: :nmap <C-N><C-N> :set invnumber<CR> By pressing Ctrl-N twice in...
1. 基本配置 代码语言:javascript 复制 setnu " 显示行号setguifont=Courier_New:h10:cANSI " 设置字体setsyntax=on" 语法高亮 autocmd InsertLeave*se nocul " 用浅色高亮当前行 autocmd InsertEnter*se cul " 用浅色高亮当前行setshowcmd " 输入的命令显示出来,看的清楚些setbackground=dark " 背景使用黑色...
17. vi 环境选项 Solaris ksh noautoindent nomodelines noshowmode autoprint nonumber noslowopen noautowrite nonovice tabstop=8 nobeautify nooptimize taglength=0 directory=/var/tmp paragraphs=IPLPPPQPP LIpplpipnpbtags=tags /usr/lib/tags noedcompatible prompt tagstack noerrorbells noreadonly term=...
set ignorecase set number "Show related row numberssetrelativenumber"在光标接近底端或顶端时,自动下滚或上滚 set scrolloff=10 "窗口大小setlines=30 columns=80" 分割出来的窗口位于当前窗口下边/右边 set splitbelow set splitright "不显示工具/菜单栏setguioptions-=Tsetguioptions-=msetguioptions-=Lsetguiopti...
set showcmd " 输入的命令显示出来,看的清楚些 "set cmdheight=1 " 命令行(在状态行下)的高度,设置为1 "set whichwrap+=<,>,h,l " 允许backspace和光标键跨越行边界(不建议) "set scrolloff=3 " 光标移动到buffer的顶部和底部时保持3行距离 set novisualbell " 不要闪烁(不明白) set status...
set showcmd " 命令行显示输入的命令 set showmode " 命令行显示vim当前模式 "--find setting-- set incsearch " 输入字符串就显示匹配点 set hlsearch 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. ...
Type CTRL-G to show your location in the file and the file status. Type G to move to a line in the file. 键入CTRL-G 以显示你在文件中的位置和状态. 键入G 以移动到文件行尾。 NOTE: Read this entire lesson before executing any of the steps!! 注:执行任何一步前请读完本课。 Hold down...
" 隐藏右侧滚动条 set guioptions-=b " 隐藏底部滚动条 set showtabline=0 " 隐藏Tab栏 ...
Matching does not work when lines are too far apart. The number of search lines is limited for performance reasons. You may increase the limits with the following options: let g:matchup_delim_stopline = 1500 " generally let g:matchup_matchparen_stopline = 400 " for match highlighting only...
" 高亮显示匹配括号sethlsearch" 高亮查找匹配setcursorline" 高亮显示当前行settermguicolors" 启用终端真色setshowmatch" 显示匹配setruler" 显示标尺,在右下角显示光标位置setnovisualbell" 不要闪烁setshowcmd" 显示输入的命令" 设置光标样式let&t_SI="\<Esc>]50;CursorShape=1\x7"let&t_SR="\<Esc>]50;...