Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
# increment numbers Ctrl+a+a Ctrl+x # if you highlight multiple rows you can increment the number with g ctrl+a+a g ctrl+x # When in visual mode and selecting lines use 'o' to switch between top and bottom # Use '%' to jump from open and closing of chars such as () {} and [] # you can also use '%' to select or delete everything in between those chars #try this keys on the follow text diw daw di" da" di[ da[ di] da] di{ da} di( da) ya{ viw vaw vi" va" vi[ va[ vi] va] vi{ va} vi( va) #vim will jump you to the next enclosing char if you are not currently in it and #and you can jump multiple chars like so v4a{ d2i{ y4a{ # also use 'c' to change the selection ({["Hello World"]}) ( { [ "Hello World" ] } ) #select entire word no matter where in the word you are viw viW # capital 'J' brings the next line up with spaces where newlines where # for no spaces just 'gJ' # 'w' vs 'W' - lower case jumps to the next word while capital 'W' jumps to the next white space # try it below Phone:(555)555-1234 for John # run a command on selection such as sort or jq :!sort :!jq . :!cut -d\, -f1,2 :!sort :!sort|uniq :!figlet # upper and lower case entire lines guu gUU # or highlight in visual and uu or UU # if you right the name of a file on a docuemnt you can open that file by pressing gf # reselecting text. select text in visual mode then press ESC do somethings and then press gv
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)