# 1. Check current path>(pwd).Path C:\Users\ad\vimfiles\pack\plugins\start# 2. Make directory git-stuff/start recursively> mkdir-p../../git-stuff/start|Out-Null> cd../../git-stuff/start>(pwd).Path C:\Users\ad\vimfiles\pack\git-stuff\start# 3. Clone repo to install vim-fugitiv...
简介:Vim 命令速查表,注释化 vimrc 配置文件,经典 Vim 键盘图,实用 Vim 书籍,Markdown 格式,目录化检索,系统化学习,体系化配置工具集,快速熟悉使用。✨ 重复的威力 .# 小数点,即重复(Dot)命令,重复执行上一次命令N{command}# 重复某个命令 N 次,例如:10k,光标上移 10 行 善用宏和正则表达式,同样可以达...
:!rm FILENAME - 用于删除名为 FILENAME 的文件。 2. :w FILENAME 可将当前 VIM 中正在编辑的文件保存到名为 FILENAME 的文件中。 3. :#,#w FILENAME 可将当前编辑文件第 # 行至第 # 行的内容保存到文件FILENAME 中。 4. :r FILENAME 可提取磁盘文件 FILENAME 并将其插入到当前文件的光标位置后面。
# Show files/dirs with e in the name :DirFilter e # Hide files/dirs with e in the name :DirFilter! e # Hide files/dirs with e.*p in the name :DirFilter! e.*p :DirFilterClear— clear filter. :DirBookmark— save bookmark for a current directory. Bookmarks are saved in~/.config...
,KShow brief information about the symbol under the cursor ,ttTransform the classes in the current file ,ccGenerate a new class (replacing the current file) ,eeExtract expression (normal mode) ,eeExtract expression (visual selection) ,emExtract method (visual selection) ...
Delete to the end of the current line Simple text editing with Vim Swap values Put the months in order Change part of a function name in multiple occurrences Basic renumbering move titles next to url, in quotes Team names Collect List convert yml into java pojo field Array transposition V to...
Git commits for the current buffer; visual-select lines to track changes in the range :Commands Commands :Maps Normal mode mappings :Helptags Help tags 1 :Filetypes File types 查询文件 :Files 查询文件,这个就是最普通的文件搜索。 查询git文件 :GFiles 查询被git跟踪的文件,这个我不常用,因为有更...
export PATH=${PATH}:java/bin:android/platform-tools //如果直接在终端中输入命令,则设置PATH环境变量的值,但其作用范围仅限于当前会话。即临时环境变量 profile、bashrc、bash_profile 在Linux中配置环境变量,可以但不限于使用上述三个文件。 首先读入/etc/profile,读取当前用户目录内的~/.bash_profile;最后,根据...
coc#pum#confirm() :"\<CR>"" nerdtree文件树"打开vim后自动打开nerdtreeautocmdvimenter * NERDTreewincmdwautocmdVimEnter *wincmdw" 是否显示隐藏文件letNERDTreeShowHidden=1"当NERDTree为剩下的唯一窗口时自动关闭autocmdbufenter *if(winnr("$") ==1&&exists("b:NERDTree") &&b:NERDTree.isTabTree()...
插件的安装和其他插件的安装方式一样(前提:需要电脑上有node.js环境),在配置文件中输入下方内容,保存后,重启vim或者输入命令:source %,回车之后就可以使用:PlugInstall进行升级安装了。 Plug'iamcco/markdown-preview.nvim',{'do': {->mkdp#util#install()},'for': ['markdown','vim-plug']} ...