Sponsored Content
Top Forums UNIX for Dummies Questions & Answers VIM, autocomplete before a word Post 302434546 by hz_i3 on Saturday 3rd of July 2010 09:40:35 AM
Old 07-03-2010
Lightbulb VIM, autocomplete before a word

Hi there,

I'm learning PHP now. $var_name is how to declare a variable.

I was wondering if there is any convenient way in vim to autocomplete the dollar sign($) before a word.

Something like, after typing var_name, then press some key, for example Tab, to automatically add a doller sign exactly before the word var_name.

Thanks in advance.
 

10 More Discussions You Might Find Interesting

1. Linux

autocomplete - bash

Hi all I have installed Red Hat Linux Advanced Server 2.1 onto a Proliant DL580 (dual XEON 2.8GHz processors). The bash shell is not autocompleting filenames/directorynames when I hit escape twice. History (via Ctrl+r works). Is there a setting somewhere to enable this? Thanks. (2 Replies)
Discussion started by: saabir
2 Replies

2. Shell Programming and Scripting

History and AutoComplete

Hi, I enabled the Autocomplete of filename by the command set -o emacs But i couldn't enjoy the benifits of vi anymore. i.e I couldn't get the command history by pressing Esc and k. How to enjoy both of this features at a time.? Regards Karthik (3 Replies)
Discussion started by: fermisoft
3 Replies

3. UNIX for Dummies Questions & Answers

ksh autocomplete; f-secure/ssh character mapping

I'm coming from a c-shell environment where I was spoiled with the tab completion on the command line, only to find that using korn-shell I don't have this capability. The only thing I can find by googling is to use 'set filec' - but that doesn't work (and I think is only for c-shell anyway). ... (0 Replies)
Discussion started by: uacheesehead
0 Replies

4. UNIX for Dummies Questions & Answers

How to configure the AutoComplete Command

Hello All, I'm using the Solaris 8 and I'd like to know how to configure my KSH to use the double ESC to complete the command automatically. Do you know how do it?? thanks. rgs, Paulo (1 Reply)
Discussion started by: PAulo Trombetta
1 Replies

5. Shell Programming and Scripting

Shell Path Autocomplete w/ Variables

Suppose there exists a file, "/home/andrew/product/test". And suppose I set $FOO to "/home/andrew/product/"? I can't seem to type "$FOO/t" and then Escape (csh) in order to autocomplete. Is this possible in other shells? If not, then why? If so, then why can't csh do it, and how can I make... (1 Reply)
Discussion started by: acheong87
1 Replies

6. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

7. Solaris

autocomplete Path on UNIX (TRU64)

Hi, i need autocmplete file_name/dir_name by TAB key. I work on UNIX (TRU64) and I just tried to type on .profile this setting: set autolist but it doesn't work. I think it is because this command doesn't belong to this UNIX version (sure it works for example on HP-UX). I need to set it... (0 Replies)
Discussion started by: D4vid
0 Replies

8. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL. I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies

9. Shell Programming and Scripting

Tcsh complete (autocomplete) script

I cant figure out how the complete function works in tcsh. 1. I whould like it to complete after writing my_program.py with either start or stop. I have tried to do something like this in .cshrc.user: complete my_program.py \ 'c/start/' \ 'c/stop/' However i cant get it to... (1 Reply)
Discussion started by: mr_cad
1 Replies

10. Shell Programming and Scripting

Cp command autocomplete

Hi I'm still new around bash and Ubuntu, but I was expecting for the "cp" command to have an autocomplete feature like the ls command. Should it, or I'm assuming too much? In case it doesn't have by default, is there a way to enable it? Cheers (2 Replies)
Discussion started by: blackfox2015
2 Replies
EvmEventFormat(3)					     Library Functions Manual						 EvmEventFormat(3)

NAME
EvmEventFormat, EvmEventFormatFromTemplate, EvmVarFormat - Format events for display LIBRARY
EVM Support Library (libevm.so, libevm.a) SYNOPSIS
#include <evm/evm.h> EvmStatus_t EvmEventFormat( char *buffer, size_t length, EvmEvent_t event); EvmStatus_t EvmEventFormatFromTemplate( char *buffer, size_t length, EvmString_t show_template, EvmEvent_t event); EvmStatus_t EvmVarFormat( EvmEvent_t event, const char *var_name, char *buffer, size_t length, EvmBoolean_t trans- late); PARAMETERS
A pointer to a character string to receive the formatted event data. The stored string will be null-terminated, even if truncated, unless the length parameter is zero (0). The maximum length of the output string. If the formatted event is longer than length, the output is truncated. The event to be formatted. The primary template for formatting the output. The name of a variable data item contained in the event whose value is to be formatted. A Boolean value indicating whether I18N translation should be attempted on the variable value. Translation will be attempted if this parameter is EvmTRUE, the variable is of type string and includes an I18N message identifier, and the event contains I18N catalog information. DESCRIPTION
Information contained in an event must be formatted to present it in human-readable form. The event poster supplies formatting information through the event's format data item, and the routines described here provide the event formatting capability. The EvmEventFormat() routine combines the supplied event's format data item with any data items or variables specified in the event's for- mat item that are available in the event, and returns a formatted version of the event in buffer. If the event contains I18N message catalog information, and the catalog is available in the user's locale, the format string is retrieved from the message catalog if possible. If no translation is possible the format string contained in the event is used. If the event does not contain format information, a generic display of the event's name and any variables is produced. The EvmEventFormatFromTemplate() routine also formats the supplied event, but uses the supplied show_template string as its primary format- ting template. Literal characters in the show_template are transferred to the buffer unchanged. Any token of the form @item_name[%width] or @{item_name[%width]} is replaced by the value of the corresponding data item from the supplied event, if it is present. If width is supplied, the value occupies a minumum of width character positions. The item_name is the name of a standard event data item. The special string @@ is replaced by the results of applying EvmEventFormat() to the event. Refer to evmshow(1) and EvmEvent(5) for more information about formatting events for display. EvmVarFormat() retrieves a variable called var_name from the supplied event, and returns a formatted version of its value in buffer. I18N translation is applied as appropriate if the value of translate is EvmTRUE. NOTES
Floating point values are formatted using the printf(3) %.8g format specifier. RETURN VALUES
The operation was completed without error. One of the arguments to the function was invalid. A value in a structure member is invalid. An operation failed because an attempt to acquire heap memory failed. ERRORS
None FILES
None SEE ALSO
Commands: evmshow(1) Routines: EvmEventDump(3), printf(3), setlocale(3) Files: locale(4) Event Management: EVM(5) EVM Events: EvmEvent(5) Common Desktop Environment: Programmer's Guide delim off EvmEventFormat(3)
All times are GMT -4. The time now is 01:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy