In this screencast we look at using Vim to let you do some pretty serious work with file handling. There are a number of "file renamers" and the like out there that give you big complex GUIs and such, but they're all pretty silly once you realize how you can do this with Vim.

Credits

1 Like

Tags

  • Wincent Colaiuta 3 months ago
    Rather than recording a macro to get rid of those unwanted ".mp3" strings it would have been easier to just do: :%s/.mp3//

    ie. replace the first instance of ".mp3" on each line (but not the second one!) with nothing.
  •  
  • Derek Wyatt 3 months ago
    Yup. That would do it.

    As well, you could also run the file through the shell with :%!sh (i.e. no highlighting required)

    p.s. You're the best drummer ever :)
  •  
  • Vkedah Pozhizni 3 months ago
    how did u make the cursor to change its appearance in insert mode? in normal mode it (cursor) looks like a rectangle, while in insert mode it looks like a bold vertical line.
    sorry for my english)
  •  
  • Derek Wyatt 3 months ago
    This is done with the 'guicursor' option. (:h 'guicursor'). It's quite a complex option so I'll just paste in what I've got here and you can figure out the details on your own if you wish. If you don't care, just paste it into your vimrc and source it. :)

    set guicursor=n-v-c:block-Cursor-blinkon0,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor,r-cr:hor20-Cursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175

    That's all on one line, of course, no spaces.
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 1,129
    likes 1
    comments 4
  • Nov 30th
    plays 0
    likes 0
    comments 0
  • Nov 29th
    plays 4
    likes 0
    comments 0
  • Nov 28th
    plays 2
    likes 0
    comments 0
  • Nov 27th
    plays 10
    likes 0
    comments 0
  • Nov 26th
    plays 3
    likes 0
    comments 0
  • Nov 25th
    plays 3
    likes 0
    comments 0
  • Nov 24th
    plays 0
    likes 0
    comments 0
  • Nov 23rd
    plays 4
    likes 0
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.