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

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

Related

Can the Sublime Text sidebar have line guides for its treeview?

Edit: For clarity, I am not asking how to turn the sidebar on.
Not sure what to call them but this is what I mean:
In red, is what I'm calling a "folder guide". Just a nice line to help your eye better visually track the hierarchy of folders.
I'm using the Cobalt2 theme and haven't looked into alternate themes yet but it would be nice if it was possible to add something like this without changing to a new theme.
It's not possible (at least at the time of this writing) to have hierarchy lines in the tree view of the side bar such as in your image above. There is an open issue in the unofficial issue tracker for it, however.
That issue has been open for a while, but prior to the recent-ish release of Sublime Text 3 a lot of work went into the sidebar behind the scenes, so possibly something like this might be added in a future update.

In Sublime Text, how can I increase the difference/contrast of the line highlight color from active file and other open, inactive files?

OSX / Sublime Text 3
In Sublime, I work on several files at a time and have them set up in panes with 2 or more files visible at once. I have my <key>highlight_line</key> turned on and configured to be red (high visibility) in my current color scheme. Among the three files, the red highlighted line is visible (and that's good) but the difference between the active file and the other inactive file(s) is different, but nominal. So, when I return to Sublime from another app, I jump right in and wind up editing the wrong file… often. (not good)
I've looked in the default prefs file for a value that appears relevant to what I'm after but to no avail. Any solutions or ideas are greatly appreciated.
After creating another "help me" post on sublime text forum, it was suggested that the package "inactive panes" could solve my issue. And it does!! While my ultimate solution to this would be leveraging the application itself in some way, this is a great solution until that becomes possible.

Vim editor showing additional two columns

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?

What's going on with this google search result..?

Once upon a time, i came across a weird entry in google search result.
The entry would sit there strangely, with artefacts of text standing tall & vertical.
At once I fired up my trusty firebug to analyse the problem. It appeared immediate that the origin was purely in the text content, nothing could explain why it stood so tall.
I thought it puzzling that the text would suddenly change direction. I found it even more interesting that the browser would not reflow its content to adjust for it. The text just sat there, ignoring the laws of internet. Was the world falling appart? It is 2012 after all.
If seeing it in a pictogram is what you wish then to gaze at the following screenshot:
(This be Chrome (16.0.912.75 mac). This thus happens on Firefox 9 too)
If seeing it in action is what you wish then to click on the following search result link: Search link
What form of sorcery is causing that?
Stackoverflow worthy questions:
Why is the text direction changing without any html markup to trigger it?
Why is the text not forcing the browser to reflow the content and accomodate for it?
I don't think it's related to google, its jankenpopp.com-related, looks like one of those languages where you need to read from top to botton instead of left to right.
I was a bit sketchy to click that link...

File Manager tab in vim

I'm very close to figuring this out, but can't seem to find the missing piece.
I have a pretty good vim set up for development. When doing MVC projects, I need multiple tabs open, and I've gotten pretty good at shifting between them and rearranging quickly.
I can even open a vertical tab with an interactive directory listing of my files.
What I really want and can't figure out:
To be able to have this vertical tab persistent, that is, in the "foreground" of all tabs, and allow me open a file into a new tab. (Basically, I want vim to have a sidepane that is a file manager and when i press enter on a selected file in the directory, it will open a new tab, but the "file manager/directory tab" will stay open, and in front.
To set the persistent "file manager/directory tab" to be a specific width - ie :vsplit 32(pixels?)
Does that make sense? Can anyone point me to the right part of the help section for this?
Thanks, Kevin
Are you using NERDTree? If not, it might be the answer to your prayers.
You can set the width of the NERDTree window by putting this in your .vimrc:
let g:NERDTreeWinSize=32
For the benefit of anyone passing by, you should take a look at project. It took me a bit to figure it out, but you basically get a file browser on the lefthand side. It's up to you to manage the file list though, so you can apply filters, link to source/api docs, and omit what's not important. Of course it will automatically fill in the list, if you like. Very neat. It's a help page you have to sit down and read, but I like it.
You should also look at snipMate and surround if you love efficiency. I've been using vim for ten years and this is all new to me! Life changing! Now I have to quite fiddling with the interface and get some work done.

Resources