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


ADVERTISEMENT

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

Ubuntu :: Text Editor Column Editor And Regex Search/replace, Incrementing Number Insert?

Jul 25, 2011

On windows I really only used Notepad++ as my text editor, it had two features that I loved.What I need to accomplish is what I would do with Notepad++ column editor.I could have like 100 lines, and place the cursor at a column, and goto edit>column editor, and I could insert an incrementing number. (I could also pad the incrementing number with 0s, this was GREAT for making batch files among other things.)So each line at that column had a number higher than the previous line.The other feature that I used sometimes was a search/replace with regex patterns.Does anyone know of an editor that has those features for linux? I am mostly after the column editor insert feature but if you know of one with both features that would rock.

View 1 Replies View Related

OpenSUSE :: Change Default Command Line Editor?

Mar 1, 2010

I want to change the default command line editor from vim to nano, so for example when I type "visudo", I want it to user nano. In Ubuntu this can be easily done by using "update-alternatives --config editor", but openUSE doesn't have an editor-option

View 4 Replies View Related

OpenSUSE :: Change The Number Of Characters Per Line For Konsole?

Dec 21, 2010

Probably an easy question but my googlefu is weak. How do I change the number of characters per line for konsole?

View 6 Replies View Related

OpenSUSE Install :: Maximum Number Of X Display Failures Reached?

May 4, 2009

I tried ubuntu for a few weeks, but I couldn't get the nvidia drivers to work, I tried everything. So, I got sick of that, and went to download OpenSuse, which seems to be even nicer (..... ) I downloaded the 11.1 liveCD (gnome) from here. I nicley got the welcome screen, and the option screen (liveCD, check errors etc.). I chose LiveCD and it started booting, I got the splash screen with the loading bar, and after it completely loaded, the screen turns black with a lot of messages and at the end:

Code:
GdmLocalDisplayFactory: Maximum number of X display failures reached: Check X server log for errors.
Great, I hoped for better luck after Ubuntu..
My sys. specs:
Asus F3Sc 32bit
Intel CentrinoDuo

[Code]...

View 2 Replies View Related

Programming :: Insert Line Using Sed Or Awk At Line Using Line Number As Variable

Jul 25, 2011

I want to insert a line at a particular line number using sed or awk. where line number is not fixed and is in form of variable.

I want to use variable in sed or awk command.I tried something like below, but no luck.

View 7 Replies View Related

Ubuntu :: Number Key Pad - Change [Ctrl]+[Shift]+[U]

Mar 24, 2011

I find it abit difficult to press this sequence with one had so i can then type the key code I want on my number key pad, is there any way I can change it to something like [Alt] or [Super] or [Super]+[Alt]

View 2 Replies View Related

General :: Find Out The Serial Number Of Hard Disk Through Command Line On OpenSuse 11.2 ?

Jul 12, 2010

I read this thread but

Code:
anisha@linux-uitj:~> su
Password:

[code]...

View 14 Replies View Related

General :: Know Which Display Number For The Variable DISPLAY To Be Exported When Ssh To Server?

Dec 26, 2010

When i ssh to server using -X, i always confuse about which display number i should export. It seems to me sometimes the display number has been used by something, so what i can do is only

export DISPLAY=localhost:0 && xclock
export DISPLAY=localhost:1 && xclock
export DISPLAY=localhost:2 && xclock

[code]....

View 1 Replies View Related

Fedora :: Gnome-terminal Cursor Bug In Jove Editor?

Apr 3, 2010

I use an ancient text editor - Jove - that I maintain and update myself. It has worked fine on Fedora 6, 7 and 8 under gnome-terminal (known to the Jove editor as xterm). I just installed Fedora 12. When moving around a file being edited, the cursor often 'replicates' itself into a series of blocks (or underlines, depending on the cursor type setting) that seem to correspond to tab-stops. I initially thought it was stumbling on TABs, but it does this weirdness on long strings of blanks, as well. Clearing and redrawing the screen cleans things up until the next movement command.

I _intensively_ checked the code for anything that might be sensitive to the new termcap strings that have come with F12, but nothing. I could live with this if the underline cursor blinked so that I could SEE it in text, but alas, there ain't a blinking cursor. Just found out how to get the cursor blinking on another thread. But, I'd _still_ like go get the 'block' to work right. I compared the termcaps used by Jove in LF8 and LF9 and they were identical. Since the "7-block-wide" cursor bug happens in LF9, 10, 11, and 12 but not in LF8, I can confidently conclude that support for termcap/terminfo has been broken as of Fedora 9. And people ask me why I have four computers. (So I can run F8 F9 and F12 and compare their performance!).

View 2 Replies View Related

Programming :: Create File Listing In C++ That Will Generate Line Number On Every Line Of Code

Apr 11, 2010

I have a project due for my Intro to C++ class and we are suppose to generate a file listing that will take an input of a C++ source code with .cpp extension and make a copy of it with a .lst extention that will have a line number preceding each and every line.

View 12 Replies View Related

General :: Getting The Line Of String From Previous Pipe Output By Line Number?

Feb 8, 2010

After running the following command, I get:

[root@yukiko /]# find / -iname .bashrc
/home/clamav/.bashrc
/home/vpopmail/.bashrc
/etc/skel/.bashrc
/root/.bashrc

But I would like to have a command that prints a specific line by supplying the command with the line number, for example:

[root@yukiko /]# find / -iname .bashrc | getline(2)
/home/vpopmail/.bashrc

Is there such a command on CentOS?

View 3 Replies View Related

General :: Sort By Line Size (number Of Characters In A Line)?

Jan 8, 2010

I want to sort a number of lines based on their size:

data:
-------
12345678
87654321
1234

[code]....

Should output as:
-----------------
1
2
12
21

[code]....

But i'm gettings this with sort
----------------
1
12
123
1234

[code]....

Can we sort the above "data" text, based on "number of characters" instead of "character order"?

View 8 Replies View Related

General :: How To Delete A Line At Specific Line Number

Jun 15, 2010

I m writing a script to delete a line at particular location.

But i m unable to use variable for specifying line number.

For example.

Code:

works fine and deletes 7th line from my file

But

Code:

gives following error.

Code:

View 7 Replies View Related

OpenSUSE :: Ctrl+z And Ctrl+c Do Not Work Without A Third Keystroke

Feb 3, 2010

I just spent a few days ripping out all the broken/buggy apps that are in the opensuse 11.2 official repos so I can finally get working software(openoffice, thunderbird, wine, eclipse, rubygems, rails, and a few others required getting the "official" versions from their respective websites to avoid strange behavior and outright broken functionality).

All of which makes updating more annoying and time-consuming. Why are opensuse packages so different anyway? Anyway, the last thing that I have noticed to fix is Konsole. For some really bizarre reason ctrl+z and ctrl+c do not work without a third keystroke: enter.Maybe this is something new with the KDE team, since they seem bent on making simple things that already work more complex, but given my experience with crappy packages in the suse repos, I am thinking this is the problem. I have looked over all the config settings that I can find and nothing fixes this affront to productivity.

View 1 Replies View Related

OpenSUSE :: Konqueror Can't Cut'n'paste With Ctrl C, Ctrl V?

Mar 7, 2010

I've been using Kaggregator in KDE-PIM, which uses Konqueror as the browserto go to links from Kaggregator.Unfortunately, Konqueror no longer seems tobe able to Copy highlighted material with Ctrl C, the way we've done it forever.Is this a setting I've missed? Or is this a new "feature" in Konqueror?

View 2 Replies View Related

General :: Sed - Print Line Number Along With The Line?

Jan 30, 2011

I want to print the line number with the pattern of the line on a same line using multi-patterns in sed. But i don't know how to do it. For example, I have a file

abc
def
ghi

I want to print

1 abc
2 def
3 ghi

View 6 Replies View Related

Fedora :: Enable Ctrl Alt Backspace Command Line?

Jan 27, 2011

Since I wasn't able to figure out how to enable ctrl alt backspace in kde I thought I would explain how to do it from the command line. Open /etc/X11/xorg.conf as root. Then add this to the file.

Code:
Section "ServerFlags"
Option "DontZap" "false"
EndSection
http://fedoraproject.org/wiki/Fedora..._release_notes

View 3 Replies View Related

General :: Access Command-line Tty1 With Ctrl-Alt-F1?

Jun 14, 2011

I have Red Hat 5.4, and I'm trying to log in using tty1 by pressing Ctrl-Shift-F1. I get to the text login screen, my banner displays, but when I try to log in as root, the banner just displays again and it asks me to log in.

It does not say that my password is incorrect, just asks me log in as if the previous exchange never happened. I have added tty1 to /etc/securetty, and all the other tty's and vc/1, vc/2, etc...in an attempt to get something to work. I recently started using PAM for password authentication, and the pam_securetty.so line is set correctly in /etc/pam.d/login. Any idea why I can't log in? Did I miss something I have to add?

View 1 Replies View Related

General :: Sed To Display The Pattern String - The Line Above It And The First Line Of That Para

Mar 30, 2011

I need to grep for a particular string and if found need to display the line containing that string, the line above that and also the first line of that paragraph.

Can this be done via sed.

Eg, My Paragraphs

OA connectA

Enclosure:

Interconnect Module #6 Status:

Here, if I grep for Critical, it should display the following

Similarly if I grep for Degraded, it should display

View 3 Replies View Related

General :: Reverse Of Ctrl+alt+F1 / Get Back To The Windows Display Manager?

Jan 31, 2010

The full screen console is brought up by ctrl+alt+F1. How do you get back to the windows display manager? Is it necessary to reboot?I am running Ubuntu 9.10 with Gnome.

View 3 Replies View Related

Ubuntu :: Map Ctrl+W In Hebrew Layout(which Is Actually A Ctrl+') To Be A Ctrl+w?

Jan 5, 2010

I have 3 layouts: USA, Russian and Hebrew. In Hebrew the W key is mapped to apostrophe, so Ctrl+W in Hebrew layout doesn't close tabs in Firefox. There is no workaround for it as I see by now, so I am trying to get it work this way:I want to map Ctrl+W in Hebrew layout(which is actually a Ctrl+') to be a Ctrl+w. Here is what I got from xmodmap:Code:$ xmodmap -pke | grep 25keycode 25 = w W Cyrillic_tse Cyrillic_TSE apostrophe WAs you can see, there are pairs for each layout, each pair tells what happens without and with the Shift key pressed.

View 2 Replies View Related

General :: Disable Ctrl+C, Ctrl+V, Ctrl+X In Rdesktop?

Dec 27, 2010

I am doing a project on rdesktop. My aim is to setup a write/copy protected session. I have made rdesktop connection between two Linux machines using Xrdp.Next I want to disable the ctrl+x,ctrl+v keys and the cut and copy option in mouse right click at client side

View 1 Replies View Related

Programming :: Recognizing Ctrl+c,ctrl+l,ctrl+d In C Programs?

Aug 19, 2009

i am using gcc 4.3i need to recognize ctrl+c,ctrl+l,ctrl+d in my C program without terminating the program when i get a ctrl+c...

View 1 Replies View Related

Debian Hardware :: Use Nano Editor To Set Which Display To Use?

Nov 14, 2015

debian 8 64bit
lxde

On a notebook mainboard, that has no display, a vga display is connected, I want to set mainboard display to turned off and vga display turned on and primary. Keeping the settings after restarting.

In lxde there is 'display settings'. If I set 'turn off laptop lcd and use external monitor only vga', it does not keep the setting, not even until the computer is turned off. It defaults to the setting with both displays turned on.

I got this link [URL] ....

I cannot find the location of the file.

Using nano editor on a file, can I set the vga display to get the only and primary display also after restarting the mainboard? What file and location?

Should I edit text to
xrandr --output VGA1 --mode 1024x768 --rate 60
xrandr --output VGA1 --primary

What do I write to turn off lvds display? Will the settings apply such that the debian login screen will show on the vga display when starting the mainboard?

View 7 Replies View Related

Fedora :: Ushare Configuration - Last Line Stop Process In The Terminal Via Ctrl+C

May 30, 2009

I just installed ushare on Fedora 10 (yum install ushare is all it took to do), and followed the guidance then to configure sharing for an Xbox 360, [URL] the code below. Notice the last line...due to stopping process in the terminal via Ctrl+C. It appears to me, based on this ending UPNP sharing, that the first line will need to be run each time want to turn on sharing, right? I thought this would simply configure ushare sharing one time, and possibly intiate some sort of file sharing service on each boot, but this appears not to be the case. If I am right, does anyone know how I can develop a script to run at boot to allow ushare to open sharing and keep it open?

[Code]....

View 3 Replies View Related

Ubuntu :: Text Editor With End-of-line Options

Jan 10, 2010

I'm an Ubuntu newbie and I'm looking for a text editor that has options for DOS-like or Unix-like end of line characters. I'm used to working with Notepad++ for windows that has an option for Unix/Mac/DOS end-of-line characters.It would be great if I could find a text editor for Ubuntu that has this built in or as a plugin instead of running the file through a converter.

View 3 Replies View Related

Ubuntu :: Command Line Tag Editor For Ogg Files?

Oct 8, 2010

I had a great system going with a bash script to update all of my mp3 files' genre tags. Now that my music collection is ogg, id3v2 doesn't work.

Can anyone recommend a command line tool to edit tags for ogg files please?

View 6 Replies View Related

Ubuntu :: Command Line Partition Editor?

Feb 19, 2011

I have a 500G HD with several partitions. I have just added another exact 500G HD and would like to copy the partition table from the first HD to the new HD.What is a good command line partition editor to get the job done? All of my partitions are ext4. I have looked at parted but the man pages says it does not support ext3, so I guess it will not work with ext4 either.What I am ultimately going to do is to set these two HD in a RAID0 configuration without having to re-install Karmic.

View 5 Replies View Related







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