Wiki: DebugInfo: OtavioDotVimRc


Detailed view of a page, which is probably more useful for debugging than anything else.

Querying backend directly for 'OtavioDotVimRc'

get_pagedata('OtavioDotVimRc')
 _cached_html 
transformedtext Object
(
    [_type] => pagetype_wikitext Object
        (
        )

    [_basepage] => OtavioDotVimRc
    [_content] => Array
        (
            [0] => <div class="wikitext"><pre class="tightenable top">
&quot;
&quot;       ~/.vimrc
&quot;       Otávio Corrêa Cordeiro
&quot;       cordeiro@exatas.unisinos.br
&quot;       Brazil, 30 de junho de 2004
&quot;       versão 0.9
&quot;

&quot; Seta o tamanho do TAB e redefine a statusbar
set ts=4 sts=4 sw=4 smarttab noexpandtab
set statusline=[%n]\ %f\ %(\ %M%R%H)%)\=Pos=&lt;%l\,%c%V&gt;\ ASCII=%b\ HEX=%B

&quot; Não tirar esta linha:
set nocompatible
&quot;
&quot; POPUP com o mouse, no Linux
set mousemodel=popup
&quot;

&quot; Faz o Backspace funcionar corretamente
&quot;imap &lt;BackSpace&gt; &lt;Left&gt;&lt;Del&gt;
set backspace=indent,eol,start
&quot;

&quot; Desabilita Backup ;)
set nobackup
set nowritebackup
&quot;

&quot; Sintaxe Colorida
syntax enable
&quot;

&quot; Reconhece os tipos de arquivos.
filetype plugin indent on
&quot;

&quot; Destaca os paranteses/chaves/colchetes quando sao fechados
set showmatch
&quot;

&quot; Lembra do diretório do último arquivo aberto
set browsedir=buffer
&quot;

&quot; No Windows adiciona o colar com clique em dois botões ou botão do meio.
map &lt;S-Insert&gt; &lt;MiddleMouse&gt;
map! &lt;S-Insert&gt; &lt;MiddleMouse&gt;
&quot;

&quot; Muda arquivos do formato Windows para o Linux e vice versa.
map ,w2u1 :se ff=unix
map ,w2u2 :1,$s/^M//g
&quot;

&quot; Avançar pelas palavras
nnoremap &lt;C-Left&gt; b
vnoremap &lt;C-S-Left&gt; b
nnoremap &lt;C-S-Left&gt; gh&lt;C-O&gt;b
inoremap &lt;C-S-Left&gt; &lt;C-O&gt;gh&lt;C-O&gt;b
nnoremap &lt;C-Right&gt; w
vnoremap &lt;C-S-Right&gt; w
nnoremap &lt;C-S-Right&gt; gh&lt;C-O&gt;w
inoremap &lt;C-S-Right&gt; &lt;C-O&gt;gh&lt;C-O&gt;w
&quot;

&quot; Procurar funcao...
map ,* :grep &quot;\&lt;&lt;cword&gt;\&gt;&quot; `find -name '*.[ch]'`&lt;CR&gt;
&quot;

&quot; Como deveria funcionar o TAB :-)
vmap &lt;tab&gt; &gt;gv
vmap &lt;s-tab&gt; &lt;gv
&quot;

&quot; Esconde o ponteiro do mouse quando se está digitando.
set mousehide
&quot;

&quot; Visual Bell
set visualbell
&quot;

&quot; Espaçoes e Tabulções
set listchars=tab:»·,trail:·
set list!
function MostrarEspacos()
        set listchars=tab:»·,trail:·
        set list!
endfunction
imap &lt;F12&gt; &lt;Esc&gt;:call MostrarEspacos()&lt;Cr&gt;
vmap &lt;F12&gt; &lt;Esc&gt;:call MostrarEspacos()&lt;Cr&gt;
map  &lt;F12&gt; :call MostrarEspacos()&lt;Cr&gt;
&quot;

&quot; Auto Completar
function Texfunctions()
        imap ( ()&lt;Left&gt;
        imap [ []&lt;Left&gt;
        imap { {}&lt;Left&gt;
endfunction
au FileType tex,bib call Texfunctions()

function Cfuncoes()
        imap ( ()&lt;Left&gt;
        imap [ []&lt;Left&gt;
        imap { {&lt;CR&gt;}&lt;Up&gt;&lt;End&gt;&lt;CR&gt;
endfunction
au FileType c,cpp,java,perl call Cfuncoes()

function! InsertTabWrapper(direction)
        let col = col('.') - 1
        if !col || getline('.')[col - 1] !~ '\k'
                return &quot;\&lt;tab&gt;&quot;
        elseif &quot;backward&quot; == a:direction
                return &quot;\&lt;c-p&gt;&quot;
        else
                return &quot;\&lt;c-n&gt;&quot;
        endif
endfunction
inoremap &lt;tab&gt; &lt;c-r&gt;=InsertTabWrapper (&quot;forward&quot;)&lt;cr&gt;
inoremap &lt;s-tab&gt; &lt;c-r&gt;=InsertTabWrapper (&quot;backward&quot;)&lt;cr&gt;
&quot;

&quot; Redimensiona o tamanho da janela do buffer atual.
if bufwinnr(1)
    map + &lt;C-W&gt;+
    map - &lt;C-W&gt;-
endif
&quot;

&quot; Seta tamanho da Janela do gVIM
if has('gui')
&quot;   set lines=45
&quot;   set columns=100
    set mouse=a
endif
&quot;

&quot; Seta posição para a Janela
&quot;if has('gui')
&quot;   winpos 50 0
&quot;endif
&quot;

&quot; Seta o esquema de cor
colorscheme darkblue
&quot;

&quot; Seta fonte
&quot;set guifont=Monospace 12
&quot;

&quot; Numera as linhas
set number
set ruler
&quot;

&quot; Seta auto-indent
set autoindent
&quot;

&quot; Tira o menu do modo gráfico (gVIM)
&quot;set guioptions-=T
&quot;

&quot; Não deixa quebrar as linhas (odeio linhas quebradas)
set nowrap
&quot;

&quot; No Linux
if has(&quot;unix&quot;)
    &quot; Dicionário
    set dictionary+=$HOME/.vim/pt_BR.dic
    set complete-=k complete+=k
    &quot;
    &quot; Seta a fonte no Linux
    set guifont=Monospace
    &quot;
    &quot; For Taglist
    nnoremap &lt;silent&gt; &lt;F8&gt; :Tlist&lt;CR&gt;
    nnoremap &lt;silent&gt; &lt;F9&gt; :TlistSync&lt;CR&gt;
    let Tlist_Ctags_Cmd = '/home/rcsd/cordeiro/.vim/bin/ctags'
    let Tlist_Use_Right_Window = 0
    let Tlist_Sort_Type = &quot;name&quot;
    &quot;
endif

&quot; No Windows deixar essas linhas ....
if has(&quot;win32&quot;)
    source $VIMRUNTIME/vimrc_example.vim
    source $VIMRUNTIME/mswin.vim
    behave mswin
    set diffexpr=MyDiff()
    function MyDiff()
        let opt = ''
        if &amp;diffopt =~ 'icase' | let opt = opt . '-i ' | endif
        if &amp;diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
        silent execute '!C:\PROGRAMAS\VIM\VIM62\diff -a ' . opt . '&quot;' . v:fname_in . '&quot; &quot;' . v:fname_new . '&quot; &gt; &quot;' . v:fname_out . '&quot;'
    endfunction
endif
&quot;</pre>
<hr />
<p class="tightenable top bottom">
            [1] => cached_wikilink Object
                (
                    [_page] => CategoryVimRc
                )

            [2] => </p>
</div>

        )

)
 hits  5027
get_versiondata('OtavioDotVimRc',24)
 %content  <verbatim> " " ~/.vimrc " Ot ...
 author  204.4.130.140
 author_id  204.4.130.140
 is_minor_edit   
 markup  2
 mtime  1194521310
 pagetype  wikitext
get_versiondata('OtavioDotVimRc',23)
 %content  <verbatim> " " ~/.vimrc " Ot ...
 _supplanted  1194521310
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1186723327
 pagetype  wikitext
get_versiondata('OtavioDotVimRc',22)
 %content  <verbatim> " " ~/.vimrc " Ot ...
 _supplanted  1186723327
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1186717557
 pagetype  wikitext
get_versiondata('OtavioDotVimRc',18)
 %content  <verbatim> " " ~/.vimrc " Ot ...
 _supplanted  1183070467
 author  AristotlePagaltzis
 author_id  AristotlePagaltzis
 is_minor_edit  1
 markup  2
 mtime  1156146064
 pagetype  wikitext

Copyright © 2007 RobertMelton.com