Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 02-08-2013, 12:49 PM   #1
Registered: Mar 2007
Distribution: Fedora
Posts: 263

Rep: Reputation: 23
mapping a function with key

I want to made this function to be inserted at the present cursor position
 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.
Old 02-10-2013, 12:20 PM   #2
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,309

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mapping a function with key RudraB Linux - General 1 02-09-2013 01:14 AM
Keyboard mapping using xev see what key code, a key is bond to? NightSky Slackware 12 10-14-2011 03:03 AM
[SOLVED] Vim function and key mapping voyciz Linux - Software 1 11-03-2009 11:11 PM
Mapping AltGr key to act as WIN key krisrao Linux - Newbie 3 02-11-2009 08:14 PM
Key Mapping SPK Linux - General 1 08-15-2006 11:27 AM

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration