Skip to content

Instantly share code, notes, and snippets.

@yaonie
Created April 23, 2012 08:59
Show Gist options
  • Save yaonie/2469685 to your computer and use it in GitHub Desktop.
Save yaonie/2469685 to your computer and use it in GitHub Desktop.
"显示行号
set number
"不发出错误滴滴声
set noerrorbells
"高亮显示匹配的括号
set showmatch
"统一缩进
set tabstop=4
set softtabstop=4
set shiftwidth=4
"公司使用tab
set noexpandtab
set smarttab
"高亮搜索结果
set hlsearch
"编码
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8
"不自动备份
set nobackup
"主题
color evening
"插件
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
"Taglist
let Tlist_Use_Right_Window=0
let Tlist_File_Fold_Auto_Close=1
"插入日期
:map <F5> :r !date "+\%Y-\%m-\%e \%T"<CR><Esc>kJo
"python
:map <F6> <Esc>i# -*- coding: utf-8 -*-<Esc>o
"fu*k mouse
set mouse=
"paste mode toggle is F9
set pt=<f9>
"
function HeaderPython()
call setline(1, "#!/usr/bin/env python")
call append(1, "# coding: utf-8")
call append(2, "# 北北 @ " . strftime('%Y/%m/%d', localtime()))
normal G
normal o
normal o
endf
" 新py文件自动追加头部
autocmd bufnewfile *.py call HeaderPython()
" 不兼容
set nocompatible
"
set showcmd
"折叠
set foldmethod=marker
"高亮
filetype on
filetype plugin on
syntax enable
set grepprg=grep\ -nH\ $*
"自动缩进
set autoindent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment