mlyixi's Blog

欲望的唤醒,信仰的坚定
mac, kde4切换到zsh,打造有git提示的美化shell
setup python scientific computing environment for mac

vimified使用

mlyixi posted @ 2012年12月12日 22:28 in 未分类 , 1600 阅读

ACK:快捷键   ,a

系统中必须有ack程序,可以通过brew install ack安装,类似于grep的文本搜索。在vim中调用ack

:Ack [option] 'pattern' [dir]

不过不太熟悉perl的正则。。。先放着。

Hammer:快捷键 ,p

文档语言的快捷编译,依赖于

  • .markdown -- gem install redcarpet
  • .textile -- gem install RedCloth
  • .rdoc
  • .org -- gem install org-ruby
  • .creole -- gem install creole
  • .mediawiki -- gem install wikicloth
  • .rst -- easy_install docutils
  • .asciidoc -- brew install asciidoc
  • .pod -- Pod::Simple::HTML comes with Perl >= 5.10. Lower versions should install Pod::Simple from CPAN.
  • .1 -- Requires groff
  • .html
  • .xhtml

但是在mac下提示缺少依赖。好像是macvim没有把ruby支持编译进去。改用homebrew的vim就可以了。但是好麻烦啊。

 

vim-align

vim-endwise

vim-repeat 

就是使用.号重复操作

vim-speeddating:ctrl-A/ctrl-X

在数字中使用ctrl-A/ctrl-X使之加减,如果是日期或时间,则按实际进制进行加减。

vim-surround

改变定界符,如cs"',cs'<q>,cst",ysiw],cs[}等等。

 

粘贴剪切板:,po (vimified中leader是“,”号)

ESC替换:jk

 

Avatar_small
charlly 说:
2022年12月23日 20:39

Vimified is a great plugin for Vim that allows you to use many of the best features of Vim without having to learn all of the commands. This makes it a LA Dodgers great choice for beginners or those who want to use Vim for a specific task.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter