[Lunar-commits] r20147 - in moonbase/trunk/zbeta: . vim-svn vim-svn/skel
Terry Chan
tchan at lunar-linux.org
Sat May 20 03:39:13 UTC 2006
Author: tchan
Date: 2006-05-20 03:39:12 +0000 (Sat, 20 May 2006)
New Revision: 20147
Added:
moonbase/trunk/zbeta/vim-svn/
moonbase/trunk/zbeta/vim-svn/BUILD
moonbase/trunk/zbeta/vim-svn/CONFLICTS
moonbase/trunk/zbeta/vim-svn/DEPENDS
moonbase/trunk/zbeta/vim-svn/DETAILS
moonbase/trunk/zbeta/vim-svn/skel/
moonbase/trunk/zbeta/vim-svn/skel/.vimrc
moonbase/trunk/zbeta/vim-svn/vimrc
Log:
Moved the vim-cvs module over here and made it into the vim-svn module.
Sourceforge cvs is severely borked right now and most projects have switched
over to svn as a result. vim-svn is updated much more frequently than vim-cvs.
Copied: moonbase/trunk/zbeta/vim-svn/BUILD (from rev 14648, moonbase/trunk/zbeta/vim-cvs/BUILD)
===================================================================
--- moonbase/trunk/zbeta/vim-svn/BUILD (rev 0)
+++ moonbase/trunk/zbeta/vim-svn/BUILD 2006-05-20 03:39:12 UTC (rev 20147)
@@ -0,0 +1,17 @@
+(
+
+ ./configure --prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --sysconfdir=/etc \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --datadir=/usr/share \
+ --localstatedir=/var \
+ --with-features=big \
+ $OPTS &&
+
+ default_make &&
+ ln -sf /usr/bin/vim /usr/bin/vi
+
+) > $C_FIFO 2>&1
Copied: moonbase/trunk/zbeta/vim-svn/CONFLICTS (from rev 14648, moonbase/trunk/zbeta/vim-cvs/CONFLICTS)
===================================================================
--- moonbase/trunk/zbeta/vim-svn/CONFLICTS (rev 0)
+++ moonbase/trunk/zbeta/vim-svn/CONFLICTS 2006-05-20 03:39:12 UTC (rev 20147)
@@ -0,0 +1 @@
+conflicts vim
Copied: moonbase/trunk/zbeta/vim-svn/DEPENDS (from rev 14648, moonbase/trunk/zbeta/vim-cvs/DEPENDS)
===================================================================
--- moonbase/trunk/zbeta/vim-svn/DEPENDS (rev 0)
+++ moonbase/trunk/zbeta/vim-svn/DEPENDS 2006-05-20 03:39:12 UTC (rev 20147)
@@ -0,0 +1,13 @@
+depends ncurses &&
+optional_depends "Python" "--enable-pythoninterp" \
+ "" \
+ "to enable Python intepreter support" &&
+optional_depends "perl" "--enable-perlinterp" \
+ "" \
+ "to enable Perl interpreter support" &&
+optional_depends "tcl" "--enable-tclinterp" \
+ "" \
+ "to enable Tcl interpreter support" &&
+optional_depends "ruby" "--enable-rubyinterp" \
+ "" \
+ "to enable Ruby interpreter support"
Copied: moonbase/trunk/zbeta/vim-svn/DETAILS (from rev 14648, moonbase/trunk/zbeta/vim-cvs/DETAILS)
===================================================================
--- moonbase/trunk/zbeta/vim-svn/DETAILS (rev 0)
+++ moonbase/trunk/zbeta/vim-svn/DETAILS 2006-05-20 03:39:12 UTC (rev 20147)
@@ -0,0 +1,17 @@
+ MODULE=vim-svn
+ VERSION=7.0.x
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_DIRECTORY=$BUILD_DIRECTORY/vim
+ SOURCE_URL=svn+https://svn.sourceforge.net/svnroot/vim/vim7:vim
+ WEB_SITE=http://vim.sf.net
+ ENTERED=20030315
+ UPDATED=`date -u +%Y%m%d`
+ SHORT="svn (development) version of vim"
+cat << EOF
+VIM is an improved version of the editor vi, one of the standard text
+editors on UNIX systems.
+VIM adds many of the features that you would expect in an editor:
+Unlimited undo, syntax coloring, split windows, visual selection,
+graphical user interface (read: menus, mouse control, scrollbars, text
+selection), and much much more.
+EOF
Copied: moonbase/trunk/zbeta/vim-svn/skel/.vimrc (from rev 14648, moonbase/trunk/zbeta/vim-cvs/skel/.vimrc)
===================================================================
--- moonbase/trunk/zbeta/vim-svn/skel/.vimrc (rev 0)
+++ moonbase/trunk/zbeta/vim-svn/skel/.vimrc 2006-05-20 03:39:12 UTC (rev 20147)
@@ -0,0 +1,8 @@
+" Default vimrc file, installed by vim module
+
+set nocompatible
+set backspace=indent,eol,start
+set autoindent
+set ruler
+set showcmd
+syntax on
Copied: moonbase/trunk/zbeta/vim-svn/vimrc (from rev 14648, moonbase/trunk/zbeta/vim-cvs/vimrc)
===================================================================
--- moonbase/trunk/zbeta/vim-svn/vimrc (rev 0)
+++ moonbase/trunk/zbeta/vim-svn/vimrc 2006-05-20 03:39:12 UTC (rev 20147)
@@ -0,0 +1,107 @@
+if v:lang =~ "^ko"
+ set fileencodings=euc-kr
+ set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-*
+elseif v:lang =~ "^ja_JP"
+ set fileencodings=euc-jp
+ set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*
+elseif v:lang =~ "^zh_TW"
+ set fileencodings=big5
+ set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
+elseif v:lang =~ "^zh_CN"
+ set fileencodings=gb2312
+ set guifontset=*-r-*
+endif
+if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
+ set fileencodings=utf-8
+endif
+
+set nocompatible " Use Vim defaults (much better!)
+set bs=2 " allow backspacing over everything in insert mode
+"set ai " always set autoindenting on
+"set backup " keep a backup file
+set viminfo='20,\"50 " read/write a .viminfo file, don't store more
+ " than 50 lines of registers
+set history=50 " keep 50 lines of command line history
+set ruler " show the cursor position all the time
+
+" Only do this part when compiled with support for autocommands
+if has("autocmd")
+ " In text files, always limit the width of text to 78 characters
+ autocmd BufRead *.txt set tw=78
+ " When editing a file, always jump to the last cursor position
+ autocmd BufReadPost *
+ \ if line("'\"") > 0 && line ("'\"") <= line("$") |
+ \ exe "normal g'\"" |
+ \ endif
+endif
+
+" Don't use Ex mode, use Q for formatting
+map Q gq
+
+" Switch syntax highlighting on, when the terminal has colors
+" Also switch on highlighting the last used search pattern.
+if &t_Co > 2 || has("gui_running")
+ syntax on
+ set hlsearch
+endif
+
+if has("autocmd")
+ augroup cprog
+ " Remove all cprog autocommands
+ au!
+
+ " When starting to edit a file:
+ " For C and C++ files set formatting of comments and set C-indenting on.
+ " For other files switch it off.
+ " Don't change the order, it's important that the line with * comes first.
+ autocmd FileType * set formatoptions=tcql nocindent comments&
+ autocmd FileType c,cpp set formatoptions=croql cindent comments=sr:/*,mb:*,el:*/,://
+ augroup END
+
+ augroup gzip
+ " Remove all gzip autocommands
+ au!
+
+ " Enable editing of gzipped files
+ " read: set binary mode before reading the file
+ " uncompress text in buffer after reading
+ " write: compress file after writing
+ " append: uncompress file, append, compress file
+ autocmd BufReadPre,FileReadPre *.gz set bin
+ autocmd BufReadPost,FileReadPost *.gz let ch_save = &ch|set ch=2
+ autocmd BufReadPost,FileReadPost *.gz '[,']!gunzip
+ autocmd BufReadPost,FileReadPost *.gz set nobin
+ autocmd BufReadPost,FileReadPost *.gz let &ch = ch_save|unlet ch_save
+ autocmd BufReadPost,FileReadPost *.gz execute ":doautocmd BufReadPost " . expand("%:r")
+
+ autocmd BufWritePost,FileWritePost *.gz !mv <afile> <afile>:r
+ autocmd BufWritePost,FileWritePost *.gz !gzip <afile>:r
+
+ autocmd FileAppendPre *.gz !gunzip <afile>
+ autocmd FileAppendPre *.gz !mv <afile>:r <afile>
+ autocmd FileAppendPost *.gz !mv <afile> <afile>:r
+ autocmd FileAppendPost *.gz !gzip <afile>:r
+ augroup END
+endif
+if &term=="xterm"
+ set t_Co=8
+ set t_Sb=^[4%dm
+ set t_Sf=^[3%dm
+endif
+
+" some extra commands for HTML editing
+nmap ,mh wbgueyei<<ESC>ea></<ESC>pa><ESC>bba
+nmap ,h1 _i<h1><ESC>A</h1><ESC>
+nmap ,h2 _i<h2><ESC>A</h2><ESC>
+nmap ,h3 _i<h3><ESC>A</h3><ESC>
+nmap ,h4 _i<h4><ESC>A</h4><ESC>
+nmap ,h5 _i<h5><ESC>A</h5><ESC>
+nmap ,h6 _i<h6><ESC>A</h6><ESC>
+nmap ,hb wbi<b><ESC>ea</b><ESC>bb
+nmap ,he wbi<em><ESC>ea</em><ESC>bb
+nmap ,hi wbi<i><ESC>ea</i><ESC>bb
+nmap ,hu wbi<u><ESC>ea</i><ESC>bb
+nmap ,hs wbi<strong><ESC>ea</strong><ESC>bb
+nmap ,ht wbi<tt><ESC>ea</tt><ESC>bb
+nmap ,hx wbF<df>f<df>
+
More information about the Lunar-commits
mailing list