vimtips
@vimtips
Like VI or VIM? So do I! Use it more effectively with daily tips. Catch them all at http://vimtweets.com.
คุณอาจชื่นชอบ
gq{movement} to wrap text, or just gq while in visual mode. gqap will format the current paragraph. is.gd/7Onk
g< CTRL-G > to see technical information about the file, such as how many words are in it, or how many bytes it is. is.gd/9cYj
:%s/[.!?]\_s\+\a/\U&\E/g will uppercase the first letter of each sentence (except the very first one). is.gd/4xZW
:g/_pattern_/s/^/#/g will comment out lines containing _pattern_ (if '#' is your comment character/sequence) (via @vrybas_)
:vimgrep /stext/ **/*.txt | :copen searches for stext recursively in *.txt files and show results in separate window (via @danechkin)
In gvim, change the cursor depending on what mode you are in (normal, insert, etc): is.gd/9dq0
To search for a URL without backslashing, search backwards! Example: ?somestuff.com is.gd/4xZW
CTRL-w | and CTRL-W _ maximize your current split vertically and horizontally, respectively. CTRL-W = equalizes 'em.
Basic commands 'f' and 't' (like first and 'til) are very powerful. See :help t or :help f. is.gd/cCHy
/\%>80v.\+ with search highlighting (:set hlsearch) will highlight any text after column 80. is.gd/8ekT
ga will display the ASCII, hex, and octal value of the character under the cursor. is.gd/4xZW
[I (that's bracket-open, capital-i) shows lines containing the word under the cursor (via @nvie)
% matches brackets {} [] (), and with matchit.vim, also matches def/end, < ?php/?>, < p>/< /p>, etc. is.gd/N4W
:40,50m30 will move lines 40 through 50 to line 30. Most visual mode commands can be used w/ line numbers. is.gd/cCHy
In your ~/.vimrc, `set clipboard=unnamed`. Now all operations work with the OS clipboard. No need for "+, "* (via @panozzaj)
United States เทรนด์
- 1. #SmackDown 36.1K posts
- 2. Caleb Wilson 4,344 posts
- 3. Giulia 12K posts
- 4. #BostonBlue 3,011 posts
- 5. Rockets 19.3K posts
- 6. #OPLive 1,397 posts
- 7. #TheLastDriveIn 1,981 posts
- 8. Lash Legend 4,585 posts
- 9. Supreme Court 168K posts
- 10. #Dateline N/A
- 11. Northwestern 4,217 posts
- 12. Reed 24.6K posts
- 13. Chelsea Green 5,167 posts
- 14. Harrison Barnes N/A
- 15. Sengun 3,893 posts
- 16. Kansas 23.4K posts
- 17. Darryn Peterson 2,156 posts
- 18. NBA Cup 8,324 posts
- 19. Tulane 2,588 posts
- 20. End of 3rd 1,437 posts
คุณอาจชื่นชอบ
-
Neovim, world leader in plugin deliveries
@Neovim -
Computer Science
@CompSciFact -
Unix tool tip
@UnixToolTip -
GitHub
@github -
Node.js
@nodejs -
Raspberry Pi
@Raspberry_Pi -
nixCraft 🐧
@nixcraft -
DEV Community
@ThePracticalDev -
Regular Expression
@RegexTip -
TeX and Typography
@TeXtip -
John Resig
@jeresig -
Cory House
@housecor -
ohmyz.sh 🌈⌨️🐚
@ohmyzsh -
Scott Chacon
@chacon
Something went wrong.
Something went wrong.