Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8260031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:59:41+00:00 2026-06-08T02:59:41+00:00

I am trying to apply the following setting for my .tex files: set scroll=4

  • 0

I am trying to apply the following setting for my .tex files:

set scroll=4

I’ve put this both in my ~/.vimrc and in my ~/.vim/ftplugin/tex.vim file.
For general files, this works fine. For .tex files, all other settings in these files are applied. But not the scroll setting.

Note: I have latex-suite installed, which is what I suspect is overriding the setting.

When I type

:verbose set scroll

I get:

  scroll=22
    Last set from ~/.vim/ftplugin/tex.vim

Note: 22 is half the height (number of lines) of the gvim window.

If I source the ~/.vim/ftplugin/tex.vim file while editing, the scroll setting is applied fine, but I want it to be applied along with the other settings at startup.

Thanks

Update:

Thanks for the good advice. It didn’t work yet though. I looked at scriptnames and here’s the output:

    62: /home/patrick/.vim/after/ftplugin/tex.vim
    63: /home/patrick/.vim/indent/tex.vim
    64: /usr/share/vim/vim72/syntax/bib.vim
    65: /home/patrick/.vim/ftplugin/bib_latexSuite.vim
    66: /home/patrick/.vim/after/ftplugin/bib.vim
    67: /usr/share/vim/vim72/indent/bib.vim
    68: /home/patrick/.vim/nerdtree_plugin/exec_menuitem.vim
    69: /home/patrick/.vim/nerdtree_plugin/fs_menu.vim

As you can see, I also added a bib.vim file in the after/ftplugin directory, because I’m loading 4 tabs at startup, one of which is a bib file.
However, it still doesn’t work.

Update 2

Well I still got the same problem, but with more information. I’m now running a Windows build of vim. Again vim claims scroll was last set in ~/.vimrc. But this gets overridden whenever

  • I open a new tab (with any old file, so the vimrc setting should
    still apply)
  • I resize the gvim window

Hence I no longer believe this has anything to do with latex-suite or the order in which the settings are called.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:59:43+00:00Added an answer on June 8, 2026 at 2:59 am

    I figured out a fix/hack. It probably hasn’t got anything to do with latex suite or all that. It is overridden when a new tab is opened or the window is resized. A quick fix is to use

    noremap <C-u> 4<C-u>
    

    Which consequently is always used when scrolling. This also sets the scroll variable to 4, so it will apply to as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to apply the Decorator Design Pattern to the following situation: I've 3
im trying to apply this JSON code to my Google Map: [ { stylers:
I am trying to apply smoothing filter to image . But I get this
I am following the book I am reading, and trying to apply it to
I've been trying to apply xsl to the result set returned by Analysis Service
I am trying to apply RotateTransform to a Rect object with the following code.
I am trying to apply a text-shadow effect to Cufon, following some examples I've
I am trying to apply css in the Zend Framework. My css file is
Following is my query in which i am trying to apply formula on users.i_dob
Im trying to apply different background color to even and odd items in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.