vim在win下遇到汉字乱码早就知晓,本以为通过如下设置即可解决乱码问题 set
encoding=utf-8 set fileencoding=utf-8,chinese
这样设置是可以解决源码文件中的中文乱码问题但是菜单栏此时就变成了乱码, 肿么办? 网上查一解决方案 ,果断可行,摘录如下: s...
Given an array of integers, find two numbers such
that they add up to a specific target number.The function twoSum should return
indices of the two nu...
分类:
其他好文 时间:
2014-05-26 19:50:39
阅读次数:
314
前提条件是已经安装了g++要是没有安装,就yum install
g++1,编写Hello.cpp1>vim2>#include int main(){ printf("Hello,the world!");
return 0;}3>:w hello.cpp2,退出vim !q3,编译#g++ .....
分类:
编程语言 时间:
2014-05-25 22:19:17
阅读次数:
468
在备份ltedecoder程序时,需要把此目录拷由到bak目录下,但decoder目录下有个大文件,不需要备份,还有日志问题,也不需要备份,如何实现呢??
方法:
cd /source-dir
find . -name .snapshot
-prune -o -print0 | cpio -pmd0 /dest-dir
解释: This command cop...
分类:
其他好文 时间:
2014-05-25 21:51:29
阅读次数:
518
原文:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without ...
分类:
其他好文 时间:
2014-05-25 21:30:02
阅读次数:
276
Visual Assist X 快捷键 Shift+Alt+F Find References
查找引用 Shift+Alt+S FindSynbolDialog 打开查找符号对话框 Alt+G GotoImplementation 转到定义 Alt+M
ListMethodsInCurrentFi...
分类:
其他好文 时间:
2014-05-25 18:50:17
阅读次数:
350
gunzip -r hongchangfirst/data
如何递归删除那些剩余的非log结尾的文件?
先列出确认一下:
find hongchangfirst/data -type f ! -name "*.log"
然后真正的删除:
find hongchangfirst/data -type f ! -name "*.log" -exec rm -f {} \;...
分类:
系统相关 时间:
2014-05-25 09:41:05
阅读次数:
694
当用vim编辑一个文件时出现下列错误[root@zabbix~]#vim/usr/local/msmtp/etc/msmtprcE325:ATTENTIONFoundaswapfilebythename"/usr/local/msmtp/etc/.msmtprc.swp"ownedby:rootdated:ThuMay2215:47:092014filename:/usr/local/msmtp/etc/msmtprcmodified:YESusername:roothostna..
分类:
其他好文 时间:
2014-05-25 08:35:01
阅读次数:
473
A palindromic number or numeral palindrome is a 'symmetrical' number like 16461 that remains the same when its digits are reversed. In this problem you will be given two integers i j, you have to find...
分类:
其他好文 时间:
2014-05-25 07:41:08
阅读次数:
253
上下分割当前打开的文件。Ctrl+W s上下分割,并打开一个新的文件。:sp
filename左右分割当前打开的文件。Ctrl+W v左右分割,并打开一个新的文件。:vsp
filename相信你在《Vim的窗口分屏》一文中,你已经知道了怎么拆分窗口了。其实,我更多的不是用拆分窗口的命令,而是用浏览...
分类:
其他好文 时间:
2014-05-25 03:13:36
阅读次数:
248