version 1.1, 2011/07/05 23:43:00
|
version 1.2, 2012/10/12 08:22:45
|
Line 1
|
Line 1
|
syntax on |
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 incsearch |
set showmatch |
set showmatch |
|
set showcmd |
set ruler |
set ruler |
set cindent |
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 |
colorscheme ron |
|
"autocmd BufWinLeave * |
|
"\ if filereadable(expand('%')) | |
|
"\ mkview | |
|
"\ endif |
|
"autocmd BufWinEnter * |
|
"\ if filereadable(expand('%')) | |
|
"\ silent loadview | |
|
"\ endif |
autocmd BufReadPost * |
autocmd BufReadPost * |
\ if ! exists("g:leave_my_cursor_position_alone") | |
\ if ! exists("g:leave_my_cursor_position_alone") | |
\ if line("'\"") > 0 && line ("'\"") <= line("$") | |
\ if line("'\"") > 0 && line ("'\"") <= line("$") | |