Skip to content

Instantly share code, notes, and snippets.

View jelera's full-sized avatar

Jose Elera jelera

View GitHub Profile
@jelera
jelera / timestamp.vim
Last active May 10, 2020 17:20 — forked from rkumar/timestamp.vim
It auto updates the timestamp in lines within the 20 first lines, matching "Last modified, Updated, Changed, etc."
" Append this to your vimrc file
"""""""""""""""""""""""""""""""""
" auto-update the timestamp right before saving a file
" The Timestamp format is : Sat 07 Dec 2013 12:51:00 AM CST
" Within the 20 first lines, the matched lines are :
" Last [Cc]hange(d)
" Changed
" Last [Mm]odified
" Modified
" Last [Uu]pdate(d)
@jelera
jelera / code_comment_banner.vim
Created November 25, 2013 05:53
Code Comment Banners For Vim (Inspired in Textmate)
autocmd FileType vim map <leader>cb I" <ESC>A "<DEL><ESC>yyp0lv$hhr-yykPjj
autocmd FileType python,perl,ruby,sh,zsh map <leader>cb I# <ESC>A #<ESC>yyp0lv$hhr-yykPjj
autocmd FileType javascript,php,c,cpp,css map <leader>cb I/* <ESC>A */<ESC>yyp0llv$r-$hc$*/<ESC>yykPjj