[SCM] Lisaac compiler branch, master, updated. 681781223a09546e94428aa0c10ab6247cd6f175
Xavier Oswald
x.oswald at free.fr
Fri Nov 7 14:50:40 UTC 2008
The following commit has been merged in the master branch:
commit 681781223a09546e94428aa0c10ab6247cd6f175
Author: Xavier Oswald <x.oswald at free.fr>
Date: Fri Nov 7 15:50:52 2008 +0100
* enjoy it. :)
diff --git a/Changelog b/Changelog
index 19687a9..e3d94fb 100644
--- a/Changelog
+++ b/Changelog
@@ -1,7 +1,8 @@
Version 0.14 :
==============
[Xavier Oswald]
- * New vim syntax coloration file (2008/11/06)
+ * New vim syntax coloration file (2008/11/07)
+ * Update default vimrc (2008/11/06)
[Benoit Sonntag]
* Lip project path Makefile
diff --git a/editor/vim/syntax/lisaac.vim b/editor/vim/syntax/lisaac.vim
index d980b12..66cc095 100644
--- a/editor/vim/syntax/lisaac.vim
+++ b/editor/vim/syntax/lisaac.vim
@@ -2,7 +2,7 @@
" Language: Lisaac
" Maintainer: Xavier Oswald <x.oswald at free.fr>
" URL: http://isaacproject.u-strasbg.fr/
-" Last Change: 2008 Nov 06
+" Last Change: 2008 November 06
" Filenames: *.li
" Quit when a syntax file was already loaded
@@ -88,7 +88,7 @@ if version >= 508 || !exists("did_li_syn_inits")
HiLink liNumberFloat Float
HiLink liFunction Function
HiLink liBoolean Boolean
- HiLink liKey Statement
+ HiLink liKey Label
HiLink liString String
HiLink liStringSpecial SpecialChar
HiLink liSpecial Todo
@@ -99,7 +99,7 @@ if version >= 508 || !exists("did_li_syn_inits")
HiLink liQuotedExpr Special
HiLink liPrototype Type
HiLink liSlot Keyword
- HiLink liBlock Comment
+ HiLink liBlock Conditional
HiLink liElement keyword
HiLink liSymbolDeclaration Keyword
HiLink liContrat keyword
diff --git a/editor/vim/vimrc b/editor/vim/vimrc
index 90d7e64..9d1c378 100644
--- a/editor/vim/vimrc
+++ b/editor/vim/vimrc
@@ -14,26 +14,39 @@ filetype plugin on " load filetype plugins
filetype indent on " load filetype indents
filetype on " detect the type of file
set backspace=indent,eol,start " more powerful backspacing
+imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine
+set pastetoggle=<F10> "switch to insert/paste
+"set mouse=a
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" Theme/Colors
+" Theme/Colors/GUI
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-syntax on " active coloration
-set background=light " default background
-colorscheme default " default coloration theme
-"NOTE: nice theme is 'colorsheme elflord' if you have a dark background
+syntax on
+colo default
+set gfn=Bitstream\ Vera\ Sans\ Mono\ 8
+"highlight Normal guibg=
+"highlight Normal guifg=white
+"set guioptions-=T
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" Files/Backups
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-set backup " make backup file
-set backupdir=~/.vim/backup/ " where to put backup file
-set directory=~/.vim/temp " directory is the directory for temp file
-set makeef=error.err " When using make, where should it dump the file
+"Color in gvim for white background
+hi Comment gui=bold guifg=#4423c5
+hi Type gui=bold guifg=#0b6f27
+hi Label gui=bold guifg=#207fa6
+hi String guifg=#720576
+hi SpecialChar gui=bold guifg=#720576
+hi Special gui=bold guifg=#720576
+hi Define gui=bold guifg=#720576
+hi Boolean gui=bold guifg=#4d9f16
+hi Delimiter gui=bold guifg=#83783a
+hi Conditional gui=bold guifg=#133ab7
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" GVim UI
+" Files/Backups
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+"set backup " make backup file
+"set backupdir=~/.vim/backup/ " where to put backup file
+"set directory=~/.vim/temp " directory is the directory for temp file
+"set makeef=error.err " When using make, where should it dump the file
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim UI
@@ -60,12 +73,12 @@ set laststatus=2 " always show the status line
set showcmd " display incomplete commands
set modeline " display the current mode
set nostartofline " keep the cursor in the same colon when changing line
-set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
+set statusline=%F%m%r%h%w\ [TYPE=%Y]\ (Line=%04l)\ [%p%%]\ [LEN=%L]
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Menu
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-set wildmenu " menu completion
+set wildmenu " menu completion
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Text Formatting/Layout
@@ -88,9 +101,29 @@ let perl_extended_vars=1 " highlight advanced perl vars inside strings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Autocommands
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-autocmd FileType text setlocal textwidth=80
+"autocmd FileType text setlocal textwidth=80
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Lisaac special support
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
au BufNewFile,BufRead *.li setf lisaac
+
+function! AutoHeaderC()
+ let s:line=line(".")
+ let name = toupper("_" . expand("%:t:r") . "_H")
+ call setline(s:line, "#ifndef " . name)
+ call append(s:line, "#define " . name)
+ call append(s:line+1, "")
+ call append(s:line+2, "")
+ call append(s:line+3, "")
+ call append(s:line+4, "#endif")
+ unlet s:line
+ call cursor((line(".")+3),col("."))
+endfunction
+au BufNewFile *.h call AutoHeaderC()
+
+" tab navigation like firefox
+:nmap <C-p> :tabprevious<cr>
+:nmap <C-n> :tabnext<cr>
+:nmap <C-t> :tabnew<cr>
+":nmap <C-w> :tabc<cr>
--
Lisaac compiler
More information about the Lisaac-commits
mailing list