473,513 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Controlling the cusor in the file browser in Vim

21 New Member
From the command line I enter `vim`.
I am greeted with the Vim version number etc.
Then I type ` :e .`
I'm now in the file browser.
I get the usual long list of files,I move the cursor say to
the fourth from the top , enter the file and edit it ,so far so good.
NOW I use` ^O ` ie.` Ctrl O`. Here is the irritation -- The cursor
goes right to the bottom of the list. Is there a way of curing
this so that cursor stays at the last file opened ?
This is about the only aspect of Vim that I find annoying.
Help would be much appreciated.
Aug 23 '10 #1
4 2255
sicarie
4,677 Recognized Expert Moderator Specialist
Here's what the vi doc I found said

*CTRL-O*
CTRL-O Go to [count] Older cursor position in jump list
(not a motion command). {not in Vi}
{not available without the +jumplist feature}
Does that help? What are you trying to do when you use Ctrl+O inside the file?
Aug 31 '10 #2
pwilliams
21 New Member
Many thanks for your reply sicarie . No I'm afraid Ctrl+O does not work,as I say, it sends the cursor right to the bottom of the list ;Ctrl^ is slightly better taking the cursor to the very top of the list ; best of all so far is not a Ctrl Command but ` :Rexplore ` or ` :Rex `, this takes the cursor right back onto the name of the file that has just been exited . What I was trying to do by using Ctrl+0 within the file , was to get back from whence I came .

I have pasted the reference here:

:Rexplore This command is a little different from the others. When one
edits a file, for example by pressing <cr> when atop a file in
a netrw browser window, :Rexplore will return the display to
that of the last netrw browser window. It is a command version
of the <2-leftmouse> map (which is only available under gvim and
cooperative terms [
~
~
~
~
~
~
~
~
6,23-26 All
Sep 1 '10 #3
sicarie
4,677 Recognized Expert Moderator Specialist
So if I understand this correctly, you would like to

1) open a file through vim
2) edit or perform some action in the file
3) execute a command to return to the area/list from which you opened the file in step 1

Is that accurate?
Sep 1 '10 #4
pwilliams
21 New Member
Yes sicarie,and so far ` :Rex ` seems to be the only option.
Sep 4 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2637
by: Dan Stromberg | last post by:
Are there any reasonably secure file browser implementations for unix/linux (and perhaps MacOS X and Windows as well) written in python, that are accessed over https via a cgi script? Thanks.
6
22425
by: WindAndWaves | last post by:
Hi guys Thank you for all your previous answers. My new question is as follows: how do I create a folder/file browser in access 2003. That is, I would like the user to locate several files...
4
7680
by: redneon | last post by:
I've written a simple application which connects to an FTP server and recursively lists the contents of the directories in this server in a ListBox. What I'm wanting to do is change the ListBox and...
4
23715
by: Peter Larsen | last post by:
Hi, I want to be able to show a file browser embedded on a form - a browser which is similar to the browser you get by SHBrowseForFolder(). Is that possible ? Thank you in advance. BR Peter...
1
2482
by: jharikrishna | last post by:
Hi Frnds I am working on c#. I want the information about to click the button in textbox How to Open the file browser dailog.
1
1010
by: devil123 | last post by:
hey .. i am a beginner in visual basic ... i want a urgent help i have created a application which is having 2 text files as input ..now i have to do something like "click a button to browse...
1
2037
by: Jables | last post by:
I am looking for a solution to an online file browser. The browsing is not browsing a persons harddrive, so it is isn't really a file browser, but it is browsing a tree of strings generated by the...
2
2747
by: Tim Haughton | last post by:
In a styled WPF application, I need to write a custom file browser in C#/WPF. As it is styled differently to generic Windows apps, I cannot use the standard open file dialogs. Writing a tree or...
3
7427
by: TheSaint | last post by:
hi there, I've started to build a GUI for my Mailsweeper by the help of QT4 Designer. I came across the problem that there isn't any prebuild file browser like Kdialog. I know some other...
1
6242
by: alnino | last post by:
Hi, On a form I have a command button that allows a user to browse for a file (PDF, Word, etc…). This command button then stores a hyperlink to the file within an associated txtfield in the table....
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.