My vimrc: Difference between revisions

From EggeWiki
m (Created page with 'Here's my usually settings for vim. These settings work well with rxvt and Cygwin. <geshi> set softtabstop=2 set shiftwidth=2 set tabstop=2 set expandtab set nocompatible …')
 
mNo edit summary
Line 1: Line 1:
Here's my usually settings for vim.  These settings work well with [[rxvt]] and Cygwin.
Here's my usually settings for vim.  These settings work well with [[rxvt]] and Cygwin.


<geshi>
<geshi lang="vim" source="file">../../.vimrc</geshi>
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
 
set nocompatible          " We're running Vim, not Vi!
set t_Co=256
syntax on                " Enable syntax highlighting
colorscheme darkblue
filetype plugin indent on " Enable filetype-specific indenting and plugins
 
" Load matchit (% to bounce from do to end, etc.)
runtime! macros/matchit.vim
 
augroup myfiletypes
        " Clear old autocmds in group
        autocmd!
        " autoindent with two spaces, always expand tabs
        autocmd FileType ruby,eruby,yaml set ai sw=2 sts=2 et
augroup END
 
set viminfo='10,\"100,:20,%,n~/.viminfo
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
</geshi>


[[Category:Cygwin]]
[[Category:Cygwin]]

Revision as of 21:07, 22 July 2009

Here's my usually settings for vim. These settings work well with rxvt and Cygwin.

<geshi lang="vim" source="file">../../.vimrc</geshi>