Questions tagged [vim]

Vim is an open-source text editor with a steep learning curve that leads to high efficiency in many tasks related to text edition. If you wish to start with vim, try to run “vimtutor”, which will teach you basic commands.

Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.

Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.

Visit the home page of vim or visit the Official Vim Tips Wiki.

95 questions
0
votes
1 answer

Is it possible to remove the SSH delay in order to work with VIM through it?

I'm trying to write programs using VIM on a remote server. The server is necessary because I'm in a system without VIM (iOS). When I connect through SSH, there is a visible delay of 200~600ms, which makes coding barely unpractical. Is there any way…
torvic
  • 1
0
votes
1 answer

Nerdtree, Rake 'require' cannot load file error

Gents, When trying to install NERDTree, I get the following error, suggestions? Running from an AWS Amazon linux ami: drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 2 10:33 autoload drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 2 10:23 doc drwxrwxr-x 2…
CMag
  • 707
  • 2
  • 11
  • 32
0
votes
1 answer

How do I detect and possibly change the encryption algorithm used by Vim's "encrypt" mode?

I'd like to start using "vim -X" to store encrypted text files. This is a nice introduction on how to do it: http://www.techrepublic.com/blog/security/vim-offers-strong-file-encryption-with-blowfish/4870 However, how do I tell for sure what…
Peter Groves
  • 275
  • 1
  • 2
  • 6
0
votes
2 answers

Unable find the right encoding for a HTML -file in Vim

I see alt text http://files.getdropbox.com/u/175564/bug-enc.png where all contents is in one line. It seems that this is the reason of bad encoding. I can see the characters ^M. How can you get the encoding right in Vim?
0
votes
3 answers

Unable to highlight all comments in Vim

Problem: Vim does not highlight all my comments apparently because of folds alt text http://files.getdropbox.com/u/175564/vim-color-problem.png Note the line 84 where the comment is not highlighted. I move my cursor up and down the same problem…
0
votes
2 answers

vim syntax files under windows vista+?

In *nix, vim syntax files are in ~/.vim/syntax/[language].vim But on windows dot is not a welcome folder name start, so it suppose to be _vim\syntax\[language].vim I have tried putting language files in such folder, but :set syntax=[language] does…
grigoryvp
  • 3,655
  • 11
  • 39
  • 59
0
votes
3 answers

Vim and Solaris Express 11 - Unable to Backspace

I've just installed Solaris 11 Express, and I can't for the life of me work out how to get vim to backspace correctly. The backspace key works fine at the normal console. However, under vim, it simple goes back a character, but doesn't actually…
victorhooi
  • 515
  • 3
  • 11
  • 20
0
votes
2 answers

256 Color Issue when using GNU Screen inside GNU Screen

When I have a SSH session in GNU Screen to another machine on which I'm also using GNU Screen, 256 colors don't seem to work. The $TERM is still set correctly. However, if I run Vim, the theme does not look correct as it would with only one screen…
psp
  • 3,173
  • 3
  • 15
  • 14
0
votes
4 answers

Vim how to change the cursor from char block to pre pipe/line

Not sure what the terminology is for it but on Vim the 'cursor' is always like an insert/replace cursor instead of the blinking line cursor I'm used to in other gui editors. Is there any way to change this when in insert mode?
Derek Organ
  • 591
  • 1
  • 10
  • 20
0
votes
3 answers

Unable to highlight an active eol character in Vim

I can change the eol character of all lines except the active one by hi nonText ctermfg=2 However, I do not know how to change the eol character of the line where my cursor is. How can you highlight the eol character of an active line?
0
votes
1 answer

Save buffer on exit from insert mode in Vim

Is there any way to map key to save buffer after exit from insert mode?
Ramesh
  • 1
0
votes
2 answers

How to find malformed - corrupted - dos - BOMByte Files in Linux

I've several problems maintaining large production servers, in which some developers drop files from Windows environments, sometime with BOM-bytes (We use UTF8, and no need for that), causing lots of troubles. Other times, I got a "no end of line"…
Syquus
  • 46
  • 3
0
votes
1 answer

How to disable ctrl-v in Vim?

In /etc/vimrc, how do I disable the ctrl-v feature. I.e, disable visual block.
Hulk
  • 391
  • 1
  • 6
  • 17
0
votes
2 answers

Using ex in init scripts

I'm using ex to modify configuration files from an /etc/init.d/CONFIG script. I'm using debian squeeze (updated yesterday) My problem is: It's impossible to start ex / vi in init scripts with the vi / ex package of the current squeeze system. There…
Andreas Rehm
  • 851
  • 6
  • 11
0
votes
2 answers

Vim: How can I :cd to an sftp directory?

I'm currently an emacs user, but thought I would come back and take another look at Vim for fun. My client machine is Ubuntu, and I frequently work on other ubuntu servers within my network, emacs and tramp is really nice in this regard, I can just…
ChrisInCambo
  • 1,751
  • 3
  • 15
  • 13