Can I make the font size in my NERDTree window smaller than in all other windows of gvim?
Generally I need large font size of 15 but I'd like the folder tree window of NERDTree to be 12 - is this possible to set using code in _vimrc. Currently I have the following simple setting:
set guifont=Consolas:h16:cANSI
Slightly duplicated question and answered here:
Stackoverflow Post
Stackoverflow Post
Not possible bro. Vim uses the same font size for all its windows.
This is one (if not the only :D) limitation of Vim.
Related
I only case about the font size, I want nothing to do with the font other than its size set guifont makes me put in a font, therefor its useless to me.
Update: all of the answers here weren't what I was asking for but I gave up on trying to fix it and moved on to using vim on Cmder.
For nvim-qt used in Windows, the following command works after nvim-qt has started:
execute join(["GuiFont! ", split(GuiFont, ":")[0], ":h14"], "")
With your font size in place of 14.
To set the font size at start, you have to use ginit.vim instead of init.vim, since init.vim starts before the GUI is loaded. Location of ginit.vim is C:\Users[User]\AppData\Local\nvim.
I first tried to install powerline on my computer and had problems with the arrows not rendering correctly which was easily corrected by installing a patched font. However, although the arrow symbols were rendered correctly they were much smaller than they were supposed to be.
This problem persisted when I switched from powerline to airline. I found that the problem only existed in urxvt. Gnome-terminal rendered the arrow size correctly, but placed the arrows where offset slightly from their proper positions on the line.
Here are the relevant entries in my ~/.vimrc file:
set termfont=Liberation\ Mono\ for\ Powerline\ 10
let g:airline_powerline_fonts = 1
This patched fonts method is a fallback method which works for every terminal, with the exception of rxvt. It is not about the powerline theme, it is about the font size. It doesn't work with 10. Possible solutions can be found here or here.
OS: Mac OS X 10.10.3
MacVim: 7.4.712
I am trying to use MacVim to write LaTeX instead of Sublime Text.
So I set the font "Lucida Grande" from menu of MacVim but it looked strange:
This is what Lucida Grande looks like in Sublime Text:
Then I set "Helvetica" in MacVim and it looks like:
It seems that MacVim tries to display fonts in mono but this is not what I want. How could I set the font properly in MacVim just like what Sublime Text does?
While GVIM / MacVim can use proportional fonts (on certain platforms), there's no way around the screen-cell based addressing in Vim; it's a fundamental concept (taken from the terminal), and many features (like blockwise selections) depend on it.
So, you have to live with the fact that an i will take as much horizontal space as a W, and choose a corresponding (monospaced) font accordingly. This way, your editor will look much better :-)
This question already has answers here:
How do I set the default font size in Vim?
(8 answers)
Closed 8 years ago.
gvim for windows has tiny text and icons on my ultra-HD Dell laptop (3200-1800) . In fact, it is barely readable. How does one change gvim gui fonts and increases the icons to obtain readable text on a high resolution, windows 8 laptop?
you should configure you font size, one possible solution is is like this(you can put it in your vimrc):
set guifont=Consolas:h13
"Consolas" is the font name and "h13" is the font size, you should change 13 to a proper number~
(I'm not sure about Windows, but...)
It really depends. If you're using vim from a terminal emulator the settings must be changed in your terminal emulator (let's say PuTTy).
But if you're using GVIM, then use :set guifont font\ name\ size to specify the font size.
In order to check witch font and size you're using, simple call :set guifont and it will promt you with the current settings
In my case I use the following: :set guifont=Ubuntu\ Mono\ 18
I have a color issue on iTerm 2 (both stable and beta release) using VIM (last version).
This is a screenshot on iTerm 2 using vim-css-color plugin :
And the same on the Terminal.app :
As you can see, iTerm renders quite strange colors (and not only with this plugin, this is just an example). I've been playing with the contrast slider in iTerm2 prefererences and every Vim parameter i found so far (x-term-color-256, etc etc).
This is my .vimrc file : https://github.com/nanark/.vim/blob/master/vimrc
Any idea ?
A terminal with 256 color support (like iTerm 2) is simply not capable of displaying the full range of colors.
The css plugin uses a conversion to approximate the hex color code in the terminal. This was designed to work with the default set of colors used by xterm based on the comments in the code.
If you want an accurate preview, you should use gvim or macvim.