:insert not working for pasting on Vim editor

:insert not working for pasting on Vim editor

I will not explain how useful vim is, if you a developer on the *nix systems, then that is number one tool to tuck into your toolbox.

Now you want to paste huge text into vim and it looks all wacky, and the insert mode is not handling it.. here is what you would do..

Open your vim with

vi filename.ext

then do

:set paste

This will allow your vim to be in the paste mode and you can dump all you have without any problem then change the mode using esc and save it as :w

See how you would solve these known algorithm problems

Kadane’s algorithm in C – Dynamic Programming

Find longest palindrom from sequence of characters

Check if two strings are anagrams or not

Check if there are three numbers a, b, c giving a total T from array A

Find K Complementary numbers from array Java implementation

Java solution for checking anagram strings – tell if phrases are anagrams

testing k complementary pairs algorithm with junit

Changing decimal number to its binary equivalent

Find the first occurence of number in the sorted array

Implement Queue Using two Stacks – JavaScript algorithm

Leave a Reply

Your email address will not be published. Required fields are marked *