set number
set hls
set ic
set ai
set enc=utf8
set incsearch
set shiftwidth=3
set nobackup
set hlsearch " highlight searches
set ignorecase " ignore case when searching
set title " show title in console title bar
set ruler
set modeline
"set tabstop=3 " length of each tab
if has("autocmd")
" Restore cursor position
au BufReadPost * if line("'"") > 0|if line("'"") <= line("$")|exe("norm '"")|else|exe "norm $"|endif|endif
" Filetypes (au = autocmd)
au FileType helpfile set nonumber " no line numbers when viewing help
au FileType helpfile nnoremap " Enter selects subject
au FileType helpfile nnoremap " Backspace to go back
" When using mutt, text width=72
au FileType mail,tex set textwidth=72
au FileType cpp,c,java,sh,pl,php,asp set autoindent
au FileType cpp,c,java,sh,pl,php,asp set smartindent
au FileType cpp,c,java,sh,pl,php,asp set cindent
"au BufRead mutt*[0-9] set tw=72
" Automatically chmod +x Shell and Perl scripts
"au BufWritePost *.sh !chmod +x %
"au BufWritePost *.pl !chmod +x %
" File formats
au BufNewFile,BufRead *.pls set syntax=dosini
au BufNewFile,BufRead modprobe.conf set syntax=modconf
endif
syntax on
標籤: 資訊學習
卡車司機
今天看到某高手的噗浪,發現用 Dev-C++ 編譯下面的程式碼,真的會讓卡車司機誤判:
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
system("md autorun.inf");
system("attrib +r +a +h +s");
return 0;
}
編譯後馬上會跳出警告視窗:
真開心……原來我會寫木馬 XD
ChromePlus
ChromePlus 可以說是 Chromium 的懶人包,除了免費、免安裝以外,還放進了一些常用的外掛!
目前官方加入的外掛有:
- 滑鼠點兩下關閉分頁
- Super Drag 拖曳功能
- 滑鼠手勢
- IE tab
- 對下載工具的支援