my_vimrc in ubuntu
set cin nu et ts=4 sw=4 sts=4 noswapfile nobackup cursorlineset background=darksyntax onmap:exec "!g++ -std=c++11 % -o %<" map :exec "!./%<"
my_gvimrc
set go= cin nu ts=4 sw=4 sts=4 et noswapfile nobackup cursorlineset bs=eol,start,indentset fileencodings=ucs-bom,utf-8,cp936,gb18030set guifont=Consolas:h12syntax oncolorscheme solarizedmap:!javac % map :!java %< map :exec "!g++ -std=c++11 % -o %<" map :exec "!%<"
vim常用命令:
ggVG:全选
"+y:复制到系统剪贴板
"+p:从系统剪贴板粘贴
dd:删除当前行
yy:复制当前行
u:撤销
ctrl+r:反撤销
ctrl+v, shift+i, // Esc:批量注释
:%s/str1/str2/g 全局替换,str1->str2