-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
134 lines (103 loc) · 3.64 KB
/
.vimrc
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
"-----------------------"
" DISPLAY OPTIONS "
"-----------------------"
" Enable Code Syntax Color Highlighting
syntax on
" Specify a Preferred Coloring Scheme to use
colorscheme desert
" Enable Display of Line Numbers
set number
" Changes The Width of the TAB character in the display
set tabstop=2
" Shows the line and column number of the cursor position
set ruler
" Vertical Splits go to the right
set splitright
"-----------------------"
" NEW LINE INDENTATION "
"-----------------------"
" Copies the indentation from the previous line when starting a new line
set autoindent
" Automatically inserts one extra level of indentation in 'some' cases
set smartindent
" Auto Indentation will round the indentation to a multiple of 'shiftwidth'
set shiftwidth=2
"-----------------------"
" NEW TAB INSERTS "
"-----------------------"
" Pressing Tab Key Inserts the Number of Whitespace Characters Specified by 'softtabstop'
set expandtab
" Number of Whitespace Characters to Insert. Used by expandtab
set softtabstop=2
"-----------------------"
" CODE BRACKET MATCHING "
"-----------------------"
" Briefly Jumps to a Matching Bracket When One is Inserted
set showmatch
" Sets for how long the matched bracket will be shown during a 'showmatch' event
set matchtime=1
"-----------------------"
" SEARCH HIGHLIGHTING "
"-----------------------"
" Highlights All Occurances of a Searched for Sequence
set hlsearch
" Highlights Search Sequences Incrementally as you Type
set incsearch smartcase
set ic smartcase
"-----------------------"
" KEYBOARD BINDINGS "
"-----------------------"
" Binds the F7 Key to the Previous-Tab Command
map #7 : tabp<CR>
" Binds the F8 Key to the Next-Tab Command
map #8 : tabn<CR>
"------------------------------"
" HIGHLIGHT Beyond COLUMN 80 "
"------------------------------"
"highlight OverLength ctermbg=darkred ctermfg=white guibg=#592929
"match OverLength /\%>80v.\+/
"------------------------------"
" Prevent Auto Comments on "
" Single Line Comments "
"------------------------------"
"au FileType c,cpp setlocal comments-=:// comments+=f://
"------------------------------"
" Prevent Auto Comments on "
" Any Comment "
"------------------------------"
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
"------------------------------"
" Highlight Current Line "
" Number The Active Buffer "
"------------------------------"
hi clear CursorLine
augroup BgHighlight
autocmd!
autocmd WinEnter * set cul
autocmd WinLeave * set nocul
augroup END
"------------------------------"
" Change Verticle Separator "
"------------------------------"
set fillchars+=vert:\
hi vertsplit ctermfg=black ctermbg=white
"------------------------------"
" Change Status Bar "
"------------------------------"
hi statusline ctermbg=yellow ctermfg=black
hi statuslinenc ctermbg=darkgrey ctermfg=black
"------------------------------"
" Change Tab Bar "
"------------------------------"
hi TabLine term=bold cterm=NONE gui=NONE ctermfg=8 ctermbg=0
hi TabLineSel term=underline cterm=bold ctermfg=yellow ctermbg=0
hi TabLineFill term=bold cterm=bold ctermbg=0
"------------------------------"
" Syntax Highlighting "
" By Special File Extensions "
"------------------------------"
"au BufRead,BufNewFile *.C set filetype=cpp
"au BufRead,BufNewFile *.sel set filetype=tcl
"au BufRead,BufNewFile *.mac set filetype=tcl
"au BufRead,BufNewFile *.inc set filetype=tcl
"au BufRead,BufNewFile *.Mod set filetype=zsh