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

  • Home
  • SEARCH
  • 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 6009745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:00:56+00:00 2026-05-23T02:00:56+00:00

I nearly successfully migrated my vim settings form Linux (ubuntu) on Mac. What I

  • 0

I nearly successfully migrated my vim settings form Linux (ubuntu) on Mac. What I liked was the latex-suite for vim with the forward (press the compiling buttons and the generated dvi file will jumo straightly to this position) and inverse search (press CTR and the left mouse button in the dvi file and it will jump right to the place in the code of the tex file where you pressed). Under Linux it is working but not under MacVim. Here is a picture of the error message:

enter image description here

Here are my .vimrc settings for the latex suite:

" LateX SUITE HACKS
" =================
    " inverse | forward search (http://forum.ubuntuusers.de/topic/vim-vim-latexsuite-vim-gtk)
    " her are the forward search
        :let g:Tex_ViewRule_dvi = 'xdvi -editor "vim --servername xdvi --remote +\%l \%f" $* &'
        :let g:Tex_ViewRuleComplete_dvi = 'xdvi -editor "vim --servername xdiv --remote +\%l \%f" $* &'
    " settings for determining tex filetype
        :let g:tex_flavor = "latex"

        map ,lj :execute '!cd ' . expand(Tex_GetMainFileName(':p:h')) . ' && xdvi -editor "vim --servername 'v:servername' --remote-wait +\%l \%f" -sourceposition ' . line(".") . substitute(expand('%:p'),expand(Tex_GetMainFileName(':p:h')).'\/','','') . " " . expand(Tex_GetMainFileName(':p:r')) . ".dvi &" <CR><CR>

" default output of compiling (pressing ,lj) is dvi
:let g:Tex_DefaultTargetFormat="dvi"

I got these settings from http://vim.wikia.com/wiki/Vim_can_interact_with_xdvi
I’m starting vim with an alias like:

alias vi='/Applications/MacVim.app/Contents/MacOS/Vim -g'
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim -g'

It must have something to do with the xserver or maybe some wrong argument passing in the settings mentioned above. Hope someone can help me.

Matthias

  • 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-05-23T02:00:57+00:00Added an answer on May 23, 2026 at 2:00 am

    in your vimrc try changing the lines with vim --servername to use the full path of /Applications/MacVim.app/Contents/MacOS/Vim you could put this in a variable

    let g:vimPath = "/Applications/MacVim.app/Contents/MacOS/Vim"
    

    then

       :let g:Tex_ViewRule_dvi = 'xdvi -editor "' . g:vimPath . ' --servername xdvi --remote +\%l \%f" $* &'
        :let g:Tex_ViewRuleComplete_dvi = 'xdvi -editor "' . g:vimPath . ' --servername xdiv --remote +\%l \%f" $* &'
    " settings for determining tex filetype
        :let g:tex_flavor = "latex"
    
        map ,lj :execute '!cd ' . expand(Tex_GetMainFileName(':p:h')) . ' && xdvi -editor "' . g:vimPath . ' --servername 'v:servername' --remote-wait +\%l \%f" -sourceposition ' . line(".") . substitute(expand('%:p'),expand(Tex_GetMainFileName(':p:h')).'\/','','') . " " . expand(Tex_GetMainFileName(':p:r')) . ".dvi &" <CR><CR>
    

    Please note MacVim is different to plain gvim in a number of ways and is not a standard X client application, the differences can be found with the command :help macvim. The servername switch is still supported however so the above should help. Let me know how you go.

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

Sidebar

Related Questions

i nearly successfully integrated the automatic UITableViewCellHeight thingy, butone thing is very strange. If
Nearly identical to Query a Table's Foreign Key relationships , but for SQL Server
(Nearly solved, but not quite) (My temporary solution is to use a void method
I'm nearly done with a trackback system for my website, but have one last
I have nearly finished a free spellchecker library for Windows Mobile, and there are
I've nearly finished the development of a project and would like to test its
I hate seeing nearly every directory in my repository list each file twice, once
I am nearly finished with the development of an Android application. But there seems
In a recent project I have nearly completed we used an architecture that as
I used to work with eclipse for nearly all the languages I need. I'm

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.