Tag Info

Hot answers tagged

8

This is the intended behavior of vim (and vi). When you edit a readonly file, attempting to write the file the usual way (with :w) fails. This is to prevent you from accidentally changing a readonly file you might not wish to change. If you really want to override the readonly permissions on a file that you own, and write your changes to the file, you must ...


1

If you paste from the system clipboard, vim thinks the pasted text is user input and, if confiured to provide autoindent, vim makes it's job and automatically indents the code. You can turn off that autoindent when you paste code into vim directly. Type that in the command mode: :set paste Now, your pasted code should be written without indent. To ...


1

You can change that using: :hi IncSearch ctermbg=Red The following colors should be available: Black DarkBlue DarkGreen DarkCyan DarkRed DarkMagenta Brown, DarkYellow LightGray, LightGrey, Gray, Grey DarkGray, DarkGrey Blue, LightBlue Green, LightGreen Cyan, LightCyan Red, LightRed Magenta, LightMagenta Yellow, LightYellow White Other options you might ...



Only top voted, non community-wiki answers of a minimum length are eligible