Skip to main content

Diigo Home
Home/ Groups/ VIM Editor
prajjwal Devkota

SuperTab continued. - Do all your insert-mode completion with Tab. : vim online - 0 views

  • This is a continuation of vimscript #182 by Gergely Kontra, who has

    asked me to take over support and maintenance.  So if you have any

    questions or suggestions, please direct them to me.  Please read the

    description below as some enhancements have been made as well.



    Description:

      This script allows you to use the tab key to do all your insert

      completion (:help ins-completion).



      Ex. To complete the word bar or baz

        foo bar baz

        b<Tab>





      This version of SuperTab supports several configuration options:

      NOTE: Please see the "Global Variables" fold in the script for more details.

      - The default completion type (defaults to keyword completion)

      - The duration that a non-default completion type will be retained before

        switching back to the default (defaults to retaining the current

        completion type until you manually kick off a different one).

      - Disabling of mid-word (word character to the left and right) completion

        (defaults to mid-word completion enabled).

      - Ability to change the default mapping to kick off forward or backward

        completion (defaults to <tab> and <s-tab>).

      - A discovery list to determine the default completion type to use for any

        given buffer (defaults to no discovery).

      - Option to highlight the first entry in the results if your completeopt has

        'menu' and 'longest'.
reckoner reckoner

vim : Message: Re: Tipps for debugging vim scripts? - 0 views

reckoner reckoner

vimsh.tar.gz - terminal/shell buffer script for python enabled [g]vim : vim online - 0 views

  • A terminal/shell buffer script for python enabled [g]vim (+python).  Allows execution of shell commands in a vim buffer.

    It does not use r! <cmd>.  



    Some of it's features:

          - It retains state because it's interactive.  For example, set an environment variable and it "stays" because the

             shell process is the same through the whole session.

          - It can run interactive line based programs like ftp/telnet/python/ssh/etc including masked password input (pty supported platform only).

          - Since it's a vim buffer you can go into normal mode and move around the buffer, yank, paste, use word completion, etc

          - Runs on Linux and Windows, primary development and testing is done on Linux.  Windows has limitations

             ( no interactive programs ) due to lack of pty support.

          

    Requirements:

    To use it you must have a python enabled [g]vim and run on a platform that supports pty ( i.e. Linux ),

    or pipes ( Windows, Linux, et all ). The pty version has much better formatted output than the pipes

    version and supports running interactive programs.  Please read vimsh.readme for other installation

    details.  Tested on vim 6.0 using Slackware and Gentoo Linux, FreeBSD, and Windows XP.  

    I'd also like to hear from users running other operating systems, i.e. QNX/Solaris/other BSDs.



    !!!!! WINDOWS USERS !!!!!, there is a zip file available at the above link. The version

    kept here on vimonline is a tarred, gzipped file ( tar.gz ). If you are going to use

    Winzip with the .tar.gz file be sure to turn off the "Tar file smart CR/LF handling". It doesn't work

    well.



    Please send me bug reports and suggestions if you use it.  I appreciate all the patches

    I've been getting lately!
reckoner reckoner

Selective diff with vim? - vim_use | Google Groups - 0 views

  • reckoner reckoner
     
    how to diff two buffers using diffthis
reckoner reckoner

$cdpath on windows xp - 0 views

  • You're welcome. It turns out that it works if you set it like this:

    set cdpath+=C:/Documents\\\ and\\\ Settings/rpdooling

    or like this:

    let &cdpath = ",,,C:/Documents\\ and\\ Settings/rpdooling

    I don't understand why and I'm trying to find out from the vim
    mailing list, which is where that solution came from.

    Regards,
    Gary
reckoner reckoner

Tip #77 - Displaying search results using folds : vim online - 0 views

  • A guy I work with told me about a function that an old IBM text editor had that he said was useful, and that is to create folds in the file after a search such that every line that is visible contains the search pattern(except possibly the first). All lines that do not contain the search pattern are folded up to the last occurence of the pattern or the top of the file.  

    One use for such a function is to be able to make a quick and dirty api of a source file.  For example, if working in Java, you could run the function using the pattern "public|protected|private" and ithe results would be that only the method headers would be visible (well, close enough).  
  • reckoner reckoner
     
    call Foldsearch(pattern)
reckoner reckoner

cecscope - command and menu driven cscope interface : vim online - 0 views

  • (requires vim7.0aa snapshot #188 or later)

    DrChip's cscope interface supports commands:



        CS     [cdefgist]   : cscope

        CSl[!] [cdefgist]   : locallist style (! restores efm)

        CSs[!] [cdefgist]   : split window and use cscope



        !            split vertically

        c (calls)    find functions calling function under cursor

        d (called)   find functions called by function under cursor

        e (egrep)    egrep search for the word under cursor

        f (file)     open the file named under cursor

        g (global)   find global definition(s) of word under cursor

        i (includes) find files that #include file named under cursor

        s (symbol)   find all references to the word under cursor

        t (text)     find all instances of the word under cursor
reckoner reckoner

How can I work on VIM for python code such as cscope for C code? - 0 views

  • How can I work on VIM for python code such as cscope for C code?
  • Change to the top level directory that contains your python source
    files, and do
    find -name '*.py' > cscope.files
    cscope -b
reckoner reckoner

python_match.vim - Extend the % motion and define g%, [%, and ]% motions for Python files :... - 0 views

  • reckoner reckoner
     
    This script redefines the % motion so that (in addition to its usual behavior) it cycles through if/elif/else, try/except/catch, for/continue/break, and while/continue/break structures. The script also defines g% to cycle in the opposite direction. Two ot
reckoner reckoner

VimOutliner.org :: Work fast. Think well. - 0 views

  • Vim Outliner is a vim plugin that turns the powerful vim editor into a powerful outliner of the likes of GrandView, More and MaxThink. It is keyboarder friendly and very fast. If you can touchtype, you can outline as fast as you think.
reckoner reckoner

Übergibson: Embedding vim Settings in the File You're Editing - 0 views

  • lets you embed options in the file itself so that other people who edit the file in vim will see it the way you do—all the tabs will line up correctly, etc., regardless of how they have their ~/.vimrc file set up. This is called a modeline, in the parlance of our times.
reckoner reckoner

minibufexpl.vim - Elegant buffer explorer - takes very little screen space : vim online - 0 views


  • description
    Several modern GUI editors list your open buffers as tabs along the top or bottom of your screen (VisualStudio, DreamWeaver, EditPlus and UltraEdit come to mind), now we have this feature in VIM! You can checkout a screenshot here: http://www.wavell.net/vim/vim_screenshot.gif.



    You can quickly switch buffers by double-clicking the appropriate "tab" (if you don't want to use the mouse just put the cursor on the "tab" and press enter). As you open and close buffers the tabs get updated. Buffers that are modified get visually marked and buffers that are open in a window get visually marked. The -MiniBufferExplorer- opens automatically when you open more than one eligible buffer (no need to open the explorer if you’re only editing one file.) -MiniBufExplorer- doesn't bother showing non-modifiable or hidden buffers. You can delete buffers by selecting them and pressing d on the keyboard.
reckoner reckoner

A Collection of Vim Tips | Ayman Hourieh's Blog - 0 views

    • SuperTab: Makes all insert-mode completion done with tab. To use, simply press TAB while in edit mode.
    • minibufexpl: Adds a buffer explorer to the top of Vim's window, simplifies working with buffers.
    • taglist: A source code browser that works with many languages, including C/C++, Java, Python, Perl, PHP, ...
    • vcscommand: SVN/CVS integration.
    • to auto-indent a piece of code, highlight it in visual mode, and press =. To auto-indent the current line, press ==.
    • Use gq to wrap the highlighted peice of text.
reckoner reckoner

Tip #63 - Applying substitutes to a visual block : vim online - 0 views

  • Applying substitutes to a visual block



    <!-- karma table -->





     tip karma 
     Rating 155/45, Viewed by 8082 




    Read and edit this tip on the
    Vim tip wiki.
    The wiki may have a more recent version of this tip.





    created:
     
    March 28, 2001 8:26
        
    complexity:
     
    intermediate


    author:
     
    Chip Campbell
        
    as of Vim:
     
    5.7



    If you'd like to apply a substitute, or even any ex command, to a visual-block

    selected text region (ctrl-v and move), then you'll want Stefan Roemer's

    http://www.erols.com/astronaut/vim/vimscript/vis.vim .  Just source it in,

    and then press ":B".  On the command line you'll see



    :'<,'>BCtrl-V



    Just continue with the substitute or whatever...



    :'<,'>B s/abc/ABC/g



    and the substitute will be applied to just that block of text

reckoner reckoner

Tip #814 - Use cygwin shell : vim online - 0 views

  • set shell=C:/cygwin/bin/bash

    set shellcmdflag=--login\ -c

    set shellxquote=\"
reckoner reckoner

vimpdb - Google Code - 0 views

    • Tired of debugging Python using print statements?
    • Don't like the cumbersome PDB (Python debugger) console?
    • Prefer using Vim for coding your Python programs?

    VimPdb is the solution - allows debugging Python in an IDE-fashion, right within the Vim editor.

1 - 20 of 136 Next › Last »
Showing 20 items per page
Join this group