spf13-vim disable tab highlighting - vim

I'm an absolut vim-newbie so I thought I'll try it with some preconfigured distribution like spf13-vim. So to my question, I would like to disable the "tab-highlighting" because I find it kind of distracting...
I think this picture should make clear what I mean

Put a line below in your ~/.vimrc.local or ~/.vimrc.before.local to disable indent guide by default. You can <leader>ig as well.
let g:indent_guides_enable_on_vim_startup = 0

You can toggle them on/off with ,ig.

write set nolist in your .vimrc.local to turn it off.
see :h list
'list' boolean (default off)
List mode: Show tabs as CTRL-I is displayed, display $ after end of
line. Useful to see the difference between tabs and spaces and for
trailing blanks. Further changed by the 'listchars' option.

Related

How to remove row lines in vim?

How do i remove the row lines at the start of the line? I typed the command
:s/^/# /
while in command mode and it suddenly appeared. I typed the command again, but it's still in my editor. I was trying to comment out a few blocks of code. This is the stackoverflow page I was following: What's a quick way to comment/uncomment lines in Vim?
Please see the image below to see what I'm pertaining to. Thanks in advance!
Vim highlights the current search pattern; this is the 'incsearch' option; either you have it explicitly turned on in your ~/.vimrc, or you use a recent Vim 8 version that has this enabled by the defaults.
Check with :hi IncSearch; it should show the same white-underscore-onblack formatting as your screenshot. You can also use a :hi command to customize this (or choose a different colorscheme).
To turn this off, use
:nohlsearch
You can shorten that to :noh; some people also define a mapping to quickly clear this. Alternatively, you can also search for something else.

Remove tab dots from vim indentation/tabs

I am using spf13-vim and whenever I press tab, I get these dots. They are there even when I press space.
How I can remove these dots. I want the indentation to happen but without dots. I searched a lot on the web but there is no information available or I could not find.
What changes should I do in my .vimrc to hide these dots?
EDIT
I tried ,ig command or added let g:indent_guides_enable_on_vim_startup = 0 in .vimrc.local but I am still getting the dots.
EDIT
:set nolist worked for me, as suggested by #Christian Brabandt in the comments
What you want to do goes by the term disabling tab highlighting. More information is here:
spf13-vim disable tab highlighting
Add set nolist to ~/.vimrc.local to override default spf13-vim settings.
That behaviour is caused by the following lines in .vimrc (233, 234):
set list
set listchars=tab:›\ ,trail:•,extends:#,nbsp:. " Highlight problematic whitespace
list mode is used to display whitespace and special characters, listchars allows to configure corresponding characters that will be displayed.

Vim cursor going outside of character bounds in normal mode

Some setting changed on my vim. In normal mode, I can now click anywhere and my cursor will go there. (This is in normal mode.)
The behavior used to be that if I clicked past the end of the line, the cursor would go to the last character of the line.
I hope I've explained this sufficiently, but is there a way to get the old behavior back?
Thanks!
You probably set the option virtualedit somewhere. To turn it off for the instance you can use :set virtualedit=. Or to permanently disable it remove it from your vimrc.
The feature is call virtual edit. You can disable this with:
:set virtualedit=
See :h 've' for more information.

Codefolding / Indent guides in Vim?

During a research for useful vim plugins I found a screenshot of a vim window showing some kind of dotted guides highlighting either indentation or folds. I'm not sure about what they highlight actually.
Does anyone know which plugin generates these guides and what their purpose is?
You can find the screenshot right here: http://oi54.tinypic.com/2yysefm.jpg
If you use tabs to indent your code, you can use the 'list' option to make your tabs visible.
In your ~/.vimrc:
set list
set listchars=tab:┊\ <-- don't forget the trailing space.
Obviously, this will work only if Vim supports utf-8.

Is it possible to not display a ~ for blank lines in Vim/Neovim?

Is it possible to not display a ~ for blank lines in Vim?
This confuses Mac Vim's scrollbar, and I quite don't like these tildes.
:hi NonText guifg=bg
That command should set the color of non text characters to be the same as the background color.
Vim 8.x:
You can now change the color just for the end of the buffer ~:
highlight EndOfBuffer ctermfg=black ctermbg=black
See changelog for Vim 8.x.
As jamessan said, you can’t disable them. The scrolling behavior isn’t specific to MacVim, either — it works the same way in the terminal and in gvim:
Instead of seeing this as a problem, what you should do is learn to see this as part of Vim’s flexibility. For example, you can use the zt command to scroll the current line to the top of the screen, regardless of where in the file it is. This can make it easier to write macros that do some work and then scroll back to where you were. The commands <C-E> and <C-Y> are made simpler because of this, as is the 'scrolloffset' option.
If you must, retrain your brain to think of Vim’s scrollbar as mapping to which line is on top, instead of which screenful is visible.
For NeoVim, you can set the fillchars value for eob to a space character and that will effectively hide it. (This might not work for plain Vim).
In Lua (Nvim 0.5+):
vim.wo.fillchars='eob: '
In VimScript:
set fillchars=eob:\
Note: Calling the above will override your fillchars value for other items as well (if set), so use this as a reference to set multiple values together:
set fillchars=eob:\ ,fold:\ ,vert:\│
Or use set fillchars+=... to append it your existing values.
You can't disable them, but you can change your colorscheme such that the NonText highlight group is colored the same as the Normal highlight group. However, this affects more than just the end of document tildes.
I doubt that it's actually "confusing" MacVim's scrollbar and if it is, then that's a bug in the patching that MacVim does.
The tilde ~ characters are meant to remind the user that those lines are not part of buffer content.
The above highlight trick will hide the ~ character, but it is still there. For some terminals, this may not even work. If you happen to be a Neovim user, you can use fillchars option to change the end of buffer symbol like this:
set fillchars=fold:\ ,vert:\│,eob:\ ,msgsep:‾
This will use space instead of ~ for end of buffer, effectively hiding the annoying ~.
You may also be interested in discussions here.

Resources