Skip to main content

Questions tagged [vim]

Vim is a text editor which can use various commands to edit text. Note that challenges that require the answers to be in a specific language are generally discouraged.

Filter by
Sorted by
Tagged with
5 votes
3 answers
1k views

Objective Use any editor or IDE (vim, emacs, IntelliJ, etc) to write a valid "Hello, World" program in any C-like language. The "!" is optional, but you get style points if you use ...
user72528's user avatar
  • 1,533
7 votes
2 answers
329 views

What general tips do you have for golfing in V? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to V (e.g. "remove comments" is not an ...
DJMcMayhem's user avatar
  • 60.1k
38 votes
13 answers
4k views

I've recently realized how vim works great for golfing, especially for kolmogorov-complexity. Also, according to meta vim is a perfectly acceptable 'programming language' at least, for the scope of ...
DJMcMayhem's user avatar
  • 60.1k
10 votes
2 answers
1k views

Your task is to build a vim script or provide a sequence of keystrokes that will operate on a single line of text with up to 140 printable ASCII characters (anywhere in a file, with the cursor ...
Joe Z.'s user avatar
  • 35.5k
30 votes
2 answers
2k views

Today I realised that I often like to define sections in my code like so: #################### # Helper Functions # #################### But that it's tedious to ...
shearn89's user avatar
  • 411
2 votes
4 answers
932 views

Once you grok vi, your muscle memory learns tricks like ggVGx to delete all the text in a file. Trouble is, ggVGx is not an ...
Alex Shroyer's user avatar
19 votes
2 answers
959 views

The book Green Eggs and Ham by Dr. Seuss is famous for only having 50 different words in the entire story of the book. Your task is to create a sequence of keystrokes that will result in the entire ...
Joe Z.'s user avatar
  • 35.5k
12 votes
5 answers
1k views

Pretend you have an arbitrary text file (which you may choose). Give the sequence of keystrokes that is most destructive (*) if it was intended to be inserted to the text, but instead was entered in ...
bitmask's user avatar
  • 365
16 votes
3 answers
1k views

Goal: Create and save file in Vim containing at least 25 ASCII characters. The exact keystrokes used during the creation and saving of this file must also produce identical contents in Windows ...
ClosureCowboy's user avatar