Default colorscheme loads prior to user-defined one causing "flash" - vim

When using Gvim on my Ubuntu 12.10, I see a flashing screen (as if the colors are reverted) whenever I hit the top or the bottom of the screen (Suppose I'm on first line and press any movement keys for further motion towards top or left). The screen flashes even when I press Tab or any other movement key. I searched for the problem, it seems very similar to this bug report here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291415
It doesn't lists any solution. How can I go about fixing this problem.
Note: The terminal version works absolutely fine.

What you see is the visual bell and yes, the colors are reverted. See :help 'visualbell'.
To disable it, put that line in your ~/.gvimrc:
set vb t_vb=

Related

Why "set lines=999 " can't maximize Gvim winodw when opening?

set lines=999 in vimrc can't maximize Gvim winodw when opening, why? Please check the screenshot, there's some space in the right and bottom side.
As Joanis stated in his comment, Vim works with lines of character that have a fixed height. The window can only be resized in steps of line-height and character-width.
If you change your font size (Edit -> Select font...) you will see, that the gap between the Vim window and the monitor border changes.
If you are lucky, you'll find a font/font-size that exactly matches the maximum resolution of your monitor. Whether that is still useful or readable ... most likely not.

Vim and NERDTree and Tmux split view causing rendering errors

See attached image
I was using my setup with Vim and NERDTree and Tmux, where I would open directories or files in a vertical split. Problem is, any file/directory on the right-most panel would wrap on the left side of the page, causing this very weird diagonal rendering bug that I can't get rid of (see attached image). Is this a bug? or can this be resolved using the .tmux.conf? (ignore the white boxes, i just censored confidential stuff).
(EDIT): I think this might have something to do with my editor. I'm using ConEmu, and this problem doesn't seem to get reproduced on other terminal emulators.

How can I see only changed lines in file with SmartGit?

I'm seeing full file with highlighted lines. But I want to see only changed lines as in SourceTree. SourceTree displays only changed lines and it very comfortable. I must not scroll all file to find changes.
Can I tune SmartGit for it?
Thanks.
SmartGit 17.1 supports this - it's called "Compact Change Display".
AFAIK this is not possible in SmartGit.
But there are several ways to get to the changes quickly.
You can use the arrow buttons on the right or its shortcuts F6 and SHIFT+F6.
Or you can move the mouse between the two view and then using the mouse wheel. When the mouse is located at this area, scrolling will take you directly to the next change instead of just some lines up/down (see red markings in attached screenshot)

Disable window resize when changing focus

I have a single vim-tab with multible windows. When i change the focus to another (vim-)window, vim seems to impose a minimal window width. For example, if i have 2 open windows split vertically, a change of focus to the right one results in shifting the seperators a bit to the left (1 character, i guess the terminal-width is odd) , and vice versa. This is annoying especially when there are more windows, since moving around changes the layout of the tab.
i tried setting wfw, but now when i open another window (again split vertically) the new one will have width 1, and Ctrl-W = doesn't work any more.
Is there an option to disable resizing on focus change, while still beeing able to Ctrl-W =?
Edit: I'm running vim 7.4, beeing the official debian jessie vim-gnome package. The behaviour is reproducable even without .vimrc. I'm using urxvt, and xterm shows the same behaviour.
I don't know what exactly went wrong, but the problem was caused by using the session file i created with vim-obsession.
Deleting this file and starting a new session fixed the above.

NerdTree re-positions Vim Window

I am using gvim on Windows 7. I just installed NerdTree and observed something abnormal.
Usually I have two application open side-by-side by dragging them the left and right border of screen, and then Windows will automatically adjust the width and positions for them.
So, I have vim and another application open side by side today, and needed to navigate the file system. So I did NERDTreeToggle and all the sudden, my nicely positioned vim jumped to a different position (The default one when starting vim).
I am wondering if there is anyway to prevent this from happening.
Thanks.
This is probably caused because due to the vertical split (of the NERDTree sidebar), Vim displayed a second scrollbar (on the left), and that causes the Vim window to increase its width, and that made it "break out" of your layout.
You can avoid that second scrollbar via
:set guioptions-=L

Resources