General :: Get The Cursor Position Line At The Mid Of The Windows In Vim?

Mar 28, 2010

Suppose the cursor position line at bottom or top. What's the vim command to get the cursor position line at the mid of the windows in vim?

View 5 Replies


ADVERTISEMENT

General :: Viminfo - Get Cygwin Vim To Act Like CentOS Vim And Prior Cursor Position

Oct 27, 2010

In my CentOS configuration, when I use vim6.3 to edit a file, then close it, and re-open it, my cursor starts out at the line where I last left off. In my cygwin (on Windows) configuration, when I use vim7.3, I don't get this behavior. The viminfo does exist and does seem to get read (because if I type '0 it will go to my last cursor location - but that is globally and could change the file being edited). I've also looked at the .viminfo file and see it getting updated as expected. In my .vimrc file, I have this:

Quote: set viminfo='100,<50,f1,"500,/100,:100

Note that on the CentOS side if I open foo, then I open bar, then I open foo again, my cursor is in the right place for foo, whereas on cygwin if I do this, my cursor would be at the 1st line of foo.. If I were to type '0, it would actually switch to editing bar and put the cursor where I last left off. Anyhow, this all boils down to asking how I get my cygwin vim to act like my CentOS vim.

View 3 Replies View Related

General :: Find The Position Of The First Space In A Line?

Aug 8, 2011

I am trying to edit a large bunch of files. Each file has four columns and I want to get rid of the first one, but in each line the number of the first column changes. the number in the first column ranges from 1 digit to 5. For example

1 aaaaa bbbbbb ccccc
23 aaaaa bbbbbb ccccc
15343 aaaaa bbbbbb ccccc

and the desired format would be

aaaaa bbbbbb ccccc
aaaaa bbbbbb ccccc
aaaaa bbbbbb ccccc

View 2 Replies View Related

Programming :: Set Indent In .emacs To Enable New Line Starts From The Same Position Of Previous Line?

Dec 29, 2010

How can I set indent in .emacs to enable my new line starts from the same position of previous line?

like this;

Hello world <enter>
Second Hello world // "S" starts right under first line's "H"

View 4 Replies View Related

Software :: Gedit Cursor Saves Position

Aug 30, 2010

When I save txt document in "gedit", it also saves cursor's position. How do I disable this feature?

View 1 Replies View Related

Programming :: BASH Sort List By End Of Line To X Position In Each Line?

Aug 18, 2010

I'm trying to make another file annotation script a little speedier than it has been by the up-until-now proven method of checking the last four characters in a filename before the "dot" (eg .jpg, .psd) against a list of known IPTC categories and Exiv2 command files. It occurred to me that if one script generated a list of files in directory foo, and the same or another script sorted that list by that four-letter tag,then that list could be used(instead of a for/do/done loop on the real files in the folder) by the command-file-matching script to "vomit out" which annotator file would go with file nastynewfile.jpg, f'r'instance. The script I had been using for this task looks like this:

Code:

while read 'line';
do
sp=$(echo $line)
vc=$(echo $sp | cut -d"," -f1)
cv=$(echo $sp | cut -d"," -f2)

[code]....

Where I seem to be stuck is with how to sort the lines in templist, which may be any number of different lengths, from back to front. sort -k looked promising, except it seems only to work the other way round. I thought of invoking a

Code:

q=$(expr length $line); echo $q
n=$[q-8]; echo $n

kind of thing, but that presented the problems of how to sort by those, how to tell sort where to find them (grep?) and how to "stitch them back in" to the original list, which is what I want to sort in the first place.

View 14 Replies View Related

General :: Vi Editor - Move Cursor To A Specified Line Number?

Dec 6, 2010

I am using Vi editor for editing and configuring my file.I am facing a little problem when there is long file like 3000 lines. Normally i use

Code:

:set number

in vi editor to visible my line number.The problem is when i have to go in the top of the file like say line number one I use k for it and to move down I use j which is too much time consuming. How can i jump directly my cursor to line number 2333 or line number 2600.

View 4 Replies View Related

General :: Bring Cursor To 1st Char In Current Line (Command Mode)

Dec 4, 2010

Just in case someone can reply a silly question, I've quite forgot the vi/vim command to bring the cursor to the 1st char in the current line. I do remember that for bringing it to EOL is '$'.

View 14 Replies View Related

Ubuntu :: Control Mouse Position From Command Line?

May 17, 2010

Is it possible to control the mouse position from the command line? I want to centre the pointer in the middle of the screen

View 8 Replies View Related

General :: Capture Cursor Shape Using X-windows API?

Sep 29, 2010

How do capture current cursor shape using X11/X-Windows? How do get current cursor image (RGB or else)using X11/X-Windows?

View 3 Replies View Related

Ubuntu :: Do Windows Directories Change Position?

Jan 30, 2011

Since I have my mp3s on a windows directory (C:UsersmagodiafanoMusic) I used to create a link in order to have a direct access to this directory from the ubuntu's desktop. The problem is that everytime I log into the pc, the link does not work anymore as if the position of the directory was changed. So I have a lot of problems with the library of rhythmbox too. What is my error?

View 9 Replies View Related

Fedora :: Run Dd To Delete The Line Which The Cursor Locates?

Sep 21, 2009

when I running vi ,I'd like to run some command(such as dd,p,/word),but I know little of these command,Can I get a manual of that by run some command ,Do you understand what I said,For example,I can run dd to delete the line which the cursor locates,Is there a command (maybe "help" or other)to show the help information about the operation on vim in this condition,not in bash ,not "man vi",

View 6 Replies View Related

Debian Multimedia :: Remember Size And Position Windows With Compiz?

Sep 17, 2010

In KDE(4) you can set windows to remember their size and position when starting, how is the same accomplished with compiz ?

View 2 Replies View Related

OpenSUSE :: Vi Editor Ctrl-g Does Not Display Cursor Line Number

Aug 5, 2010

On Solaris UNIX, pressing Ctrl-g displays the line number for the cursor position.

i.e. line 1 0f n* --0%--

But, on suse Ctrl-g on displays the percentage only, not the hard line number

i.e. n* lines --8%--

Anyway I can make vi display hard line just like Solaris?

View 6 Replies View Related

Ubuntu :: Getting Inkscape Ver. 0.48 - Cursor Doesn't Line Up With The Tool On Screen

Aug 30, 2010

I have Inkscape 0.48 running on a windows xp laptop, but I can't find a way of getting it onto my desktop system running Ubuntu 8.04, which I need to run EMC2.

If I use apt-get to download the latest version, it gets 0.46, which has a cursor/tool bug in it.(The cursor doesn't line up with the tool on screen).

Is it possible for me to successfully transfer 0.48 via a memory stick to the desktop, without jeopardizing the Ubuntu system, or is there some other way ?

View 1 Replies View Related

General :: Cache File's Name And HD Position?

Jul 1, 2011

I'd like to improve my computer's performance by storing files' system location (e.g.: /home/user/speech.odt) and HD position (head, sector, etc) and do the computer use that info from ram memory.I have a directory with several files and when I cd and ls it, it takes a while to the computer answer me. Plus, it would return immidiate find results.

View 2 Replies View Related

General :: Ubuntu Forgets Program Position?

Jun 29, 2010

After installing Ubuntu 10.04 on an nvidia dualmonitor system there is a weird behavior. Every program starts in the middle of the two dual monitors (overlapping both).

View 1 Replies View Related

General :: Why Is Vim Not Remembering Position In File Between Runs?

Dec 3, 2010

I'm using vim 7.2.330 on 64 bit ubuntu 10.04, sometime in the last week every time I reopen a file it places the cursor at the top of the file. I can see in ~/.viminfo where it's saving the last position used, but it doesn't seem to be honoring it.

View 1 Replies View Related

General :: Launching ZENITY On A Given Position On The X11 Screen?

Dec 5, 2010

how to pass the position to zenity to be launched specific place of X11? No info are given [URL]

View 3 Replies View Related

General :: Physically Adjust Position Of Dashboard?

May 29, 2011

I'm new to the Linux OS, and this is also my first post on this form. My question is Can you physically adjust the position of the dashboard? I'm familiar with Mac OS X where you could "Physically" adjust to the top, left, right or originally at the bottom. Is it possible and if it is, can someone explain to me the process on going about that?

View 7 Replies View Related

General :: Numerical Encoding Of Text, By Position?

Apr 26, 2010

I have a file of words and want to encode them in a numeric form, based on position.This is best explained by example:
PEOPLE ==> 123152

Reading left to right:
P was first encountered at position 1 so it is encoded as 1.
E was first encountered at position 2 so it is encoded as 2.

[code]...

View 5 Replies View Related

Debian :: Blinking Cursor And Disappearing Behind Open Windows

Apr 1, 2015

My cursor blinks when hovering over the likes of web page tabs and disappears behind open windows especially if im in system settings its hard to know where my cursor is sometimes, its really putting me off and i don't want to install different distro because of it, i really like debian even being beginner with debian.

View 4 Replies View Related

Fedora :: Change The Mouse Cursor And Windows Color?

Feb 21, 2010

stopped using fedora and I can't remember the name of softwares which allow to change the mouse cursor, and others which allows to change the colors of the windows

View 2 Replies View Related

General :: KDE Window - Programs Does Not Remember Their Position/size?

Nov 15, 2010

I lastly used KDE (version 1.x ). Now I'm using KDE 3.5 for several weeks and one thing really annoys me: there are a lot of programs that don't remember their last window position and/or size. They always default to a specific location/size when I close and open them again. I give you some examples:

Program that doesn't remember anything:
- Konqueror

Program that remembers window size, but not position:
- KMail

Nice Program that remembers everything:
- Basket Note Pads

Is there a way to tell these programs to remember their position/size?And a second question about konqueror: Can I tell konqueror to remember the view mode? I prefer MultiColumn view, but it always defaults to Icon view.

View 11 Replies View Related

General :: Vim - String Replacement From Current Position To End Of File?

Jan 24, 2011

What is the vim command I have to use when I want to perform a text substitution not on the current line or on the whole document or on lines from number x to number y but just from the current cursor position down to the end (or up to the beginning) of the document?

View 1 Replies View Related

General :: Accessing Arrays Position In A Split String?

Mar 10, 2011

I've a string "this.is.a.name", and I would like to put it in an array. But, I've like to print the output of the array as:

Code:
echo ${array[0]}
echo ${array[1]}
echo ${array[2]}
echo ${array[3]}
I've tried with

[Code]....

View 4 Replies View Related

General :: Find The Failed Position Of CD While Taking Backup?

Aug 7, 2010

I am working in ubuntu 9.x (linux karmic kernal) .I have restored the content from CD to hard disk. In the mid way of this process, it was failed. I would like to know this below thiongs,

1) which position it got failed ?

2)Any offset option is there in linux to point the particular CD position ?

View 1 Replies View Related

General :: How To Change Default Position Of Cairo Clock

Feb 8, 2010

I am using ubuntu. I have Cairo clock on my startup list, but after logging in cairo-clock appears on left top corner, but as it is the position reserved for computer, my home, mounted volumes etc. So I want to change default position of cairo-clock to left but there is no such option in the preferences of cairo-clock. My cairo-clock version is cairo-clock 0.3.4. Can I edit any config file of cairo-clock.

View 1 Replies View Related

Ubuntu :: Compiz: Mouse Cursor Moves When Switching Windows?

Mar 30, 2011

I've been looking for an option to turn off for this, but haven't found any, and Google hasn't been helpful.When I switch windows with alt-tab, or a window requests focus, compiz warps my mouse cursor to that window. How do I make it stop?

View 1 Replies View Related

Ubuntu :: Cut Random Text And When The Cursor Focus Jumps Back To The Location Of The Cursor On The Screen

Jul 1, 2010

Im running netbook remix on a eeepc 1005ha. It is my only OS and Im loving it except for one obnoxious quirk. It randomly cuts text and randomly pastes it. If there is something in the clipboard, it will usually paste that, but just as often it will cut random text and paste that. The pastes occur when the cursor focus jumps back to the location of the cursor on the screen. I dont know a better way to phrase that, but thats what it is doing. Say... I put the cursor over the word "pastes" in the paragraph above... even though Im typing in this paragraph, the focus will "jump" to the cursors physical locale (the word "pastes") and then paste whatever is in the clipboard. If the cursor is outside of the textbox, the page will jump to the bottom.

This behavior occurs across programs and in any place text can be entered. I can find no rhyme or reason for it... it just... happens. Sometimes even when Im away from my computer, so its not like Im hitting some key on accident. I have loved everything about this ubuntu distro, but this issue is just toany obnoxious. Writing psych papers on this thing is going to be near impossible if I dont get this fixed before I go back to school.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved