-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.vimrc
More file actions
95 lines (83 loc) · 2.57 KB
/
.vimrc
File metadata and controls
95 lines (83 loc) · 2.57 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
set et
set shiftwidth=4
set ignorecase
set wrap
color evening
set encoding=utf-8 " when file open
set termencoding=utf-8 " terminal encoding
set fileencoding=utf-8 " when file saving
" vim 환경설정
set nu
set ai
set ts=4
set bg=dark
set rnu
set history=100 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
set hlsearch " highlight the last searched term
filetype plugin on " use the file type plugins
:highlight Normal ctermfg=white ctermbg=black
:hi Visual term=reverse ctermbg=32 " highlight selected region
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif |
\ endif
"창 크기 조정
"nnoremap <S-Left> <C-W><<CR>
"nnoremap <S-Right> <C-W>><CR>
"nnoremap <S-Up> <C-W>-<CR>
"nnoremap <S-Down> <C-W>+<CR>
"nnoremap <s-h> <C-W><
"nnoremap <s-j> <C-W>-
"nnoremap <s-k> <C-W>+
"nnoremap <s-l> <C-W>>
" ctags database path 설정
set tags=/Users/dplee/work/tags " ctags DB
" cscope database path 설정
cs add /Users/dplee/work/cscope.out /Users/dplee/work
cs add /Users/dplee/work/3rd_iter_trunk/cscope.out /Users/dplee/work/3rd_iter_trunk
set csprg=/usr/bin/cscope " cscope 위치
set csto=0 " cscope DB search first
set cst " cscope DB tags DB search
set nocsverb " verbose off
set csverb
" taglist 환경설정
filetype on
nmap <F7> :TlistToggle<CR>
let Tlist_Ctags_Cmd = "/usr/bin/ctags"
let Tlist_Inc_Winwidth = 0
let Tlist_Exit_OnlyWindow = 0
let Tlist_Auto_Open = 0
let Tlist_Use_Right_Window = 1
" Source Explorer 환경설정
nmap <F8> :SrcExplToggle<CR>
nmap <C-H> <C-W>h
nmap <C-J> <C-W>j
nmap <C-K> <C-W>k
nmap <C-L> <C-W>l
" 중요 !!!
" Source Explorer 가 다른 plugin 과 충돌하지 않도록
" 다른 plugin 이 사용하는 buffer 가 무엇이 있는지를 알려줌.
" vi 를 열고 plugin 수행시킨 후 :buffers! 의 결과로
" 나오는 것을 여기 list 에 넣어줌
let g:SrcExpl_pluginList = [
\ "Source_Explorer",
\ "NERD_tree_1"
\ ]
let g:SrcExpl_winHeight = 8
let g:SrcExpl_refreshTime = 100
let g:SrcExpl_jumpKey = "<ENTER>"
let g:SrcExpl_gobackKey = "<SPACE>"
let g:SrcExpl_isUpdateTags = 0
" NERD Tree 환경설정
let NERDTreeWinPos = "left"
nmap <F9> :NERDTreeToggle<CR>
"vi start 시 곧바로 nerd tree 시작
"autocmd vimenter * NERDTree
" armasm 설정
let asmsyntax='armasm'
let filetype_inc='armasm'