Mac优化终端,vim显示

Terminal的优化

  • 取消终端的滑轮条
    defaults write com.apple.Terminal AppleShowScrollBars -string WhenScrolling
    
  • 优化显示 Dracila
    $ git clone https://github.com/dracula/terminal.app.git  
    
    setting->:
    Terminal > Settings Tab
    Click "Gear" icon
    Click Import...
    Select the Dracula.terminal file
    Click Default
    
  • 安装 oh-my-zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"    
    
  • 安装 zsh-autosuggestions (zsh的自动补全)
    如果是通过上面安装 oh-my-zsh 直接执行
    git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions 
    
    修改 ~/.zshrc
    plugins=(git zsh-autosuggestions)
    

Vim的设置

  • 使用主题draculatheme
    cd ~/.vim
    git submodule add git@github.com:dracula/vim.git bundle/dracula-theme
    

    If you aren’t so clever just move the dracula.vim file into ~/.vim/colors and add the following lines into your vimrc file:

    syntax on
    color dracula
    
  • vim文件的编辑
    vim ~/.vimrc
    

    加上如下的语句,

    color dracula
    syntax on
    set number
    set t_CO=256
    set linespace=16
    set autowriteall
    set tabstop=8
    set expandtab
    set softtabstop=4
    set shiftwidth=4
    set backspace=indent,eol,start
    

发表评论

电子邮件地址不会被公开。 必填项已用*标注