Skip to content
This repository has been archived by the owner on Dec 28, 2019. It is now read-only.

Commit

Permalink
setlocal for the newly created splits.
Browse files Browse the repository at this point in the history
Fixes issue #10.
  • Loading branch information
mikewest committed Oct 9, 2011
1 parent d2546f4 commit 07cb5a9
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions plugin/vimroom.vim
Expand Up @@ -161,38 +161,38 @@ function! <SID>VimroomToggle()
let s:sidebar = s:sidebar_size()
" Turn off status bar
if s:save_laststatus != ""
set laststatus=0
setlocal laststatus=0
endif
if g:vimroom_min_sidebar_width
" Create the left sidebar
exec( "silent leftabove " . s:sidebar . "vsplit new" )
set noma
set nocursorline
set nonumber
set norelativenumber
setlocal noma
setlocal nocursorline
setlocal nonumber
setlocal norelativenumber
wincmd l
" Create the right sidebar
exec( "silent rightbelow " . s:sidebar . "vsplit new" )
set noma
set nocursorline
set nonumber
set norelativenumber
setlocal noma
setlocal nocursorline
setlocal nonumber
setlocal norelativenumber
wincmd h
endif
if g:vimroom_sidebar_height
" Create the top sidebar
exec( "silent leftabove " . g:vimroom_sidebar_height . "split new" )
set noma
set nocursorline
set nonumber
set norelativenumber
setlocal noma
setlocal nocursorline
setlocal nonumber
setlocal norelativenumber
wincmd j
" Create the bottom sidebar
exec( "silent rightbelow " . g:vimroom_sidebar_height . "split new" )
set noma
set nocursorline
set nonumber
set norelativenumber
setlocal noma
setlocal nocursorline
setlocal nonumber
setlocal norelativenumber
wincmd k
endif
" Setup wrapping, line breaking, and push the cursor down
Expand Down

0 comments on commit 07cb5a9

Please sign in to comment.