GVim - How to hide / "undecorate" the top bar by default? - vim

If we look at this post: How to hide the menu/tool bar of gvim? it shows us how to hide the menu and toolbar. What I want to do is to be able to hide the bar on the top (the bar which has the current files name on it - in the post I linked to, the bar says 'sponsor.txt' on it) by default when opening up Gvim. To do it manually, I have to right click the bar and click "Undecorate". Is there anyway for me to add an option on my .vimrc file which allows me to undecorate / hide it by default?

Related

How to change TinyMCE `styleselect` dropdown to use just icon to open the menu?

I know that I can add option to TinyMCE toolbar to change selection styles using toolbar setting with keyword styleselect. I also know I can adjust the contents of the menu that opens with that button using setting style_formats combined with formats. (Above is correct for version 5.10.2.)
Is there some way to configure the rendering of the styleselect option in the toolbar? I would want to swap the text label to single icon on smaller displays. For big viewports the feature to show the current style at the caret location is a nice feature but for narrow viewports it would be better to have custom icon instead of partial style name in the toolbar.

How to remove status bar located at the bottom of ST3

I did a research on this over the internet but I did see how to do this. I just want to hide/remove the status bar at the bottom of my text editor (sublime text 3), that shows the line and column and etc. Please see the image below:
BTW, I'm using windows 10.
The status bar in Sublime can be hidden using the View > Hide Status Bar menu command or the View: Toggle Status Bar command in the Command Palette. The state of the status bar is specific to the window, so you need to use the command in all of your windows if you have more than one (assuming you want it off everywhere).
Note that the presence of the status bar in a new Sublime window depends on the state of the status bar in the existing window that has the focus when the new window is created.
As a result of that, if you have more than one window you need to use the command in all of the windows in order to have it permanently turned off.

Cygwin: Import Color Scheme from "Color Scheme Designer"

I am exploring how to get color coding in the Cygwin terminal.
First, I right click on the Cygwin icon and select "options":
Next, I see the following options panel. However, there are no themes. Instead, there is a button to a "Color Scheme Designer":
When I click on "Color Scheme Designer," I am directed to the following web page (the website interface of a GitHub project--fork on the bottom left) in my browser (Color Scheme Designer):
In the top right corner is a button labeled, "get scheme", which yields the next panel,
If I right click on the buttons in this final panel and click, "copy link," all the color settings are saved in the particular formatting of the button on my clipboard. Then I can paste it into a file.
It is at this last step where I am stuck.
How do I get one of these color schemes into the Cygwin theme list? Note that there is a button next to the "Color Scheme Designer" (picture 2) that is greyed out, named "Store"... so there seems to be some functionality where I can store one of these custom color schemes so that it shows up in the "Theme" dropdown?
You are almost there! Here's my solution, I'm sure there are other ways to achieve this. Note that the solution assumes that your cygwin install included the mintty terminal emulator (installed by default in recent versions of cygwin).
1) Right click on the .minttyrc button and save the link as a text document on your computer.
2) Open the text document and copy its contents to your clipboard. The file might look something like this:
BackgroundColour=13,25,38
ForegroundColour=255,255,255
CursorColour=255,255,255
Black=0,0,0
BoldBlack=62,62,62
Red=217,20,46
BoldRed=246,162,173
Green=46,217,20
BoldGreen=173,246,162
Yellow=217,191,20
BoldYellow=246,235,162
Blue=20,46,217
BoldBlue=162,173,246
Magenta=191,20,217
BoldMagenta=235,162,246
Cyan=20,217,191
BoldCyan=162,246,235
White=217,217,217
BoldWhite=255,255,255
3) Open cygwin and go to your home directory by typing cd ~
4) Type ls -a to see the various hidden configuration files that are stored in your home directory. In particular, you should see a file called .minttyrc.
5) Open .minttyrc with your favorite text editor and copy the code snippet that you got in step 2)
6) Restart cygwin or start another instance of the terminal and the new color scheme should be in effect.
In addition to jegudmunds answer, here is how to add themes:
Open cygwin and go to your home directory by typing cd ~
Type mkdir .mintty and mkdir .mintty/themes to create a directory called ~/.mintty/themes
Copy the files you downloaded from http://ciembor.github.io/4bit/# into that directory
Restart cygwin and the themes will appear in the theme dropdown box of the options dialog
See https://github.com/mintty/mintty/wiki/Tips#using-colour-schemes-theme for more information.
Going back to that modal that shows up after you click the "Get Scheme" button, you can drag the ".minttyrc" button towards the drop down box in the terminal's options dialog. You can then type in a name for the theme in the drop down box itself and click the "Store" button to make it available on that drop box in the future. Finally, you need to click "Save" or "Apply" to have the theme applied on your terminal.

Sublime text 3 open folder option not working

When I go to open the folder in Sublime Text 3 and open some folder, instead of creating a sidebar and opening the folder, it just opens a window with the name of the window set to the name of the folder. And the window will be empty! So, for example, I opened a folder called Shopping Cart tutorial. Instead of creating a sidebar and opening the folder, it will create a window with Shopping Cart Tutorial as the name of the window. Again, it will be empty, unless I open some file. Any ideas on how to fix that?
The issue you're seeing here is either that the side bar is not currently being told to be visible, or it's set to be visible but it has nothing to display.
The fix in the first instance is to select View > Side Bar > Show Side bar from the menu, select View: Toggle Side Bar from the command palette, or press Ctrl+KCtrl+B.
The visibility of the side bar is a window by window setting, so if you have this option turned off initially you'll have to perform this step in all current windows to get it to be visible everywhere. Once it's visible, the state is saved and will be used for new windows.
You may notice that this either has no effect, or the menu item in question isn't available and says Hide Side Bar instead. The reason for this is second item I mentioned above; it has nothing to display.
Sublime tries to be as minimal as possible with its UI Chrome so that there's as much room as possible for editing text. For that reason, it will hide the side bar if it thinks that it doesn't need it to be visible.
The side bar can display two things: the list of folders you have open/in your project and the list of files that are currently open. The display of currently open files is controlled by the View > Side Bar > Show Open Files menu item (or the associated toggle command in the command palette).
No matter what you do, the side bar will remain invisible if you have no folders or files open, so regardless of any setting a newly created window that has no folders open and no files open will always have no side bar.
If you turn on the option to show open files, the side bar will appear even in windows where there are no folders open, so long as there is a file open (even an unsaved new file).

Vim change titlebar to match file in tab

If I open a file in vim, the titlebar displays the file and path of what I opened. Great. But if I open another tab, and switch to that new tab, the title bar never changes. Even if I completely change files, such as by doing :edit <newfile>, the title bar never changes.
I have set the status bar to correctly match the file that is open, however I would like the title bar to do the same. Its confusing sometimes seeing different information displayed at the top and bottom of my window. How can I set the title bar to display the new file that is currently displayed?
:set titlestring=%F seems to have fixed it for me. I guess this was a simple one
You can find more info with
:help titlestring

Resources