E:348 no string under cursor error comes in vi editor in cygwin


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting E:348 no string under cursor error comes in vi editor in cygwin
# 1  
Old 12-25-2007
Question E:348 no string under cursor error comes in vi editor in cygwin

when i open a file to edit and type i to insert and the type # for #!/bin/bash
in vi and vim editor the message come that no string under cursor plz somebody help
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

vi editor on CYGWIN

vi editor is not working on CYGWIN.Please let me know how to make that work as soon as possible.My work is getting delayed due to this problem. (5 Replies)
Discussion started by: liyakathali
5 Replies

2. UNIX and Linux Applications

Passing the value of a cursor to another cursor

i have 2 cursors. i want to assign the value of first cursor(employee_id) to the where condition of cursor c2(please refer the bold statement). how do i do if i want to assign the value of c1 to where condition of cursor c2? declare cursor c1 IS select employee_id from employee cursor c2... (1 Reply)
Discussion started by: vkca
1 Replies

3. Shell Programming and Scripting

vi Editor on Cygwin

I installed Cygwin today and my vi editor was not working i.e. on while using vi command, I was getting "command not found" error. I realized that many have faced this problem and the previous threads on this have been closed without complete answers. I tried something and it worked. Wanted to... (1 Reply)
Discussion started by: erora
1 Replies

4. UNIX for Dummies Questions & Answers

tip: Simple script won't run in cygwin - vim editor involved

I ran into this issue and thanks to various postings in various forums, was able to figure out the solution but didn't see one posting that laid the whole issue out cleanly. So thought the following might help others ... ------------------------------------------------------------------------... (2 Replies)
Discussion started by: oxysep
2 Replies

5. Shell Programming and Scripting

editor mode in cygwin

Hi, I am using CYGWIN for script testing. I have found that vi command does not work in this. Kindly suggest how can I edit a script that is stored in a file ??? (5 Replies)
Discussion started by: himvat
5 Replies

6. UNIX for Dummies Questions & Answers

cygwin vi editor

now i am new to unix... i installed cygwin on windows because i want to make c++ program... and i need vi editor... whenever i write (vi anything) in the cygwin terminal it says vi: command not found ...since i installed all the packages (1 Reply)
Discussion started by: mostafamagdy
1 Replies

7. UNIX for Dummies Questions & Answers

Vi editor : Knowing the current cursor position

Hi All, In VI editor, to know the line number at any instant we use ctrl+g Similarly, to know the current coulmn number what shall we use?? If not direct key controls like ctrl+g, Is there any comands that could be executed in colon or ex mode of VI to know the current column position???... (1 Reply)
Discussion started by: ramkrix
1 Replies

8. UNIX for Dummies Questions & Answers

vi editor in cygwin

I have downloaded latest cygwin editor for windows xp. vi editor is not working on it. the error i get is "vi : command not found" I have already seen a post in this forum regarding the issue but the links in the post are broken. So please help on this issue. thanks in advance (1 Reply)
Discussion started by: arparwan
1 Replies

9. UNIX for Dummies Questions & Answers

Cursor positioning thru VI Editor

Is there a way that I can position cursor at say line 23, column 2? Thank you in advance. (8 Replies)
Discussion started by: Latha Nair
8 Replies
Login or Register to Ask a Question
DtEditorInsert(library call)											      DtEditorInsert(library call)

NAME
DtEditorInsert -- insert data into a DtEditor widget SYNOPSIS
#include <Dt/Editor.h> DtEditorErrorCode DtEditorInsert( Widget widget, DtEditorContentRec *data); DESCRIPTION
The DtEditorInsert function inserts either a string, wide character string or sized buffer at the insertion cursor position in a DtEditor widget. The data is transferred to the DtEditor widget using a DtEditorContentRec, which indicates the type of data being transferred along with the actual data. After the data is appended, the insertion cursor is positioned after the last character inserted. The widget argument specifies the DtEditor widget ID. The data argument is a pointer to a data structure containing the data to insert. For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). For a complete definition of DtEditorContentRec, see Dt/Editor.h - DtEditor(5). RETURN VALUE
Upon successful completion, the DtEditorInsert function returns one of the following values: DtEDITOR_NO_ERRORS The data was inserted sucessfully. DtEDITOR_NULLS_REMOVED NULL characters were found and removed from the data. Otherwise, if the DtEditorInsert function cannot insert the data into the DtEditor widget, it returns one of the following values: DtEDITOR_INVALID_TYPE The Type field is not recognized. DtEDITOR_ILLEGAL_SIZE The size of the buffer passed in is negative. DtEDITOR_NULL_ITEM The buffer is NULL. DtEDITOR_INSUFFICIENT_MEMORY Not enough system memory is available to insert the data. EXAMPLES
The following code segment sets the contents of a DtEditor widget to ``The quick brown fox.'' Widget editor; DtEditorContentRec cr; DtEditorErrorCode status; char *sampleString1="The brown fox", *sampleString2=" quick"; cr.type = DtEDITOR_TEXT; cr.value.string = sampleString1; status = DtEditorSetContents(editor, &cr); if (status != DtEDITOR_NO_ERRORS && status != DtEDITOR_NULLS_REMOVED) { printf("Unable to set contents of the widget "); } else { /* * Move the insertion cursor so it is after the * letter 'e' in "The". */ DtEditorSetInsertionCursorPosition(editor, 2); cr.type = DtEDITOR_TEXT; cr.data.string = sampleString2; status = DtEditorInsert(editor, &cr); if (status != DtEDITOR_NO_ERRORS) printf("Unable to insert into the contents of the widget "); } APPLICATION USAGE
If the data is in a disk file, rather than in memory, the application should use DtEditorInsertFromFile(3). SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorAppend(3), DtEditorAppendFromFile(3), DtEditorGetContents(3), DtEditorInsertFromFile(3), DtEditorReplace(3), DtEditorReplaceFromFile(3), DtEditorSaveContentsToFile(3), DtEditorSetContents(3), DtEditorGetInsertionPosition(3), DtEditorSetInsertionPosition(3), DtEditorSetContentsFromFile(3). DtEditorInsert(library call)