00:00
258
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

Likes

Tags

  • Wincent Colaiuta 2 years 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 2 years 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 2 years 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 2 years 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.
  •  
  • Kássio Borges 1 year ago
    How do you select a block withou withespaces?! ctrl+v shift+4 doesn't work to me..(Sorry about my english..)
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

About this video

MP4
00:04:18
  • 572x448, 4.67MB
  • Uploaded Sun August 09, 2009
  • Please join or log in to download
2 Related collections

Statistics

Date Plays Comments
Totals 3,183 2 5
Feb 15th 0 0 0
Feb 14th 2 0 0
Feb 13th 0 0 0
Feb 12th 2 0 0
Feb 11th 2 0 0
Feb 10th 2 0 0
Feb 9th 1 0 0