line completion in vim


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users line completion in vim
# 1  
Old 09-06-2007
PHP line completion in vim

how we achive line completion and word completion in vim editor?
# 2  
Old 09-06-2007
Not sure what "line completion" means. But for word completion, try C-x C-p. File completion: C-x C-f.
# 3  
Old 09-06-2007
Hope these wil help you alot...in vi or vim editor

w move right one word or group of punctuation marks
b move left one word or group of punctuation marks
W move right one word
B move left one word
E move to the end of a word

0 move to the beginning of current lune
$ move to the end of current line
RETURN move to first non-white space character at beginning of next line
-(minus) move to first non-whitespace character at beginning of previous line
H move to top line on screen
L move to bottom line on screen
M move to middle line on screen
G move to end of file
x G moves to line number x
/ move to first character in line marked with / move to previous location
(counteracts G or simple search)


THanks !!Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Vim line length...

The vi(m) text editor... Google is not my friend here... I have already found out that it is possible to save a pure text file without the '0x0A' newline character at the very end of the file but I can't find anything on the next question. I have written a raw audio file to quantised pure... (6 Replies)
Discussion started by: wisecracker
6 Replies

2. UNIX for Dummies Questions & Answers

vim copy line and paste at the beginning, middle, and end of another line

How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies

3. UNIX for Dummies Questions & Answers

VIM search and replace with line breaks in both the target and replacement text

Hi, Ive spent ages trying to find an explanation for how to do this on the web, but now feel like I'm :wall: I would like to change each occurence (there are many within my script) of the following: to in Vim. I know how to search and replace when it is just single lines... (2 Replies)
Discussion started by: blueade7
2 Replies

4. 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

5. Shell Programming and Scripting

bash completion

hello, I have been trying for a couple days to figure this out to no avail. I am converting some csh code to bash. I have converted everything except the completion code. #bashrc (I set this alias in my bashrc) alias test='source ${PATH}/test.sh' #${PATH}/test.sh (returns some aliases and... (0 Replies)
Discussion started by: platypuus
0 Replies

6. UNIX for Advanced & Expert Users

vim editor -> uncounted new line

Hi, I entered the following text in a new file through vim: "Four score and seven years ago" saved and exit. When I looked at the file size, it was 31B, although is supposed to be 30. I reedited the file (again with vim) to check for errors, but everything seemed fine. When I opened the file... (3 Replies)
Discussion started by: prostiiinet
3 Replies

7. UNIX for Dummies Questions & Answers

VIM: replace a character in the middle of line

exmaple, i need to replace the number "5" from all lines below with "X"? What is the useful vim command that i can apply for.. ddpadsgg506xghssuyj ddpadsgag546xghssuys ddsadsgaag596xghssuy_te ddsadsgag506xghssuy_pe ddsadsgagc526xghssuys ddsads506ighssuys ddsadsgag506pghssuyk (1 Reply)
Discussion started by: 793589
1 Replies

8. UNIX for Advanced & Expert Users

how to go previous line in vim

hi, suppose my cursor is on 15 th line in vim i want to go 105 th line and directly come to 15 line from there is any shot key in vim to come directly to previous line ? (2 Replies)
Discussion started by: useless79
2 Replies

9. UNIX for Dummies Questions & Answers

remember last visited line in vim

hi, I know we can do this; but dont know how.. I open a file using vim..browse thru it and then say :wq after reaching some line; The next time I open the same file, I want vim to position the cursor on the line where I left last time; anyone? (2 Replies)
Discussion started by: spopuri
2 Replies

10. UNIX for Dummies Questions & Answers

vim as command line editor

Here is my problem, I manage a SunOs 5.8 Server, vi is the default command line editor, I have a line on each users .kshrc profile as follows: export EDITOR=/bin/vi I want to use vim as the command line editor, the below line doesn't work export EDITOR=/bin/vim Thank you (1 Reply)
Discussion started by: tony3101
1 Replies
Login or Register to Ask a Question