New toys under mac



  1. zsh
    Why do we need Zsh? Because it is faster and more convenient to prompt and complete the code, everyone’s energy is limited. If you can type a letter, you will never type the second.

plugins=(git brew mvn svn svn-fast-info sbt go pip zsh-syntax-highlighting npm)
New toys under mac

  1. vim
    VIM was seen when I was a sophomore studying the operating system when I saw the teacher tossing red hat. I found that the editor is very b-grid, and it’s very colorful. After a period of time, some commonly used plug-ins will be posted. Now, because the main programming language is Scala, my development tool is idea, in which I use ideavim, and then through the.ideavimrcChanged some key mapping, if it’s a small script like go or python, I will use vim

New toys under mac

  1. tmux + tmuxinator
    TMUX is also a very cool tool, especially in the process of big data development, many servers will be connected, and the production environment, dev environment and test environment will be defined as different projects through tmuxinator. After configuring SSH to avoid login, my mother will no longer have to worry about the speed of my connection to the service

New toys under mac
New toys under mac

  1. cvim+chrome
    I still use chrome, thoughcvimNo,VimperatorIt’s so cool, but it’s basically enough. The key is that the father of chrome is good, and he usually uses Gmail or something. Account synchronization is relatively convenient

New toys under mac

  1. note
    I used to use impression notes, but later I used them in Ubuntu for a while to know notes. For markdown, I found that it was difficult to export knowledge notes. Now it’s changed to Mac, so it’s changed to MacquiverYes, synchronization is now availableiCloud

New toys under mac

  1. scala
    In the process of using ScalaworksheetandsbtThe console in is a function that many people won’t use at the beginning, but I really think these two areprojectThe other is the water free Scala group leader, written by the domestic Scala Daniel LaozhuscalaconsoleIn some simple syntax, if you don’t want to open IDE, then this is also a artifact, and highlight Scalarepl: `alias scala=’scala -Dscala.color’

Because I use Zsh, so it's in.zshrcIf bash, it is. bashrc ‘
New toys under mac

  1. idea
    There are many plug-ins in idea. I recommend a few that I use more. One isideavimThe other isKey promoterAnd finallyzookeeper

  2. Anti lock screen
    When discussing problems, lock screens often appear, so I use one calledcaffeineThe small plug-in can prevent the computer from locking the screen

  3. JDK version switch
    Because many times we need to compile some source, we need to use some JDK versions that are not normally used in the compilation process, so I used themjenvJDK version switching, because the compilation is usually completed once in the shell, and the session level is better

New toys under mac

  1. Document Assistant
    This is also an artifact, especially when there is no net, it can save lives, ha ha

Common shortcut keys of idea

Intelligent tips

  1. CTRL + space appears automatically

  2. Move to where the error occurred

  3. CTRL + Shift + ENTER


  1. ctrl + shift + alt + t

  2. alt+command+m method

  3. alt+command+f field

  4. alt+command+v var alias

  5. shift + f6 rename

code generation

  1. fori/sout/psvm

  2. Command + J view all templates

  3. for(User user:users) users.for+Tab

  4. Date brithday = user.getBrithday() user.getBrithday.var+Tab


  1. ctrl+shift+num bookmarks

  2. ctrl+num jump to bookmark

  3. Collapse code snippet


  1. CTRL + H class hierarchy, Ctrl + B / Ctrl + Alt + B jump parent-child class method

  2. Command + F12 all methods of the current class

  3. Command + F / Command + Shift + F current window / full project search

  4. F3 / shift + F3 find jump


  1. Command + Shift + a view all commands

  2. alt+insert

  3. Format code: Ctrl + Alt + L

  4. Format package: Ctrl + Alt + O

  5. f7/f8/f9 step into/step over/continu

todo list

Todo list is used in my work nowworktileIf it’s personal, take notes and write it in markdown format


  1. mouse
    Mouse recently started a LogitechM570Because I use two screens, it’s better to swing the trackball when I switch between two screens

  2. keyboard
    The keyboard has recently entered ahhkbMom doesn’t worry that I don’t like keyboards anymore

  3. display
    For a 13 inch Mac, I think it’s necessary to expand the screen, because whether it’s looking at the code or debugging, there are also GitHub and Zhihu, I usually put the browser and pin QQ on one side for communication and entertainment, and the other is idea plus item. I like to use the vertical screen, and I find that I don’t have to turn the page to read the code any more. Another advantage is that the width of the vertical screen is about 80 characters, and the code specification is also available. 23333, Dell, the vertical screen is quite cool

  4. Bracket
    The MAC on the desk is a little low, so I bought a cool bracket on Taobao for 30 yuan, which is not bad

The effect is as follows:New toys under mac

vim plugin

Plugin 'gmarik/Vundle.vim' "package manager

Plugin 'tpope/vim-surround' "surroundings in xml,tags,quotes 
Plugin 'tpope/vim-repeat' "repeat plugin command rather than the using the `.`
Plugin 'rhysd/conflict-marker.vim' "highlight ,jump and resolve conflict markers quickly in vim 
Plugin 'jiangmiao/auto-pairs' "auto pair 
"Plugin 'vim-scripts/delimitMate.vim' "same as auto pair
Plugin 'ctrlpvim/ctrlp.vim' "finder tag ,file in vim 
Plugin 'tacahiroy/ctrlp-funky' "ctrlp-extension 
Plugin 'easymotion/vim-easymotion' "vim motion on speed
Plugin 'mbbill/undotree' "undo tree
Plugin 'gcmt/wildfire.vim' "quickly select the colsest text object 
Plugin 'tpope/vim-pathogen' "rutimepath manager 
Plugin 'vim-scripts/sessionman.vim' "session save in $Home/.vim/sessions 
Plugin 'vim-scripts/Conque-Shell' "shell in vim
Plugin 'vim-scripts/winmanager' "window manager
Plugin 'vim-scripts/TaskList.vim' "task manager td
Plugin 'vim-scripts/taglist.vim' "taglist  
Plugin 'airblade/vim-gitgutter' "git diff 
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Plugin 'moll/vim-bbye' "buffer bye
Plugin 'rizzatti/dash.vim'

Plugin 'vim-airline/vim-airline' "light as air 
Plugin 'altercation/vim-colors-solarized' "color
Plugin 'spf13/vim-colors' "color
Plugin 'flazz/vim-colorschemes' "color colorscheme wombat
Plugin 'nathanaelkane/vim-indent-guides' "indent-guides in code can be easy to find
"Plugin 'vim-scripts/indentLine.vim' "display vertical lines
Plugin 'mhinz/vim-signify' "diff file  using :h signify
Plugin 'osyo-manga/vim-over' "replace world highlight
Plugin 'vim-airline/vim-airline-themes'

Plugin 'scrooloose/nerdtree' "file tree
Plugin 'Xuyuanp/nerdtree-git-plugin' "git
Plugin 'jistr/vim-nerdtree-tabs' "tab

Plugin 'scrooloose/syntastic' "syntastic code 
Plugin 'tpope/vim-fugitive' "Git Gstatus ,Gcommit ,Gblame,Gmove,Gremove,Ggrep,Gread,Gbrowse
Plugin 'mattn/webapi-vim' "web api support 
Plugin 'mattn/gist-vim' "Gist suuport
Plugin 'scrooloose/nerdcommenter' "count code
Plugin 'tpope/vim-commentary' "comment stuff out ,gcc,gc
Plugin 'luochen1990/rainbow' "rain bow
Plugin 'majutsushi/tagbar' "ctags 

Plugin 'Valloric/YouCompleteMe'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'

Plugin 'klen/python-mode'
Plugin 'davidhalter/jedi' 
Plugin 'yssource/python.vim'
Plugin 'vim-scripts/python_match.vim'
Plugin 'vim-scripts/pythoncomplete'

Plugin 'derekwyatt/vim-scala'
"Plugin 'derekwyatt/vim-sbt'
"Plugin 'vim-scripts/xptemplate'
Plugin 'ensime/ensime-vim'
"Plugin 'ktvoelker/sbt-vim'

Plugin 'Blackrush/vim-gocode'
Plugin 'fatih/vim-go'


 - test-part-1:
 layout: tiled
 - ssh  host1
 - ssh  host2
 - test-part-2:
 layout: tiled
 - ssh host3
 - ssh host4
 - test-part-3:
 layout: tiled
 - ssh host5
 - ssh host6
 - test-part-4:
 layout: tiled
 - ssh host7
 - ssh host8
 - ssh host9