How to make the GUI elements of windows version Neovim appear? - user-interface

My Neovim on windows 10 installed using chocolatey method guided by the website of Neovim, does not have any GUI element (including tab, menu, or toolbar) after I run nvim-qt.exe. Can any one help me? Now, both the _vimrc and all the Vunle Plugin of my gVim are loaded succeed into my Neovim environment. The screen looks like this,
cool_neovim_screen_but_without_gui_element

You should look up the gui settings options
:h guioptions
In vim/nvim.
I do:
set guioptions=egmrti
In my nvim startup file to remove menu, scrollbars, and a few other things. Against look at the documentation to see what each of those letters set/unset.

Related

Problem: Shutting down pc resets powerline fonts so they don't appear in VS Code (but they do in Ubuntu terminal)

I managed to get the Powerline fonts working on my Windows 10 pc to use in WSL, particularly in the VS Code terminal window so I can use the Agnoster oh-my-zsh terminal theme. I set it all up and everything works - cool.
BUT when I shutdown my pc and restart it, the font no longer works in VS Code.
However, it does still work in the ubuntu window. See ↓
https://i.imgur.com/SCyDrFM.png -- Sorry, I don't have enough rep to post images :(
I noticed it is not installed in the settings > font window
But it is installed in the control panel fonts window.
Current workaround
I can get the font to work again if I reinstall the font, at which point Windows will prompt me that The font is already installed, do I want to reinstall?. Click yes.
At which point the font will appear in the fonts settings (Add fonts) window.
What is going wrong with the font installation? Reinstalling the font after every boot seems tedious... I suppose I can get a script to automate that on startup but I really want to get to the root cause.
EDIT
So I just found the fix - had to right click on the .ttf file and 🛡️Install for all users.
I don't know why installing it as the local user didn't work but hey ¯\_(ツ)_/¯
I found the answer to my own question...
Have to right click on the .ttf file and 🛡️Install for all users.
It seems that if the font is not listed in the Settings > Personalization > Fonts window, VS Code will not find it. Installing for all users makes the font persist there after reboot.
You can install the Powerline Fonts with the following command:
sudo apt-get install fonts-powerline
And starting VS Code from your WSL prompt with command code .

How can I use iterm as default terminal on macOS?

I want to make iTerm2 as my default terminal on macOS,
I open iTerm2 and hit to make iTerm default Term
But it's not working!
And I go to default terminal preferences
But after open it I see this
(Open iTerm Build version 3.3.7)
Menu: iTerm2 > Make iTerm2 Default Term
It sounds like you need to rebuild your macOS' LaunchServices.
To do this, download OnyX and choose the version based on your current macOS version.
The option that you need is in the red box, and I'd suggest that you UNCHECK anything that you don't need or don't know; otherwise, you might end up with deleting data that you might need:
After that, you can try again with the built-in Make iTerm2 Default Term option in iTerm2 (if this option is greyed out for you, click option + the iTerm menu button to re-enable it again).
There are ways to do this through the command line without downloading third-party apps, but I trust OnyX enough to hand it the job.
However, if you decide to do it from the command line, make sure you type the command that corresponds to your current macOS version. More on that here.
Hope this helps :)
Use this location instead:
/Applications/iTerm.app/Contents/MacOS/iTerm2
but note that it will not solve your issue completely. Termianal will start anyway, but this time, it will run iTerm2 - as you instructed it to do.
One thing you can do is find the file that opens a terminal (in my case it was metro opening in a React Native app). Find the file in your finder, right click on it, choose get info, then expand the Open With tab. There you should find a dropdown menu on what to open those kind of files with. The default is terminal, but choose iTerm2 and click on change all.
For example, in my situation I had to find launchPackager.command file under node_modules/react-native/scripts/. Do the above with that file and it will make iTerm your default terminal after clicking change all.
From where do you want to open the terminal? I was facing the same problem as you when I wanted to open the external terminal from Visual Studio Code.
I solved it by going to Code > Preferences > Settings. Look for terminal in the search bar and setting /Applications/iTerm.app in Terminal > External for your operating system.

How do you add the cmd+backspace functionality on VSCode's Integrated Terminal to the Mac's

I've been dying to get this working on the default terminal on the mac, this feature is really useful when you write something wrong, and can just cmd + backspace to delete all the lines.
I googled online several times but I couldn't find anything related to this.
Well, the functionality is already there: ⌃+U will delete everything left to your cursor to the beginning of the line. You cannot, however, change this keyboard shortcut.
You can change application-specific keybindings by installing additional tools like, for example, Karabiner.
Alternatively, you can install iTerm2 as a Terminal replacement. That will allow you to enable this - and many other text editing keybindings - with one click in the settings.

Qt Creator toolbar doesn't appear

I can't see the file, edit, Build, Debug, Tools, Window and Help buttons in Qt's IDE, and I dont know why.
Maybe there is a key combination like ctrl + (a letter or number) to show it, or maybe a problem with the installation.
Specs/other:
Ubuntu 14.04 LTS
GNOME Shell 3.10.4
This is how my IDE looks like, as you see, there is no toolbar.
What could be the problem?
Thanks in advance.
I am using Gnome3 as my window manager as well and This workaround worked for me
sudo apt-get remove appmenu-qt5
Souce : Link to bug report with the workaround
Do let me know if this works for you.
If you use KDE.
Try configure KDE. In menu: System Settings > Application Style > Window Decorations > Buttons add Application menu to Title bar.
After it, in Qt Creator must appear button with File, Edit, Build.. menu.
On Ubuntu 16.04, I used
export QT_QPA_PLATFORMTHEME=
and restarted Qt Creator.

VIM with Tree on OS X

I want to do text editing on a Mac and what I'd like to have is:
VIM editor built in
a tree view to open and switch between files more quickly
Should I go with vim and a tree plugin? Or is there a good text editing program with VIM built-in?
What are your experiences with that combination? Do you have any other recommendation?
Use NERDTree with macvim.
Have you tried gvim for mac http://macvim.org/OSX/index.php
I don't have a mac but do use gvim on various windows and linux installs.
Use VIM explorer
Vim has file explorer with standard installation, to open it on the left side, first open file with vim and do:
:vs
This will split the window in half with the same file, then:
:E
or
:Explore
there is help at the top and standard vim navigation works to open file or directory just hit Enter. To enable tree like view in there you will need this to be added to your ~/.vimrc:
g:netrw_liststyle=3
I never tried the above solutions but benefit of this is that you can get it working in couple of minutes with out of the box vim.
Bonus Feature
If you open directory with vim just hit i to change the modes.

Resources