One, set bash:
Vim ~/.bash_profile
# OSX Terminal color settings
Export clicolor= 1
export lscolors=gxfxcxdxbxegedabagaced
export ps1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\ ]\w\[\e[0m\]\$ '
# LL
alias ll = ' ls-l '
Second, set VIM:
Download the vim color file from the following address:
Https://github.com/tomasr/molokai
Vim ~/.VIMRC
1 "Configuration file for Vim
2 Set modelines=0 "cve-2007-2438
3
4 "Normally we use vim-extensions. If you want true vi-compatibility
5 "Remove Change the following statements
6 Set nocompatible "use Vim defaults instead of 100% VI compatibility
7 Set backspace=2 "more powerful backspacing
8
9 "Don ' t write backup file if Vim is being called by "Crontab-e"
Ten au bufwrite /private/tmp/crontab.* set nowritebackup Nobackup
One "Don ' t write backup file if Vim is being called by "Chpass"
A au bufwrite /private/etc/pw.* set nowritebackup Nobackup
13
- ColorScheme Molokai
the syn On " syntax support
- Set laststatus=2 "Always show status bar
- Set tabstop=2 "The length of a tab
- Set softtabstop=2 "The length of a tab (can be greater than TabStop)
+ Set shiftwidth=2 "a length of indentation
- Set expandtab "Use spaces instead of tabs
+ Set smarttab "Smart tab
A Set autoindent "Auto indent
at Set smartindent "can only indent
- Set number " Displays line numbers
- Set ruler "Show position indicator
- Set backupdir=/tmp "Setting up the backup file directory
- Set directory=/tmp "Set temp file directory
- Set ignorecase "ignoring case when retrieving"
in Set HLS "highlighting matches when retrieving
- Set helplang=cn "Help system set to Chinese
to Set foldmethod=syntax "code folding
32
33
the The switch file browser
* Map <D-1> : Nerdtreetoggle <CR>
$ "Locate the current file in the file browser
Panax Notoginseng Map <d-! > : Nerdtreefind < CR >
- "Close file browser while closing file
the Let Nerdtreequitonopen = 1
40
A The Open File Locator window
the Nnoremap <slient> < D-r > : Commandt < CR >
+ "Open the list of recently opened files
- Nnoremap <slient> < d-e > : Commandtbuffer < CR >
This article is from the "GONE with the Wind" blog, please be sure to keep this source http://h2appy.blog.51cto.com/609721/1763355
Make OSX Terminal a better