"-------------Set ----
set cindent
set smartindent
set nowrap
set ff=unix
"set bg=dark
set ruler
set tabstop=4
set softtabstop=4
set shiftwidth=4
set number
set nohls
set history=200
set ch=1
set laststatus=2
"set expandtab
"set path=./include/,.,/usr/include
set path=./include/
au BufNewFile,BufReadPost Makefile se noexpandtab
"-------------Map ----
map <F2> :Tlist<cr>
map <F3> :WMToggle<cr>
map <F4> :al<cr>
map <F11> :Dox<cr>
map <PageUp> <C-U><C-U>
map <PageDown> <C-D><C-D>
map <c-w><c-f> :FirstExplorerWindow<cr>
map <c-w><c-b> :BottomExplorerWindow<cr>
map <c-w><c-t> :WMToggle<cr>
"------------File Buffer ----
map ,1 :b!1<CR>
map ,2 :b!2<CR>
map ,3 :b!3<CR>
map ,4 :b!4<CR>
map ,5 :b!5<CR>
map ,6 :b!6<CR>
map ,7 :b!7<CR>
map ,8 :b!8<CR>
map ,9 :b!9<CR>
map ,0 :b!10<CR>
map ,w :bw<CR>
"-------------taglist ----
let Tlist_Use_Right_Window = 1
"------------ indent ----
map ,noi :set noai<CR>:set nocindent<CR>:set nosmartindent<CR>
map ,sei :set ai<CR>:set cindent<CR>:set smartindent<CR>
"-------------Etc.----
syntax on
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
"-------------Man ----
func! Man( )
let sm = expand("<cword>")
exe "!man -S 2:3:4:5:6:7:8:9:tcl:n:l:p:o ".sm
endfunc
nmap ,ma :call Man( )<cr><cr>
"-------------ctags ----
function SetTags()
let curdir = getcwd()
while !filereadable("tags") && getcwd() != "/"
cd ..
endwhile
if filereadable("tags")
execute "set tags=" . getcwd() . "/tags"
endif
execute "cd " . curdir
endfunction
call SetTags()
"-------------Load .vimrc in current directory ----
set exrc
set cindent
set smartindent
set nowrap
set ff=unix
"set bg=dark
set ruler
set tabstop=4
set softtabstop=4
set shiftwidth=4
set number
set nohls
set history=200
set ch=1
set laststatus=2
"set expandtab
"set path=./include/,.,/usr/include
set path=./include/
au BufNewFile,BufReadPost Makefile se noexpandtab
"-------------Map ----
map <F2> :Tlist<cr>
map <F3> :WMToggle<cr>
map <F4> :al<cr>
map <F11> :Dox<cr>
map <PageUp> <C-U><C-U>
map <PageDown> <C-D><C-D>
map <c-w><c-f> :FirstExplorerWindow<cr>
map <c-w><c-b> :BottomExplorerWindow<cr>
map <c-w><c-t> :WMToggle<cr>
"------------File Buffer ----
map ,1 :b!1<CR>
map ,2 :b!2<CR>
map ,3 :b!3<CR>
map ,4 :b!4<CR>
map ,5 :b!5<CR>
map ,6 :b!6<CR>
map ,7 :b!7<CR>
map ,8 :b!8<CR>
map ,9 :b!9<CR>
map ,0 :b!10<CR>
map ,w :bw<CR>
"-------------taglist ----
let Tlist_Use_Right_Window = 1
"------------ indent ----
map ,noi :set noai<CR>:set nocindent<CR>:set nosmartindent<CR>
map ,sei :set ai<CR>:set cindent<CR>:set smartindent<CR>
"-------------Etc.----
syntax on
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
"-------------Man ----
func! Man( )
let sm = expand("<cword>")
exe "!man -S 2:3:4:5:6:7:8:9:tcl:n:l:p:o ".sm
endfunc
nmap ,ma :call Man( )<cr><cr>
"-------------ctags ----
function SetTags()
let curdir = getcwd()
while !filereadable("tags") && getcwd() != "/"
cd ..
endwhile
if filereadable("tags")
execute "set tags=" . getcwd() . "/tags"
endif
execute "cd " . curdir
endfunction
call SetTags()
"-------------Load .vimrc in current directory ----
set exrc
내가 사용하는 .vim/ 디렉토리와 .vimrc 파일을 압축해서 올린다.