Vim and NERDTree and Tmux split view causing rendering errors - vim

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.

Related

vim x/y scrollbar hiding my commands and being really anoying

i'm a new vim user since 2 weeks and i've currently have my biggest trouble for the moment on vim.
i always have a x and y scrollbar on my vim and the x one is very anoying because it cover my commands.
here is a screenshot of the scrollbars that appears when i use terminal inside of vim using `:term` / `:!dir` or even when i save my vimrc or source it (`:so ~/.vimrc`)
if there is any solutions to it i will be really grateful, thanks for reading
This is an issue with your layout settings in Powershell and Ubuntu. Right click on the top bar of either program, go to Properties and then go to the Layout tab. You can check the Wrap text output on resize box and that should get rid of your horizontal scrollbar, thereby allowing you to use Vim as normal. Alternatively, in the same menu, you can decrease the width of the screen buffer size so that it is smaller than the width of the window size.

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

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

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=

Resources