May 2, 2010

My vim configuration

First Post!

* My configurations for gvim7,2
=============================================================
    * keep .vim and .vimrc in a dotfile folder in dropbox to keep all my PC's synced. use grsync to sync between the real .vim folder and dropbox folder.
    * a list of plugins I have now:
        * snipMate
            input several letters and , you input a huge pattern that is used often in a specific filetype. keywords can be specified inside patterns so pressing again will allowing jump to those keywords sequentially.
            customized pattern:
                * for .tex files:
\begin{figure}
   \begin{center}
   \includegraphics[width=${2:width}\textwidth]{${1:Figure}.png}
   \caption{${3:caption}}
   \end{center}
   \label{$1}
\end{figure}${4}
        * tlib (only for the sake of viki)
        * viki
            basic markup's, giving titles and bullets colors
            wiki functions, new keywords->creates and jumps to new files and back
            added filetype detection in .vimrc
        * deplate (viki compiler to latex and html)
        * NERD_tree
            file browser on the left. mapped to :NERDTreeToggle
        * supertab
            auto complete with words nearby, w/o tag database
        * customized ftplugin for
            % python
                pythonified tabs, mapped to run
                #C3 :vim :python map something for debugging
                #C3 :vim :python install python grammar checker
            % sweave (filename = rnoweb, extension = snw)
                R command to insert R code and output into latex
                mapped to sweave, pdflatex, and show pdf
            % tex
                latex: __the__ software for writing papers, drafts, etc
                mapped to bibtex and output as pdf