Reputation
4,018
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
3 16
Newest
 Nice Answer
Impact
~47k people reached

Apr
20
comment Background color mismatch in vim and tmux
I think you need to set TERM=screen-256color inside tmux.
Apr
16
comment How to search a line contains N target characters/patterns in vim?
That's like \(; it just avoids capturing (which is not needed here).
Apr
15
comment modify file using awk or sed
Have you tried anything so far? By showing your attempts and describing what parts you are having difficulty with, we get a better understanding of your proficiency and can give a more precise answer. As it stands, it just looks like you've posted a requirement and want someone to write your code for you.
Apr
8
comment VIM switching between split buffers
Then it's still there. Do you use persisted views or sessions? The mapping definition might be contained in there, too.
Apr
8
comment VIM switching between split buffers
Check again with :verbose map <C-w>; you need to restart Vim for the changes to take effect.
Apr
8
comment VIM switching between split buffers
Where does that one come from? It prevents your use of Ctrl-W commands. Either remap that to a different set of keys, disable it (if it comes from a plugin), or remove (if in your .vimrc).
Apr
5
comment Glitch with auto chmod line in .vimrc
Vim usually doesn't care about syntax errors; do you have any plugins like Syntastic?
Apr
1
comment Vim keep showing error message about color scheme for no reason
Ah, great! I've added an answer; please accept by clicking on the outlined check mark next to it.
Mar
31
comment Vim keep showing error message about color scheme for no reason
But the output complains about MyColor. Seems like the g:colors_name variable inside the script is using inconsistent case. Try renaming either to be consistent, then try again.
Mar
31
comment Vim keep showing error message about color scheme for no reason
Why did you put this to /usr/share/vim/vim74/colors/? That location belongs to Vim; you might lose your customizations on upgrade / reinstall of Vim. Is the script name exactly MyColor.vim (including case)?
Mar
18
comment How to assign Vim's showbreak a value locally to a buffer?
'showbreak' is a plain option, not an internal variable. You're just using the :let &... syntax to modify it; :set would work just as well.
Mar
16
comment Is it able to only allow yanked content went to clipboard, meanwhile deleted content doesn't? [vim]
No, that's certainly not how you would do it! There's an example at :h g@; you can also look at my RepeatableYank plugin.
Feb
3
comment some POSIX Bracket Expressions not working
I think you just got false positives from those.
Jan
5
comment Make vimdiff display different lines as different lines (not partially different)
I interpreted the problem in a way that there should be a threshold for "similarity", so that 99%-differing lines should not be marked as changed, but 10%-differing still are. This is what your proposed solution doesn't achieve (and which indeed would require source code changes).
Jan
5
comment Make vimdiff display different lines as different lines (not partially different)
You can also just do :hi! link DiffChange DiffText. But isn't this solution just papering over the problem?
Dec
18
comment vi commandline, goto line and column
It matters for non-ASCII characters, which are represented by more than one byte. Also, a Tab and control characters usually occupy more than one display column.
Dec
18
comment vi commandline, goto line and column
cursor() uses byte index for the column, but it's usually a character count.
Dec
15
comment Vim mappings stop working
Have you changed terminals or previously used GVIM? Not all key combinations are handled in terminal Vim; <S-CR> and <C-CR> mostly don't work there.
Dec
9
comment vim :grep using the bash 'globstar' option
Thanks; glad I could help. Don't forget to accept the answer by clicking on the outlined checkmark next to it!
Oct
22
comment Adding color scheme to Vim
Your answer doesn't add anything that isn't already in mine.