vi is a text editor of the Unix operating system.

learn more… | top users | synonyms

3
votes
3answers
2k views

How to copy and paste between cygwin's vi/emacs and windows clipboard?

I tried to paste what I copied in windows clipboard into cygwin's vi or emacs, and it doesn't seem to work with yy (vi) or M-w (emacs). Is there a way to do it? I learned that /etc/clipboard has the ...
1
vote
2answers
160 views

need to get rid of strange symbols in text

I need to process the following text to get rid of the strange symbols such as: â<80><99> â<80><9c> â<80>? Example text: With the mystery unexplained, the Hyatt ...
0
votes
2answers
23 views

vi copy entire line in PuTTY

I have a very long XML string in a line of a log in vi/PuTTY. It is too long to drag the mouse over to copy to clipboard. Is there a shortcut to select/copy to clipboard the entire line? I do not want ...
0
votes
2answers
80 views

Notepad++ visibility for BOM

How to use the 6.2.3 version of Notepad++.I want to know how to make visible of BOM chanracters.I tried with menu list available but no use. But those characters are available only at Linux ...
0
votes
2answers
51 views

In vi, how can I navigate to the function declaration?

In Vi, if I am in the middle of a function, how can I navigate back to the function declaration?
-1
votes
2answers
34 views

Can I remove a file frome inside` vi `?

I want to open several files with vi or even less and delete those I don't care without going back to the shell and go to the next.
0
votes
1answer
19 views

How to add a prefix to every row of a particular column in a csv file via command line on linux

So basically i am trying to achieve the following.    File before editing.  column-1,   column-2,  column-3,  column-4,  column-5 Row-1-c1, ...
0
votes
1answer
17 views

inputrc windows for ipdb kybinding

I am trying to get vi bindings for python debugger ipdb. I am not running cygwin's python but the windows version from the dos command prompt. I have tried creating .inputrc in my %HOMEPATH% ...
0
votes
1answer
23 views

What does “vi-move” keymap in Bash's vi mode actually do?

The keymap section in the Bash Reference Manual says that one of the acceptable options is "vi-move". There doesn't seem to be any description for what this corresponds to. I'm well acquainted with ...
0
votes
1answer
162 views

How to find special characters in Linux Vim

I want to find special characters in a text file. It is known that the UTF-8 encoded file contains Chinese characters , "-", "^A"(control-A, which is one of special characters), numbers, ...
0
votes
1answer
63 views

Creating a file through a dangling symlink with vi

This is the content of my typescript file, /mac>ln -s non_exist ~/link /mac>vi ~/link Hi! I am a link. /mac>cat ~/link Hi! I am a link. /mac>cat non_exist cat: non_exist: No such file or ...
0
votes
1answer
46 views

When I try to change mode in VI it prompts ^[ char

I am using FreeBsd 9 and I need to use Vi. My problem related with the changing mode (command to insert or insert to command) in VI. I know that I need to use ESC key to change mode. But in Insert ...
0
votes
1answer
459 views

Remap shift-tab to tab in bash/screen/putty in Linux?

Well I use vi-mode in bash via the set -o vi command. What's annoying is when I'm typing words in capital then try to complete using tab but don't release the shift-key fast enough, it brings me out ...
0
votes
1answer
294 views

iTerm2 Terminal Too Wide Error

I am using iTerm2 to ssh to various servers. When i use VI to edit a file i get an error that reads 'Terminal Too Wide.' To fix this I use the following command 'stty columns 120.' Is there a ...
-1
votes
1answer
70 views

When editing hosts file with vi , the added line gets repeated ad infinitum

Sometimes when I edit the hosts file by adding a new line, and when I do Esc, :, W, Q to save and exit, that line gets repeated infinite times in the file, and then gets saved. What am I doing wrong? ...
-1
votes
1answer
175 views

Cannot use vi editor

When I try to launch vi using vi or vim, it fails to start. ozzesh:~ # clear ozzesh:~ # vi ozzesh:~ # echo $? 0 ozzesh:~ # The above vi / vim command can't launch vi.
1
vote
0answers
90 views

Tmux and Vi in PuTTY = No arrow keys in Vi

I'm using PuTTY as my terminal with tmux. At first I couldn't resize panes so based on this thread I added the below to my .tmux.conf" set -g terminal-overrides ...
1
vote
0answers
346 views

bash vi key bindings: Can I map keys? Display mode (insert vs command)?

I am a long time vi(m) user and recently made the switch to using vi key binding in bash. I can already tell that this will be an improvement, but I would like to customize a few things to really ...
1
vote
0answers
76 views

How do I set the meta key with the meta convert feature in most *nix terminals?

.Xdefaults: xterm*eightBitInput: false This command apparently allows you to use a meta key + something to enter vi editing mode in a linux terminal. But what is the meta key and how do you set the ...
0
votes
0answers
21 views

with rlwrap vi file edit not happening

Am using rlwrap,with that history fetch commands editing works fine. But in vi mode am not able to edit the file, and not able to exit from vi mode. I added following entries in inputrc, set ...
0
votes
0answers
318 views

Vim shell bindings (set -o vi) on iTerm2

Trouble with history when using bash vi bindings on iTerm2 on Lion. (I had the same problem with iTerm when I switched to Lion.) Hard to explain exactly, but when I hit k to go to most recent ...
0
votes
0answers
227 views

Why can't I open a text file I just created?

I'm on Fedora distro server and OSX on Mac as client connected via crossover cable using a local IP. Fedora is serving web pages and the Mac is browsing and connected via ssh on the terminal. I was ...