Fork me on GitHub
摘要: :3,5t. # 把第 3 行到第 5 行的内容复制到当前行下方 :t5 # 把当前行复制到第 5 行下方 :t. # 复制当前行到当前行下方(等价于普通模式下的 yyp) :t$ # 把当前行复制到文本结尾 :'<,'>t0 # 把高亮选中的行复制到文件开头 :m+1 # 下移 1 行 :m-2 阅读全文
posted @ 2023-03-04 18:09 Cloudhan 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 下面这段代码放到 vimrc,升级后可以注释掉,不用开启梯子就可以升级。 set nocompatible hidden laststatus=2 if !filereadable('/tmp/plug.vim') silent !curl --insecure -fLo /tmp/plug.vim 阅读全文
posted @ 2023-02-24 21:59 Cloudhan 阅读(35) 评论(0) 推荐(0) 编辑
摘要: |-after |—ftplugin |—syntax |-autoload |-colors |-compiler |-doc |-ftplugin |—latex-suite |—–dictionaries |—–macros |—–packages |—–templates |—python 阅读全文
posted @ 2023-02-20 18:46 Cloudhan 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Ctrl+X # 进入补全模式 Ctrl+X Ctrl+L # 整行补全 Ctrl+X Ctrl+N # 插入模式下,根据当前文件里关键字补全 Ctrl+X Ctrl+K # 根据字典补全 Ctrl+X Ctrl+T # 根据同义词字典补全 Ctrl+X Ctrl+F # 插入模式下补全文件名 Ct 阅读全文
posted @ 2023-02-09 16:01 Cloudhan 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 两个命令行工具 项目地址: cheat: | https://github.com/cheat/cheat/blob/master/doc/cheat.1.md bro: | http://bropages.org/ 阅读全文
posted @ 2023-02-07 15:43 Cloudhan 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/Arunoido/p/10753873.html 摘抄自:http://t.zoukankan.com/intelwisd-p-7928852.html 1.嵌套: <TAB>+, # <TAB>+, 的组合键,相当于Ememet中的Tab键。 阅读全文
posted @ 2023-02-01 17:07 Cloudhan 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1. neoformat :Neoformat,输入命令之后按 空格+tab 键进行选择格式化的程序, 项目地址:https://github.com/sbdchd/neoformat 2. vim-multiple-cursors 选中任意文本后,使用 Ctrl+n 和 Ctrl+p 找到下一个匹 阅读全文
posted @ 2023-02-01 11:07 Cloudhan 阅读(247) 评论(0) 推荐(0) 编辑
摘要: rvm gemset切换: rvm use 2.7.0@jekyll rvm use 2.7.0@rails blog 推送的操作: github master 已经换成了 main git checkout -b gh-pages git add . git commit -m "sailing 阅读全文
posted @ 2023-01-31 15:03 Cloudhan 阅读(17) 评论(0) 推荐(0) 编辑
摘要: https://ruby-china.org/topics/4478/ https://github.com/tpope/vim-rails :R ,:A | * Current file | Alternate file | Related file | | | | | | * model | u 阅读全文
posted @ 2023-01-30 18:12 Cloudhan 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 安装 curl -sS https://webinstall.dev/zoxide | bash export PATH="/home/$USER/.local/bin:$PATH" zoxide -V 在.bashrc文件最后添加: eval "$(zoxide init bash)" sourc 阅读全文
posted @ 2023-01-27 17:06 Cloudhan 阅读(314) 评论(0) 推荐(0) 编辑