http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern The ex commandgis very useful for acting on lines that match a pattern. You can use it with thedcommand, to delete all lines that contain a particular pattern, or all lines that do not contain a pattern. For example, to ...
S -> 删除一行(好像dd一样)但是删除后进入输入模式 (same as “dd” but after delete, in insert mode) s -> 删除字符,跟(d)一样,但是删除后进入输入模式 (same as “d” but after delete, in insert mode) s4s 会删除4个字符,进入输入模式 (delete 4 char and put in insert mode) ~ -> 更...
" start with spec file template autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec augroup END endif if &diff hi DiffAdd cterm=bold ctermfg=12 guibg=LightBlue hi DiffDelete cterm=bold ctermfg=13 ctermbg=14 gui=bold guifg=blue guibg=LightCyan hi DiffChange cterm=bo...
s - delete character at cursor and subsitute text S - delete line at cursor and substitute text (same as cc) xp - transpose two letters (delete and paste, technically) u - undo . - repeat last command Marking text (visual mode) v - start visual mode, mark lines, then do command (s...
vim和emacs是linux环境下的文本编辑利器,关于vim和emacs谁更优秀的话题从来没有断过,我在这里就不再评判了,vim是linux下的默认编辑器,学好了vim将会一生受用,我之前学vim是在网上找的一些资料,读博客之类的,使用了几年vim始终感觉没有什么大的进步,后来在vim官网看到vim书籍推荐,其中一本就是《vim实用技巧》,后来...
GitHub Copilot Write better code with AI Security Find and fix vulnerabilities Actions Automate any workflow Codespaces Instant dev environments Issues Plan and track work Code Review Manage code changes Discussions Collaborate outside of code Code Search Find more, search less Explore All...
vim set nocompatible "behave mswin " Remove menu, scroll bar and tools bar set guioptions-=m set guioptions-=r set guioptions-=T " Command ToggleView let s:view_status = 0 function ToggleView() if s:view_status == 0 set guifont= set lines=53 let s:view_status = 1 elseif s:view...
gbprod/cutlass.nvim : overrides the delete operations to actually just delete and not affect the current yank gbprod/stay-in-place.nvim : Neovim plugin that prevent the cursor from moving when using shift and filter actions gukz/ftft.nvim : same with as native f|t|F|T but with useful...
set wrap " 自动换行 dont wrap lines set ruler "打开状态栏标尺 set showmatch " 高亮匹配的括号 " 设置当文件被改动时自动载入 set autoread " 在处理未保存或只读文件的时候,弹出确认 set confirm " 关闭/开启菜单栏和工具栏 "set guioptions-=m " 关闭菜单栏 remove menu bar ...
EditorDeleteToWordStart <C-BS> EditorDeleteToWordStartInDifferentHumpsMode EditorDown <Down> EditorDownWithSelection <S-Down> EditorDuplicate <C-D> EditorDuplicateLines EditorEnter <CR> EditorEscape <Esc> EditorFocusGutter <A-S-6> EditorForwardParagraph EditorForwardParagraphWithSelection...