-
Recent Posts
- Hwarang Spirit
- Alchemy
- ListView minHeight, typeface
- Clear All Lint Markers Errors
- android.permission.INTERNET
- eclipse Korean character problem
- OnItemCLickListener not working gridview
- G is G!
- Eclipse shortcut to comment selection in an XML file
- android.app.activitythread.performlaunchactivity nullpointerexception
- How to uninstall Windows Live Essentials via CMD line parameter
- vi fold method
- android.os.NetworkOnMainThreadException
- android socket
- socket2
Tags
Archives
Tag Archives: vi
vi fold method
.vimrc configuration
1 2 3 4 5 6 7 8 9 10 |
setlocal foldmethod=expr setlocal foldexpr=(getline(v:lnum)=~'^$')?-1:((indent(v:lnum)<indent(v:lnum+1))?('>'.indent(v:lnum+1)):indent(v:lnum)) set foldtext=getline(v:foldstart) set fillchars=fold:\ "(there's a space after that \) highlight Folded ctermfg=DarkGreen ctermbg=Black nnoremap <S-Left> zo inoremap <S-Left> <C-O>zo nnoremap <S-Right> zc inoremap <S-Right> <C-O>zc |
vi command mode
1 |
:set foldmethod=indent |
zR -> unfold all zM -> fold all za -> fold/unfold
vimrc configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
set cindent set autoindent set smartindent set showcmd set incsearch set bg=dark set visualbell set nu set shiftwidth=4 set tabstop=4 set hlsearch set showmode set ruler set noignorecase set title set tagbsearch set history=1000 filetype on syn on hi PreProc term=underline cterm=bold ctermfg=1 set tags=./tags,/usr/src/linux/tags set csprg=/usr/bin/cscope set csto=0 set cst set nocsverb if filereadable("./cscope.out") cs add cscope.out else cs add /usr/src/linux/cscope.out endif set csverb map <F2> :Tlist<cr> map <F3> <c-w><c-w> map <s-f> <c-f> map <s-b> <c-b> |
cygwin vi upgrade
cygiwin setup Editors > vim Editors > vim-common Base > vi-minimal 은 삭제하도록 alias vi=’vim’ 지정