Windows 下 gVim 的文字拷贝/粘贴
Monday, April 25, 2011 8:32:23 AM
Windows 下习惯了 Ctrl-C 和 Ctrl-V,在 gVim 下也会习惯性的用这个组合键。
如果不作设置,gVim的处理结果会让你很恼火。
因此,Windows下的gVim,有必要作以下设置:
vmap <C-C> "+y nmap <C-V> "+gP imap <C-V> <ESC><C-V> i
把以上代码追加到 gvimrc 文件之后,感觉顺手多了。
无不用其“极”
Monday, April 25, 2011 8:32:23 AM
vmap <C-C> "+y nmap <C-V> "+gP imap <C-V> <ESC><C-V> i
Thursday, May 13, 2010 1:05:30 AM
@ECHO OFF set PHP_BIN=php.exe %PHP_BIN% -d output_buffering=0 -d phar.require_hash=0 PEAR\go-pear.phar pause
Wednesday, September 30, 2009 9:20:51 AM
extension=php_xdebug-2.0.5-5.3-vc6.dll
xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000
; XDEBUG EXTENSION zend_extension = "c:/wamp/bin/php/php5.3.4/zend_ext/php_xdebug-2.1.1-5.3-vc9-x86_64.dll" [xdebug] xdebug.remote_enable = off xdebug.profiler_enable = off xdebug.profiler_enable_trigger = off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "c:/wamp/tmp"
Monday, June 22, 2009 7:31:25 AM
@echo 替换 NOTEPAD.EXE 为 notepad2.EXE ... REM REM 1. 阻止系统自动恢复文件 attrib -r -h -s %systemroot%\system32\dllcache del %systemroot%\system32\dllcache\notepad.bak.exe ren %systemroot%\system32\dllcache\notepad.exe notepad.bak.exe attrib +r +h +s %systemroot%\system32\dllcache attrib -r -h -s %systemroot%\ServicePackFiles\i386 del %systemroot%\ServicePackFiles\i386\notepad.bak.exe ren %systemroot%\ServicePackFiles\i386\notepad.exe notepad.bak.exe attrib +r +h +s %systemroot%\ServicePackFiles\i386 REM REM 2. 备份 Windows 和 System32中 的 Notepad del %systemroot%\system32\notepad.bak.exe copy %systemroot%\system32\notepad.exe %systemroot%\system32\notepad.bak.exe copy %systemroot%\notepad.exe %systemroot%\notepad.bak.exe REM REM 3. 拷贝 notepad2 并覆盖 Windows 和 System32中 的 Notepad del %systemroot%\notepad.exe copy notepad2.exe %systemroot%\notepad.exe copy notepad2.exe %systemroot%\system32\notepad.exe REM @echo 替换完成。 @echo @echo 注: 如果 Windows 文件保护的对话框弹出,请按“取消”。
Wednesday, March 25, 2009 12:12:51 AM
@echo off echo 正在清除垃圾文件,请稍等... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive%\recycled\*.* del /f /s /q %windir%\*.bak del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /q %userprofile%\cookies\*.* del /f /q %userprofile%\recent\*.* del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*" del /f /s /q "%userprofile%\recent\*.*" echo 垃圾文件清除完毕! echo. & pause
Friday, July 25, 2008 10:39:58 AM
Dim Shell, FSO, objRootFolder
Set Shell = WScript.CreateObject("Shell.Application")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set objRootFolder = FSO.getFolder(Shell.BrowseForFolder(0, "请选择文件夹。注意:所选文件夹以下的 Thumbs.db 文件将被全部删除!", &h11))
If deleteFilesByName(objRootFolder, "Thumbs.db") Then
MsgBox RootDir + "以下的所有 Thumbs.db 文件已被删除!"
Else
MsgBox "发生错误!"
End If
'根据文件名删除文件的递归函数
Function deleteFilesByName(objRootFolder, strName)
If (objRootFolder is Nothing) Then
deleteFilesByName = False
Exit Function
End If
Dim objFolder, objFile
For Each objFile in objRootFolder.files
If objFile.Name = strName Then
objFile.Delete True
End if
Next
For Each objFolder In objRootFolder.SubFolders
deleteFilesByName objFolder, strName
Next
deleteFilesByName = true
End Function
Tuesday, April 1, 2008 1:34:32 AM
Monday, August 14, 2006 2:43:27 AM
Thursday, August 10, 2006 12:42:09 PM
Wednesday, August 2, 2006 11:05:14 AM
Dim wsh As New WshShell
MsgBox wsh.Exec("hostname").StdOut.ReadAll
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
| ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | |||
书法绘画作品收藏
MSN空间
成功亦有足迹可循... ...
大理,苍山洱海,白族,风花雪月
禅语一览
有农历和节假日的日历
日本日历
美国日历
本Blog之备份
自动逐句播放的《论语》
自动逐章播放的《道德经》
给您提供二十四点答案
唐诗三百首(英汉对照)自动播放
批语用提示的方法显示的《石头记》
在线拼音输入法,面向智能手机
四大名著在线版,主要面向智能手机。
易经六十四卦
关注:php,mysql,ajax ,linux, js,开源
有用的Opera菜单
なにもあたらしくない
By Adam Li
By Satoru Watanabe
by singway
by 摸鱼儿
by Somh
by 法师
by yumumao
Maybe I was a Bird in another Life !
投放广告挣美元,可用PayPal接收付款
免费网页模板
数据表格样式收集