Think LAMP - Web Development, Linux Administration and Networking

open source, programming, networking, system administration, linux, unix

Entries Tagged ‘vim’

Control S in vim hangs

Another vim tip,
In vim, if you press control s and the screen freezes, press control q to unlock the screen. This is an xterm thinggy.
cheers.

Arrow Keys In Vim

When you navigate using the arrow keys in vim, you might get some funny characters like A, B, C…etc. In .vimrc, add this line:
:set nocompatible
This should do the trick.

copy and paste between vim windows - stupid indentation

if you are using vim and tries to copy and paste between windows or shells, you may find that vim adds some extra spaces / identations to your code. Irritation? yes. The quick solution is to do a
:set noautoident
or add this in the vimrc file to make it a default.