I use gvim as my text editor and the syntax coloring is great except it highlights "errors" and gives it a white background with red font. How do I turn off error highlighting? I find it annoying and don't need it.
When I close MacVim using the standard vim command :q, the MacVim window closes, but the program is still running. This causes trouble when other processes try to spawn an instance of MacVim, because if it is still running, a special flag needs to…
As the following post demonstrates:
How to change the default font of gVim
on Windows 7 it is impossible to save the default Gvim font from the Gvim program.
Closing Gvim will cause it to completely forget about all font settings, and it
is not…
I have a .gvimrc file that works fine on OS X 10.6, but won't work on Ubuntu. It contains a line that reads set transparency=15, and when i run gVim it reports:
Error detected while processing /home/user/.gvimrc:
line 25:
E518: Unknown option:…
Is it possible to get gVim (on windows) to execute external commands in cygwin by default? i.e. !ps will open a cygwin terminal showing the currenty running processes?
I've tried to improve my vim experience trying to have the vim statusline color to change everytime the mode changes.
I've triend this:
(found here)
"Automatically change the statusline color depending on mode
function! ChangeStatuslineColor()
…
I recently updated Vim, and noticed that whenever I open a .txt file, the option tw=78 is set. (Which makes Vim automatically break lines when they would have exceeded 78 characters.) I don't like that, and would like to get rid of it.
I added set…
Currently, I load my syntax manually in vim by :set filetype=python.
Depending on what kind of file I'm working on, I change it manually. I think there should be a more smarter way. Probably some lines to be placed in my .vimrc file
Solution:
I had…
I'm currently attempting to create a basic screen layout for gvim that shows up every time it opens. I'm also attempting to open buffers in a certain window. Because of the GUI init timing I'm forced to open the buffers with autocmd.
So my _gvimrc…
I'm having trouble with gvim and tabs. Using Ubuntu, there is the gedit editor, which opens files in new tabs, but gvim opens a new window for each file i open. I definitely prefer to have tabs, just like every other application I use. Having 5 gvim…
I have a plugin for VIM which is basically provides an interface for my SVN (vcscommand.vim). And I've mapped :VCSUpdate and :VCSCommit commands of vcscommand plugin in my .vimrc. Everything is perfect, except one thing:
After you call :VCSCommit…
I am using the following Vim autocommand in my .gvimrc file:
augroup MyAuGroup
autocmd MyAuGroup FileChangedShell * call FileChanedEvent_BuffUpdate()
augroup END
function FileChanedEvent_BuffUpdate()
let MyBn = bufname("%")
let MyStr =…
I am using gVim's confirm() function to pop a dialog waiting for the user to click a button. However, there seems to be a difference in the appearance of the dialog when called from .gvimrc:
Using the command: :let MyTestV = confirm("IN MY_GVIMRC")…
Right now if I hit ctrl + n it will complete words that are in the current document. I've also found a way to define a dictionary. I'm just unsure how to get vim to complete based on keywords in a language.
I don't mind building my own…