vi is a text editor of the Unix operating system.

learn more… | top users | synonyms

12
votes
4answers
5k views

How can I edit all the files returned by find in vi in Linux?

Something I find myself doing a lot is running a find command and then editing all of them in vi, which looks something like this: > find . "*.txt" ./file1.txt ./file2.txt ./path/to/file3.txt >...
1
vote
1answer
649 views

Vim has unexpected key presses on startup, what could be causing this?

Whenever I open a file with vim, the vim session starts with 2c having been automatically/programmatically 'pressed'. This means that if I start off trying to move down the file by pressing j, then ...
5
votes
2answers
237 views

Escape not idempotent in zsh's vi emulation?

I have zsh configured to use vi keybindings. I've noticed some unexpected behavior with "escape". In vim (I haven't tested vanilla vi) if I hit escape twice, I can hit 'i' once to return to insert ...
6
votes
1answer
1k views

Close VIM session over ssh

I work remotely some days and I left vim open with some unsaved changes at the office. Now I'd like to save and close those sessions so I can work on those files at home. I am logged into that machine ...
0
votes
1answer
83 views

How to extend vim editor to full screen in putty?

When I use vi or vim to edit files in putty, it only shows a limited lines and columns. So how to extend the editor to full screen?