Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org mapping a function with key
 Linux - General This Linux forum is for general Linux questions and discussion. If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

 02-08-2013, 12:49 PM #1 RudraB Member   Registered: Mar 2007 Distribution: Fedora Posts: 262 Rep: mapping a function with key I want to made this function to be inserted at the present cursor position Code:  nmap :call Insrt_frame() function! Insrt_frame() :put='\begin{frame}' :put='\frametitle{Motivation}' :put='' :put='\end{frame}' :call cursor(6,5) endfunction and after that, the cursor should go at the 3rd line of the function(the empty one). How can I do that? NB: the code is formatted in a bit messy way, dont know why Last edited by RudraB; 02-08-2013 at 12:50 PM.
 02-10-2013, 12:20 PM #2 DavidMcCann Senior Member   Registered: Jul 2006 Location: London Distribution: CentOS, Salix Posts: 3,351 Rep: You need either an IDE for the language you're using or an editor with macro facilities, like vi, emacs, or nedit (more modern interface than vi or emacs).