Im not sure if this is caused by vim or iterm. However, when I press the Del key nothing happens and I need to press Ctrl + Del for it to forward delete. workaround: Explicitly set colorscheme, e.g. iTerm2 sometimes adds COLORFGBG, but sometimes not. The reason is iTerm use COLORFGBG, which vim can use to determine bg. But it still does not work when you run tmux in iTerm2. I would like to use the Del key to forward delete like it normally would on a text editor. iTerm2 works with no issue when TERMscreen-256color. Define the same background in Vim and in your terminal emulator. I am using vim on a Mac in iterm2 and an external Windows style keyboard.None of that is really a problem when the program you run in your terminal emulator doesn't paint the background of those cells but your Vim colorscheme does, which makes the effect described above apparent. Note that you also have a padding, here, that effectively prevents the grid to ever fill the window anyway. The width is not a multiple of 16 and the height is not a multiple of 38, so, with your current font settings it is impossible to fill the screen.įor that to be theoretically possible, you would need font settings that make individual cells 16.3px wide and 38.16px tall, or some other "impossible" ratio. Open Preferences and head to Profiles Keys. Now, your screen's dimensions appear to be 1630px * 2862px, which is rather unusual. iTerm allows us to add custom key bindings in our profile. In this case, the cell dimensions are 16px * 38px so the grid can only fit in a box whose dimensions are a multiple of 16 in width and a multiple of 38 in height. If the window's dimensions and the grid's dimension are incompatible, then the window can't be filled with the grid and you have that kind of gap. The general principle is that the screen of a terminal emulator is a grid where each cell has the same dimensions as the others and those dimensions are determined by the font and font size used. My friend, Jon Kinney, was showing me how hes able to jump into dev mode with his server, Rails console, database console, test suite and Vim all running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |