2014-08-30 4 views
0

~/.vimrc에 오른쪽 스크롤 막대가 없으므로 set guioptions-=r이 있습니다. 불행히도, 나는 그것을 스크롤 할 수는 없지만 vim (터미널에서 실행)에서 여전히 올바른 스크롤바를 볼 수 있습니다.Vim에서 오른쪽 스크롤바를 제거 할 수 없습니다

이 내 ~/.vimrc 파일 : 나는 사람이 어떻게 제거 스크롤을 얻을 방법을 가르쳐 수 있기를 바랍니다

set nocompatible  " We're running Vim, not Vi! 
syntax on    " Enable syntax highlighting 
filetype on   " Enable filetype detection 
filetype indent on " Enable filetype-specific indenting 
filetype plugin on " Enable filetype-specific plugins 

" Toggle paste with F2 so that pasting from external applications goes well 
nnoremap <F2> :set invpaste paste?<CR> 
set pastetoggle=<F2> 
set showmode 

" Mapping ctrl-c ctrl-space to intellisense 
inoremap <expr> <C-Space> pumvisible() \|\| &omnifunc == '' ? 
      \ "\<lt>C-n>" : 
      \ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" . 
      \ "\"\\<lt>c-n>\\<lt>c-p>\\<lt>c-n>\" :" . 
      \ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>" 
imap <[email protected]> <C-Space> 

" Ruby and Rails preferences 
set term=xterm-256color" 
colorscheme wombat256mod 
set guifont=Monaco:h12 
let g:NERDTreeWinPos = "right" 
set guioptions-=T " Removes top toolbar 
set guioptions-=r " Removes right hand scroll bar 
set go-=L " Removes left hand scroll bar 
autocmd User Rails let b:surround_{char2nr('-')} = "<% \r %>" " displays <%%> correctly 
:set cpoptions+=$ " puts a $ marker for the end of words/lines in cw/c$commands 

" Transparent background 
hi Normal   ctermfg=252 ctermbg=none 
hi NonText   ctermfg=250 ctermbg=none 

" Display line numbers 
set number 

.

+2

어떤 단말을 사용하십니까? 스크롤바는 터미널 설정과 함께 제공 될 가능성이 높습니다. – Kent

+0

표준 Linux 박하 터미널. –

답변

1

오른쪽 스크롤바가없는 경우 gui options- = r을 설정했습니다. [...] vim (터미널에서 실행)에서 스크롤 할 수는 없지만.

GUI 이외의 프로그램에서 GUI 관련 옵션이 효과가있는 이유는 무엇입니까?

보이는 스크롤바는 Vim이 아닌 터미널 에뮬레이터입니다.

스크롤바를 없애려면 터미널 에뮬레이터의 설정에서 스크롤바를 비활성화하십시오.

+0

아 물론! 터미널에서 스크롤바를 제거 할 수 있지만 제거 된 * 모든 곳 *. Vim을 실행하는 동안 스크롤 막대 만 원하지 않습니다. 나는 이것이 불가능하다고 생각할 수있다. –

+0

iTerm을 사용한다고 가정 한 이유는 무엇입니까? – romainl

+0

잘 모르시겠습니까? Linux Mint를 실행 중이고 거기에 기본 터미널이 있습니다. –