LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 02-08-2013, 01:49 PM   #1
RudraB
Member
 
Registered: Mar 2007
Distribution: Fedora
Posts: 262

Rep: Reputation: 23
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 01:50 PM.
 
Old 02-10-2013, 01:20 PM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,191

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


Reply


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 02:14 AM
Keyboard mapping using xev see what key code, a key is bond to? NightSky Slackware 12 10-14-2011 04:03 AM
[SOLVED] Vim function and key mapping voyciz Linux - Software 1 11-04-2009 12:11 AM
Mapping AltGr key to act as WIN key krisrao Linux - Newbie 3 02-11-2009 09:14 PM
Key Mapping SPK Linux - General 1 08-15-2006 12:27 PM


All times are GMT -5. The time now is 08:46 AM.

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