[Assorted-commits] SF.net SVN: assorted: [884] configs/trunk/src/vim/plugin/_yang.vim
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-07-07 21:44:56
|
Revision: 884 http://assorted.svn.sourceforge.net/assorted/?rev=884&view=rev Author: yangzhang Date: 2008-07-07 14:45:04 -0700 (Mon, 07 Jul 2008) Log Message: ----------- added underlining; added m-b for ToggleBrowser Modified Paths: -------------- configs/trunk/src/vim/plugin/_yang.vim Modified: configs/trunk/src/vim/plugin/_yang.vim =================================================================== --- configs/trunk/src/vim/plugin/_yang.vim 2008-07-07 21:42:05 UTC (rev 883) +++ configs/trunk/src/vim/plugin/_yang.vim 2008-07-07 21:45:04 UTC (rev 884) @@ -15,9 +15,10 @@ nnoremap <silent> <C-BS> :call ShiftWordInSpace(-1)<CR> nnoremap <silent> \cw :call CenterWordInSpace()<CR> + nnoremap <silent> \va :call AlignWordWithWordInPreviousLine()<CR> -nmap <m-b> :silent call ToggleBrowser()<CR> +nnoremap <m-b> :silent call ToggleBrowser()<CR> "map <F1> :call ToggleSketch()<CR> @@ -25,8 +26,15 @@ map <space> <c-f> map <s-space> <c-b> -imap <f6> <c-r>=system("date")[0:-2]<cr> -imap <f7> <c-r>=strftime("%Y-%m-%d")<cr> +" underline with character of your choice, e.g.: <f5>- or <f5>= +nnoremap <f5> yyp<c-v>$r +inoremap <f5> <esc>yyp<c-v>$r + +" insert timestamp +inoremap <f6> <c-r>=system("date")[0:-2]<cr> + +" insert datestamp +inoremap <f7> <c-r>=strftime("%Y-%m-%d")<cr> " imap <f6> <c-r>=strftime("%d/%m/%Y %H:%M:%S")<cr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |