Vim editor showing additional two columns - vim

When I open a file in vim editor, after a few seconds, a additional two columns with random text appears in the window. Can anyone tell me, what it is and how to rectify it?
I am attaching a screen-shot of the problem :

Sigh…
That column is the "sign column" and you can read about it and the related "signs" feature in :help signs.
What you see is the marks present in your file as displayed by a plugin, most likely ShowMarks.
If you don't want it, why did you install it?

Related

How to correct Sublime Text 4 opening any file half-line scrolled

My Sublime Text 4 is opening files with their top lines going scrolled beyond the tab bar and half shown (attaching the screenshot). You'll see that the top line of the css file (which is html element) is half scrolled. This is happening to all the files regardless of their type.
I tried setting caret_extra_top and caret_extra_bottom to zero but didn't help. Also set line_padding_top and line_padding_bottom to zero but this too didn't help.
Can you please help in solving this for me? Just in case, I'm using Menlo at 10 size as the font in sublime.
I solved it myself, finally. Answering it here for anyone who stumbles upon this in future after being creative with his/her IDE like myself. Lol
I had used a python script which collapses/folds content of the file by given level upon opening the file. It was this functionality which was causing this behaviour. No matter the levels to fold the content, it is scrolling the first line by half. Just disabling/ removing that

Sublime Build 3126 : How to highlight all the line that contains my found phrase after searching?

I have an original version of Sublime Build 3126. Please, I need to learn the following if possible.
Basically, when I search for a term and click on the found line from the results window, I would like the Sublime editor to highlight the whole line that contains my term. At the moment, every time I click on the search result entries, I need to look again through the page for the line that contains the term. The Sublime editor is only highlighting the line number which is very hard to notice.
Ideally speaking, the whole line that contains the term might be highlighted and the term itself must be boxed/highlighted in a different way for instant identification.
If anyone knows how to adjust that to make it clear and easy to identify the found terms, it would be greatly appreciated.
I am using the Ubuntu version of Sublime.

How do I find the source for bugs in Sublime Text?

I have been dealing with a bug in Sublime Text in js files for a while where anytime I write a comma or semi-colon, Sublime Text creates an autocomplete box with a specific number 62118. So anytime I hit enter it will autofill this useless number and I have to delete it.
More keystrokes = More anger, so I was wondering if
anyone has run into this
or if anyone might have an idea whats causing it
OR if anyone has a good general technique for finding bugs in Sublime Text
It seems to only happen in .js files but I could be wrong so help me out here please I'd love to keep the configuration I have.
There may be information in the Sublime console. To open the console go to View > Show Console (ctrl + `).
Otherwise, uninstall your plugins one by one. While it probably isn't necessary, it would be a good idea to restart Sublime each time you uninstall, to make sure any caches the plugins create are cleared.
Finally, you can simply disable autocomplete by adding the following to your User Settings.
"auto_complete": false

How to display a text file (.txt) as a code file with color in Sublime Text 3

I'm using sublime text 3. And I want to display a text with color like a code file in Sublime. But I don't know how to do. Please help me!.
Thanks you!
You can manually set the syntax of any file using the Command Palette and type "Set Syntax: " or from the bottom right dialog (by default it reads "Plain Text").
If you want Sublime Text to remember your choice, you can also do that from the syntax selection dialog mentioned above, or View > Syntax > Open all with current extension as…".
I think if you need your text file for purposes like note taking, there is a nice hack.
Go to View > Syntax and then select haskell. Haskell syntax highlighting is subtle and works fine. To highlight something just capitalise the first letter and it pops in a different colour. Numbers are highlighted in a different colour again, increasing readability. Finally brackets commas etc have different colour which further helps.
Well, coloring is based on the syntax, like every programming language has its syntax, but the pure text file is hard to detect the syntax since it can be anything. So if you use the Sublime to coding,try save it as a file with file extension first, then the Sublime will detect by itself, however you could also do this manually.
The ability to create your own syntax highlighting rules is one of the excellent features of SublimeText.
Have a look here at some other people wanting to build their own syntax highlighting rules:
How to not highlight object keys such as 'do'/'package' as keywords in Sublime?
Sublime Text - C++ Highlight
That explains the basic tools you need to use to do what you want to do.
Following the same ideas there you can build a syntax highlighting scheme for whatever it is you want to achieve in your text file based on whatever syntax rules you are trying to follow. Hard to imagine what those are for a text file without you supplying exact details but if you want to do it Sublime Text gives you the power to do it.
If you give that a try and have trouble with developing the relevant Regular Expression/s to do what you want to do then post what you have done and how it is not working the way you hoped and perhaps we can help you get to the end of the game.

Sublime Text 3 - Double Tab Issue

I am using Sublime Text 3 and every time I press tab it will add an extra tab. My settings are to display tabs as an actual tab (not spaces) and is equivalent to 4 spaces. My issue causes a single tab to therefore create 2 tabs the length of 8 spaces.
For example, if I am trying to indent it will tab twice and I will have to delete one tab.
If I select a block of text it will indent it twice and result in the text being deleted and I have to undo it once to bring the text back.
Also, when using auto complete I normally hit tab to auto complete the first option. It will select the option and do a tab after it. I am not sure if this is an option or setting but its extremely annoying and I have not found a solution yet.
Sublime Text double tabs on tab key press
Sublime Text deletes/removes text on indentation / tab
Both problems are due to a popup (most often the SFTP free version popup for me) hiding in the background. If you make sure to close the popup windows every time they appear you will not get these issues. You could also pay for Sublime or the plugin to remove the popups.
In OSX you can't focus back on Sublime Text without clicking on the popup, so you will never have these problems.
I just had the same issue. I just restarted Sublime and it worked again, no need to reinstall or change any settings.
I just encountered this problem recently, and it appears to only happen on Windows. In my case, the pop-up "Hello! would you like to purchase sublime?" was open in the background, and that caused this issue for me. Once that pop-up is closed, everything works just fine.
Although the question is three months old at the time of writing, this might help people that are still looking for an answer. After having this issue for a while, it annoyed me so much that I traced back the issue.
The double tab issue only happened after a while, so I figured it was triggered by a certain key combination, being pressed wrongly. I've also noticed that the bug only occurred at Windows, not on Linux (Ubuntu).
After disabling all Sublime Text 3 plugins one by one, I've noticed that, for me, SFTP triggered the bug. This happened upon saving, SFTP started uploading, and displayed a evaluation notice. As I've purchased SFTP (and activated it), the double tab bug never occurred again. Even after enabling all other packages, the double tab never troubled again.
This is only one solution to the problem, your problem might originate from something else. Try to disable packages which might cause the problem and try to find the problem that way. It's a lot of work, but might get you the solution.
This solution worked for me on windows:
Just go to
View -> Layout -> Single

Resources