Vim Tips

From OnnoWiki
Revision as of 14:05, 9 September 2015 by Gibransyah (talk | contribs) (New page: = Generating a column of increasing number = Download plugin di http://www.drchip.org/astronaut/vim/index.html#VISINCR extract menggunakan gunzip $ gzip -d visincr.vba.gz Berkas plug...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Generating a column of increasing number

Download plugin di http://www.drchip.org/astronaut/vim/index.html#VISINCR

extract menggunakan gunzip

 $ gzip -d visincr.vba.gz

Berkas plugin didistribusikan menggunakan vimball, install menggunakan vim.

 $ vim visincr.vba
  

Di dalam vim lakukan tindakan berikut

 :source %

Selesai. Blok text number yang ingin diincrement, lalu tekan

:I