Question: What was the main responsibility A. H. Vedel had when he was a Danish vice admiral and commander-in-chief?
Context: Vice Admiral Zahir Uddin Ahmed, (ND), ndc, psc (born 1957) was Chief of Staff of the Bangladesh Navy.  He was preceded by Vice Admiral Sarwar Jahan Nizam ndu, psc, BN and succeeded by Vice Admiral M Farid Habib, ndc, psc, BN The Director General of the Indian Coast Guard (DG ICG) is the head of the Indian Coast Guard.  The DG ICG has their office in the Coast Guard Headquarters (CGHQ) in New Delhi.  Appointed by the Government of India, the DG ICG reports to the Minister of Defence.  The Director General is assisted by four Deputy Directors General, each holding the rank of inspector-general, and other senior officers heading various staff divisions.  The Additional Director General of the ICG serves as the second-in-command to the Director General.  The post of Director General of the Indian Coast Guard is held by a three-star rank holder as a position and is not a rank in itself.  It is a Commander-in-Chief grade and is equivalent to Vice Admiral of the Indian Navy, Lieutenant General of the Indian Army and the Air Marshal of the Indian Air Force.  The rank of Additional Director General of the Indian Coast Guard is equivalent to vice admiral of Higher Administrative Grade of the Indian Navy. Vice Admiral Albert Thomas Church III (born 1947) is a retired Vice Admiral in the United States Navy.  Church served as on active duty for 36 years, retiring as a Vice Admiral in 2005.  During his service he commanded two warships, the Navy’s largest shore installation at Naval Station Norfolk, Virginia and was the longest serving Budget Director of the Navy (1998-2002).  Vice Admiral Church also served as the Naval Inspector General, during which time he completed a comprehensive review of interrogation techniques used by the Department of Defense in Iraq, Afghanistan, and at Guantanamo Bay, Cuba.  He is currently President of Prescient Edge Corporation, a US-based National Security Services and Technology Firm. Vice Admiral John P. Currier (born 1953) was the 28th Vice Commandant of the United States Coast Guard.  He assumed the position from Vice Admiral Sally Brice-O'Hara on May 18, 2012 and was relieved on May 20, 2014 by Vice Admiral Peter Neffenger. Vice admiral is a senior naval flag officer rank, equivalent to lieutenant general and air marshal.  A vice admiral is typically senior to a rear admiral and junior to an admiral.  In many navies, vice admiral is a three-star rank with a NATO code of OF-8, although in some navies like the French Navy it is an OF-7 rank, the OF-8 code corresponding to the four-star rank of squadron vice-admiral. Vice admiral (abbreviated as VADM) is a three-star commissioned naval officer rank in the United States Navy, the United States Coast Guard, the United States Public Health Service Commissioned Corps, and the National Oceanic and Atmospheric Administration Commissioned Officer Corps, with the pay grade of O-9.  Vice admiral ranks above rear admiral and below admiral.  Vice admiral is equivalent to the rank of lieutenant general in the other uniformed services. Richard Robert McNulty, Rear admiral United States Navy, Vice admiral USMS, was born in Gloucester, Massachusetts on April 20, 1899 and died in Boston, Massachusetts on November 1, 1980.  The United States Merchant Marine Academy community considers Vice Admiral McNulty, a World War II veteran, who had long advocated for the Academy's creation, its "Father".  The Academy's McNulty Campus is named for the Vice Admiral.  He served as the Academy's 3rd superintendent.  Vice Admiral McNulty was, too, a professor emeritus at Georgetown University. The Royal Danish Navy (Danish: "Søværnet" ) is the sea-based branch of the Danish Defence force.  The RDN is mainly responsible for maritime defence and maintaining the sovereignty of Danish, Greenlandic and Faroese territorial waters.  Other tasks include surveillance, search and rescue, icebreaking, oil spill recovery and prevention as well as contributions to international tasks and forces. Aage Helgesen Vedel was a Danish vice admiral and commander-in-chief of the Royal Danish Navy from 1941 until 1958. Vice Admiral of Chile was the title given to the Commander-in-Chief of the Chilean Navy.  One of the first, and perhaps most notable, Vice Admiral was Thomas Cochrane, 10th Earl of Dundonald, who served under Chile's leader Bernardo O'Higgins.
Answer: maritime defence and maintaining the sovereignty of Danish, Greenlandic and Faroese territorial waters