Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. Vim Qt GUI
Forum Updated to NodeBB v4.3 + New Features

Vim Qt GUI

Scheduled Pinned Locked Moved Showcase
12 Posts 5 Posters 21.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    equalsraf
    wrote on last edited by
    #1

    Scratching my own curiosity and trying to avoid some of gVIM's annoying glitches, I implemented a Qt GUI for VIM. It is still rough around the edges, but it is good enough to write its own code :D. Lots of bugs to fix(mostly graphical glitches), so feel free to poke me if you find some.

    Repository and build instructions:

    • https://code.google.com/p/vim-qt/
    • https://gitorious.org/vim-qt
    • https://github.com/equalsraf/vim-qt

    And here is a peek:
    !http://media.raf.im/vim.png(Screenshot)!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Well done :) curiosity moves things ahead :)

      http://anavi.org/

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rajitsingh
        wrote on last edited by
        #3

        Been using it for a few days, and it's become my primary text editor. A few questions, though:

        1. Does it not support colored synatx highligting for QML and javascript?
        2. Does it have the .vimrc file? I tried looking for it to permanently change the color scheme, but couldn't find it in my home dir.
        3. Is that color scheme you are using in the screen shot 'slate'?

        Chakra GNU/Linux x86_64 | KDE 4.6.4

        1 Reply Last reply
        0
        • E Offline
          E Offline
          equalsraf
          wrote on last edited by
          #4

          I'll answer in reverse order, since the first question is the hardest:

          1. The color scheme is called slate2 https://vimcolorschemetest.googlecode.com/svn/colors/slate2.vim
          2. You need to create a new .vimrc, it won't be created by default
          3. It should support coloured syntax (the same as regular Vim). It may be having problems loading the correct syntax. Have you tried syntax manually in the "Syntax" menu?

          Concerning 1) Vim tries to load the colour definitions from the Vim shared folders. Its ability to find them depends on the flags given to ./configure. In what system are you running this? Do you have another version of Vim installed?

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rajitsingh
            wrote on last edited by
            #5

            @equalsraf
            I'm running it on Chakra. GVim was installed earlier, but installing QVim removed it as it was conflicting. Will try the tricks you mentioned. Thanks man!

            Chakra GNU/Linux x86_64 | KDE 4.6.4

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rajitsingh
              wrote on last edited by
              #6

              @equalsraf
              Also, I can add the tabs bar, but when I try to drag it and reposition it just above the editor area, it just disappears and gets disabled.

              Chakra GNU/Linux x86_64 | KDE 4.6.4

              1 Reply Last reply
              0
              • E Offline
                E Offline
                equalsraf
                wrote on last edited by
                #7

                @rajitsingh
                If are building from source, you can keep GVim, and use only the compiled executable. As long they were both compiled with the same configure options, they will share the configuration files.

                ./configure ...<options must match the gvim package --prefix etc>
                make
                ./vim -g

                The tabbar is another issue, I'll fix it later.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  giddie
                  wrote on last edited by
                  #8

                  Awww; thank you! This is a really exciting project. I find that the QVim window responds to resizing much better than GVim, apart from anything else. It feel significantly more responsive.

                  I'd love to see this merged into Vim proper. I'm hoping the ball is already rolling for this? Are there any big bugs that still need ironing out?

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    equalsraf
                    wrote on last edited by
                    #9

                    @giddie

                    The resizing handling is actually one the main reasons I got started with this :D.

                    No ball rolling yet. I need to get this stabilised first.

                    I'm still filling up bug reports :D. https://code.google.com/p/vim-qt/issues/list The most serious issue right now is in autoconf, this thing sort of builds by miracle. In more esoteric systems it has issues detecting the Qt libraries

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      rajitsingh
                      wrote on last edited by
                      #10

                      Just submitted 2 new issues to that list. Thanks for your great work!

                      Chakra GNU/Linux x86_64 | KDE 4.6.4

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        trusktr
                        wrote on last edited by
                        #11

                        Hi! I too am interested in doing something similar. Where can I find coumentation on how to connect a GUI to vim?

                        1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          equalsraf
                          wrote on last edited by
                          #12

                          There isn't a lot of written docs about it, other than the Vim source code itself.
                          There are a few places you have a look at:

                          • The best place to start looking at code is inside the gui_* files (gui_gtk_x11.c and gui_mac.c) you would have to create a file replacing those functions
                          • http://www.freehackers.org/VimIntegration
                          • If you do a search on Github there are a number of unofficial GUIs around - the iOS one is probably the latest
                          • There is vim-qt at https://bitbucket.org/equalsraf/vim-qt/wiki/Home
                          • Feel free to ask away, you can also find me at ##vim_qt in freenode
                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved