Mac system Miscellaneous (continuous update), mac Miscellaneous
1. Adjust the LaunchPad icon to display the number of columns and number of rows
1. Adjust the number of icons displayed in each column. On my computer (1366*768), seven people in each column thought it was good: defaults write com.apple.doc k springboard-rows-int 72. Adjust the number of icons displayed on each row, here, I used 6 defaults write com.apple.doc k springboard-columns-int 63, restarted the Dock killall Dock4, and changed the number of icons displayed on each page, you may need to reset Launchpad (this step is generally not required) ults write com.apple.doc k ResetLaunchPad-bool TRUE
Killall Dock
Ii. Display hidden files on mac
1. Show Hidden Files
Defaults write com. apple. finder AppleShowAllFiles-boolean true // change to false to hide
2. Restart the Finder.
Killall Finder
Iii. Common Vim commands
-Editing mode: normal editing is allowed.
-- INSERT --
"Enter I in command mode to enter edit mode"
-Command mode: You can run the command
No display at the bottom left
"In edit mode, Press ESC to return to command mode"
* ** "Most Important Command"/xxx // search for xxx (commonly used) n // execute the last query for 0 // to the beginning of the line (commonly used) w // move the cursor back to a word B // move the cursor forward to a word x // Delete the current character (commonly used) dw // delete a word D // delete it to the end of the line dd // Delete the entire line V // select the entire line y // copy the content of the selected part to the clipboard p // At the cursor paste the content in the clipboard below u // undo the last modification numG // move the cursor to the specified row (for example, 10G is to 10th rows) gg // to the start of the file G // to the end of the file: q! // Do not save and exit. Once the modification is incorrect, discard the modification (commonly used): wq // save and exit (frequently used)
4. Modify the default icon on mac
First bring your own Mac folder icon material (here to share some: http://pan.baidu.com/s/1mhgmN8G)
Right-click the folder you want to change:
Paste the icon image you want to modify into the area pointed by the arrow
V,