File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / root.skel / vimrc
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Fri Oct 12 08:22:45 2012 UTC (12 years ago) by misho
Branches: MAIN
CVS tags: elwix2_8, elwix2_7, elwix2_6, elwix2_3, elwix2_2, elwix2_1, elwix2_0, elwix1_9_mips, elwix1_9, elwix1_8, elwix1_7, HEAD, ELWIX2_7, ELWIX2_6, ELWIX2_5, ELWIX2_2p0, ELWIX2_1, ELWIX2_0, ELWIX1_9, ELWIX1_8, ELWIX1_7, ELWIX1_6
ELWIX 1.6

syntax on
filetype plugin indent on
imap <F7> /*{{{*/
nmap <F7> O/*{{{*/<ESC><Down>
imap <F8> /*}}}*/
nmap <F8> o/*}}}*/<ESC><Up>
map <F4> :set foldopen=all,insert foldclose=all<CR>
map <S-F4> :set foldopen=block,hor,mark,percent,quickfix,search,tag,undo foldclose=<CR>
map <F3> :set foldmethod=marker<CR>
map <S-F3> :set foldmethod=expr<CR>
map <F6> :ru c-fold.vim<CR>
map <F5> :silent loadview<CR>
map <F2> :!rm -f ~/.vim/view/*<CR>
set incsearch
set showmatch
set showcmd
set ruler
set cindent
set hlsearch
set foldenable
set foldmethod=marker
"set foldopen=all,insert foldclose=all
"
"function FoldBrace()
"	if getline(v:lnum+1)[0] == '{'
"		return '>1'
"	endif
"	if getline(v:lnum)[0] == '}'
"		return '<1'
"	endif
"	return foldlevel(v:lnum-1)
"endfunction
"set foldexpr=FoldBrace()
"set foldmethod=expr
"set wildmenu wildmode=list:full
set tags=tags,/usr/src/tags
"cscope add /usr/src /usr/src
colorscheme ron
"autocmd BufWinLeave *
"\ if filereadable(expand('%')) |
"\	mkview |
"\ endif
"autocmd BufWinEnter *
"\ if filereadable(expand('%')) |
"\	silent loadview |
"\ endif
autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\     if line("'\"") > 0 && line ("'\"") <= line("$") |
\         exe "normal g'\"" |
\     endif |
\ endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>