You are not logged in.

#1 2014-03-15 05:42:22

diligentchaos
Member
Registered: 2012-11-27
Posts: 12

Extra space below vim buffer in urxvt [SOLVED]

I'm having a slightly annoying problem with vim in urxvt. I'm running i3. Anyone have any idea why there's an extra space below my vim buffer?

Ahqd7Qt.png

.vimrc:

" -------------------------
" GENERAL SETTINGS
" -------------------------

set nocompatible
set t_Co=256
call pathogen#infect()

" colors
syntax enable
set background=dark
colorscheme ir_black
"let g:Powerline_symbols = 'unicode'
let g:Powerline_symbols = 'fancy'
set fillchars+=stl:\ ,stlnc:\
set encoding=utf8

" how many lines of history
set history=700

" show what youre typing as command
set showcmd

" set autoread when file changed from outside
set autoread

" enable filetype plugins
filetype on
filetype plugin on
filetype indent on

" status line
set laststatus=2
set cmdheight=1
set statusline=%F%m%r%h%w\ (%{&ff}){%Y}\ [%l,%v][%p%%]

" always show current position
set ruler

" set line number
set number

" configure backspace
set backspace=eol,start,indent
set whichwrap+=<,>,h,l

" ignore case while searching
set ignorecase

" be smart when searching
set smartcase

" highlight search results 
set hlsearch

" make search act like modern browsers
set incsearch

" show matching brackets
set showmatch
" how long to blink brackets
set mat=3

" no annoying sounds on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500

" indenting/tabs
set autoindent
set si "smart indent
set wrap "wrap lines
set expandtab
set smarttab
set shiftwidth=2
set tabstop=2
set sts=2

" line break on 500 characters
set lbr
set tw=500

" enable mouse support
"set mouse=a

" remap jj to escpae in insert mode
inoremap jj <Esc>
nnoremap JJJJ <Nop>

" space will toggle folds
nnoremap <space> za

" Search mappings: These will make it so that going to the next one in a
" search will center on the line it's found in.
map N Nzz
map n nzz


" Since I use linux, I want this
let g:clipbrdDefaultReg = '+'

set fillchars+=stl:\ ,stlnc:\
"autocmd FileType ruby setlocal sw=2 ts=2 sts=2
"autocmd FileType html setlocal sw=2 ts=2 sts=2
"autocmd FileType erb setlocal sw=2 ts=2 sts=2
"autocmd FileType javascript setlocal sw=2 ts=2 sts=2


" NERDTREE
let NERDTreeHighlightCursorline=1
"autocmd vimenter * if !argc() | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>

Last edited by diligentchaos (2014-03-16 04:31:23)

Offline

#2 2014-03-15 06:10:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Extra space below vim buffer in urxvt [SOLVED]

Is it still there if you remove the powerline stuff?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-03-15 06:11:41

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Extra space below vim buffer in urxvt [SOLVED]

it's because the terminal window size is larger than the number of lines, but less than the number of lines + 1. it's the same in all terminals
http://picpaste.com/pics/2014-03-14-230 … 863877.png

Offline

#4 2014-03-15 18:58:30

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: Extra space below vim buffer in urxvt [SOLVED]

There are three things you can do

  • Ignore it

  • Set your wm to respect size hints (if you use a tiler that can obviously cause gaps in your layout instead)

  • Use gvim

Last edited by Mr.Elendig (2014-03-15 18:58:50)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2014-03-16 04:51:28

diligentchaos
Member
Registered: 2012-11-27
Posts: 12

Re: Extra space below vim buffer in urxvt [SOLVED]

@HilmTye you're right. i fixed it by making the fonts in WM smaller

Offline

#6 2014-11-15 03:36:07

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Extra space below vim buffer in urxvt [SOLVED]

diligentchaos wrote:

@HilmTye you're right. i fixed it by making the fonts in WM smaller

Fonts in WM??? What do you mean???? How exactly have you fixed this??? I'm having this exact problem

Offline

#7 2014-11-15 12:36:55

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: Extra space below vim buffer in urxvt [SOLVED]

fixles wrote:
diligentchaos wrote:

@HilmTye you're right. i fixed it by making the fonts in WM smaller

Fonts in WM??? What do you mean???? How exactly have you fixed this??? I'm having this exact problem

That is not a fix, that is a unreliable workaround. See my previous post.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB