Skip to content

Commit

Permalink
Navigation over 'display lines', not 'logical lines'.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewest committed Jan 2, 2011
1 parent c00c037 commit e6e99f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/vimroom.vim
Expand Up @@ -154,6 +154,14 @@ function! <SID>VimroomToggle()
if s:save_scrolloff != ""
exec( "set scrolloff=".g:vimroom_scrolloff )
endif

" Setup navigation over "display lines", not "logical lines" if
" mappings for the navigation keys don't already exist.
map <unique> <silent> <Up> g<Up>
map <unique> <silent> <Down> g<Down>
map <unique> <silent> k gk
map <unique> <silent> j gj
" Hide distracting visual elements
exec( "hi VertSplit ctermbg=" . g:vimroom_background . " ctermfg=" . g:vimroom_background . " guifg=" . g:vimroom_background . " guibg=" . g:vimroom_background )
exec( "hi NonText ctermbg=" . g:vimroom_background . " ctermfg=" . g:vimroom_background . " guifg=" . g:vimroom_background . " guibg=" . g:vimroom_background )
Expand Down

0 comments on commit e6e99f8

Please sign in to comment.