<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentários sobre: Desabilitando a autoindentação do VIM</title>
	<atom:link href="http://petryx.blogrs.com.br/2009/04/03/desabilitando-a-autoidentacao-do-vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://petryx.blogrs.com.br/2009/04/03/desabilitando-a-autoidentacao-do-vim/</link>
	<description>Linux,Java,Postgresql,Banco de dados, Processamento de imagens</description>
	<lastBuildDate>Thu, 29 Jul 2010 01:38:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Por: admin</title>
		<link>http://petryx.blogrs.com.br/2009/04/03/desabilitando-a-autoidentacao-do-vim/comment-page-1/#comment-8650</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 15 Jun 2009 22:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://petryx.blogrs.com.br/?p=142#comment-8650</guid>
		<description>Valeu Rogério.

Interessante teus macros</description>
		<content:encoded><![CDATA[<p>Valeu Rogério.</p>
<p>Interessante teus macros</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Rogério Schneider</title>
		<link>http://petryx.blogrs.com.br/2009/04/03/desabilitando-a-autoidentacao-do-vim/comment-page-1/#comment-8617</link>
		<dc:creator>Rogério Schneider</dc:creator>
		<pubDate>Sun, 14 Jun 2009 23:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://petryx.blogrs.com.br/?p=142#comment-8617</guid>
		<description>Oi Marlon!

Vou colar aqui o meu vimrc, acho legal compartilhar as macros que eu uso, tornam a vida mais fácil :)


# cat ~/.vimrc

&quot; Basic
set background=dark
set undolevels=200
set scrolloff=3
set backspace=indent,eol,start
set formatoptions=
set nowrap
set nostartofline
set nocompatible
set showcmd
set ttyfast
set ruler
set lazyredraw
set whichwrap=b,s,h,l,,~,[,]
set cpoptions=aABceFsmq
filetype plugin indent on
filetype plugin on

&quot; Backup
set backup                              &quot; keeps file backups
set backupdir=~/.vim/backup
set directory=~/.vim/tmp

&quot; Code
set showmatch                           &quot; shows matching block delimiters
set matchtime=5
set syntax=on                           &quot; nice colors when coding
highlight Vars ctermbg=yellow ctermfg=black
let m = matchadd(&#039;Vars&#039;, &#039;%\w\+%&#039;)      &quot; matches %VAR% %var% %T_var%
let m = matchadd(&#039;Vars&#039;, &#039;@\w\+@&#039;)      &quot; matches @VAR@ @var@ @T_var@
let m = matchadd(&#039;Vars&#039;, &#039;\$\w\+&#039;)      &quot; matches $VAR $var $T_var
set listchars=tab:&gt;-,trail:-            &quot; shows tabs and trailing spaces and tabs
set list

&quot; Indent
set autoindent                          &quot; indentation is important
set expandtab                           &quot; uses spaces for tab
set tabstop=4
set shiftwidth=4

&quot; Width
set textwidth=78                        &quot; try not to be much verbose when coding or writting e-mails
highlight Overwidth ctermbg=grey ctermfg=red
let m = matchadd(&#039;Overwidth&#039;, &#039;\%78v.*&#039;)    &quot; if we are passing the limits, warn

&quot; Search
set ignorecase
set smartcase
set hlsearch
set incsearch

&quot; Mappings
map  :bp                            &quot; previous opened file
map  :bn                            &quot; next opened file
map  :set wrap!set wrap?       &quot; wrap on/off
map  :set paste!set paste?     &quot; paste on/off
map  :set number!set number?   &quot; number on/off
&quot; rot13
map  ggVGg?                            &quot; encode/decode for fun

&quot; Defines
ab ==l ----------------------------------------------------------------------------
ab ==# ############################################################################
&quot; puts date in cvs format
map ,d :r!date +&quot;\%a \%b \%d \%Y&quot;
&quot; dos2unix
vmap ,du :s/\r//g
&quot; remove all trailing spaces and tabs
vmap ,tt :s/[ ]*$//g
&quot; replace all tabs with 4 spaces
vmap ,ts :s//    /g
&quot; normalize
map  ggVG,du        &quot; dos2unix entire file
map  ggVG,tt        &quot; remove trailing spaces and tabs for the entire file
map  ggVG,ts        &quot; replace tabs for spaces in the entire file

&quot; Status
set fileformats=unix,dos,mac
set laststatus=2
set statusline=%F\ %m%r%h%w\ [syntax:%y\ format:%{&amp;ff}]\ [%l/%L\ (%p%%)\ %l,%c]

&quot; Mouse
&quot;set mouse=a                &quot; use mouse for everything

&quot; Save folds
&quot;au BufWinLeave * mkview
&quot;au BufWinEnter * silent loadview


Att,
Rogério Schneider</description>
		<content:encoded><![CDATA[<p>Oi Marlon!</p>
<p>Vou colar aqui o meu vimrc, acho legal compartilhar as macros que eu uso, tornam a vida mais fácil <img src='http://petryx.blogrs.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p># cat ~/.vimrc</p>
<p>&#8221; Basic<br />
set background=dark<br />
set undolevels=200<br />
set scrolloff=3<br />
set backspace=indent,eol,start<br />
set formatoptions=<br />
set nowrap<br />
set nostartofline<br />
set nocompatible<br />
set showcmd<br />
set ttyfast<br />
set ruler<br />
set lazyredraw<br />
set whichwrap=b,s,h,l,,~,[,]<br />
set cpoptions=aABceFsmq<br />
filetype plugin indent on<br />
filetype plugin on</p>
<p>&#8221; Backup<br />
set backup                              &#8221; keeps file backups<br />
set backupdir=~/.vim/backup<br />
set directory=~/.vim/tmp</p>
<p>&#8221; Code<br />
set showmatch                           &#8221; shows matching block delimiters<br />
set matchtime=5<br />
set syntax=on                           &#8221; nice colors when coding<br />
highlight Vars ctermbg=yellow ctermfg=black<br />
let m = matchadd(&#8216;Vars&#8217;, &#8216;%\w\+%&#8217;)      &#8221; matches %VAR% %var% %T_var%<br />
let m = matchadd(&#8216;Vars&#8217;, &#8216;@\w\+@&#8217;)      &#8221; matches @VAR@ @var@ @T_var@<br />
let m = matchadd(&#8216;Vars&#8217;, &#8216;\$\w\+&#8217;)      &#8221; matches $VAR $var $T_var<br />
set listchars=tab:&gt;-,trail:-            &#8221; shows tabs and trailing spaces and tabs<br />
set list</p>
<p>&#8221; Indent<br />
set autoindent                          &#8221; indentation is important<br />
set expandtab                           &#8221; uses spaces for tab<br />
set tabstop=4<br />
set shiftwidth=4</p>
<p>&#8221; Width<br />
set textwidth=78                        &#8221; try not to be much verbose when coding or writting e-mails<br />
highlight Overwidth ctermbg=grey ctermfg=red<br />
let m = matchadd(&#8216;Overwidth&#8217;, &#8216;\%78v.*&#8217;)    &#8221; if we are passing the limits, warn</p>
<p>&#8221; Search<br />
set ignorecase<br />
set smartcase<br />
set hlsearch<br />
set incsearch</p>
<p>&#8221; Mappings<br />
map  :bp                            &#8221; previous opened file<br />
map  :bn                            &#8221; next opened file<br />
map  :set wrap!set wrap?       &#8221; wrap on/off<br />
map  :set paste!set paste?     &#8221; paste on/off<br />
map  :set number!set number?   &#8221; number on/off<br />
&#8221; rot13<br />
map  ggVGg?                            &#8221; encode/decode for fun</p>
<p>&#8221; Defines<br />
ab ==l &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
ab ==# ############################################################################<br />
&#8221; puts date in cvs format<br />
map ,d :r!date +&#8221;\%a \%b \%d \%Y&#8221;<br />
&#8221; dos2unix<br />
vmap ,du :s/\r//g<br />
&#8221; remove all trailing spaces and tabs<br />
vmap ,tt :s/[ ]*$//g<br />
&#8221; replace all tabs with 4 spaces<br />
vmap ,ts :s//    /g<br />
&#8221; normalize<br />
map  ggVG,du        &#8221; dos2unix entire file<br />
map  ggVG,tt        &#8221; remove trailing spaces and tabs for the entire file<br />
map  ggVG,ts        &#8221; replace tabs for spaces in the entire file</p>
<p>&#8221; Status<br />
set fileformats=unix,dos,mac<br />
set laststatus=2<br />
set statusline=%F\ %m%r%h%w\ [syntax:%y\ format:%{&amp;ff}]\ [%l/%L\ (%p%%)\ %l,%c]</p>
<p>&#8221; Mouse<br />
&#8220;set mouse=a                &#8221; use mouse for everything</p>
<p>&#8221; Save folds<br />
&#8220;au BufWinLeave * mkview<br />
&#8220;au BufWinEnter * silent loadview</p>
<p>Att,<br />
Rogério Schneider</p>
]]></content:encoded>
	</item>
</channel>
</rss>
