-
-
Save amoblin/4256879 to your computer and use it in GitHub Desktop.
init the populate config with git and vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git config --system alias.st status | |
git config --system alias.ci commit | |
git config --system alias.co checkout | |
git config --system alias.br branch | |
git config --system alias.glog log --graph | |
git config --system alias.dlog log --decorate | |
git config --system alias.plog log -p | |
git config --system alias.nlog log --name-status | |
git config --system color.ui auto | |
git config --system core.editor vim | |
echo ' | |
" appended by amoblin. | |
"显示行号 set nu/set nonu | |
set number | |
"set ruler | |
"auto change dir | |
set autochdir | |
" 设置编码 | |
set enc=utf-8 | |
" 设置文件编码 | |
set fenc=utf-8 | |
" 设置文件编码检测类型及支持格式 | |
set fencs=utf-8,cp936 | |
" 保存文件格式 | |
set fileformats=unix,dos | |
"不使用vi键盘模式,而是使用vim键盘模式 | |
set nocompatible | |
" tab宽度 | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set cindent shiftwidth=4 | |
set autoindent shiftwidth=4 | |
" Highlight search things | |
set hlsearch | |
"自动缩进 | |
"依文件类型自动缩进 | |
filetype plugin indent on | |
" Set <BS> delete fake tabs | |
set smarttab | |
" Insert spaces instead of real tabs | |
set expandtab | |
' >> ~/.vimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment