-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
104 lines (77 loc) · 2.11 KB
/
vimrc
File metadata and controls
104 lines (77 loc) · 2.11 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
96
97
98
99
100
101
102
103
"colorscheme default
"colorscheme metacosm
"colorscheme rastafari
"colorscheme jellybeans
colorscheme molokai
let fortran_free_source=1
let fortran_have_tabs=1
" automatically reread file if changed
set autoread
"splits don't resize when closing one
set noequalalways
set gdefault
set linebreak
set display+=lastline
set mouse=nvicr
"set mouse=vi
set fo+=o
set ruler
set nowrap
set novisualbell
set noerrorbells
set backspace=2
set backspace=eol,start,indent
set whichwrap+=<,>,h,l,[,]
set autoindent
set smartindent
set cindent
set smarttab
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set wildmenu
set wildmode=list:longest,full
set wildignore=*.o,*.so,*.d,*.a,*~,*.pyc
set hlsearch
set showmatch
set smartcase
set ignorecase
set incsearch
set scrolloff=0
set laststatus=2
set hidden
set history=500
set viminfo=/10,'10,f0,h,"\100
set nomousehide
" status line at bottom of window, above command line
set statusline=\ %F%m%r%h\ %w\ \ \ Line:\ %l/%L:%c
"set statusline=%1*%-52F\ %1*\ %Y\ %4*\ %04l/%03c\ %1*\ %-16{strftime(\"%Y-%m-%d\ %H:%M\")}\ %5*\ %-3m
" setup based upon filetype (~/.vim/(after)/ftplugin)
filetype plugin on
filetype indent on
" tabs in Makefiles
autocmd BufNewfile,BufRead *akefile* set noexpandtab nosmarttab
autocmd BufNewfile,BufRead *.mak set noexpandtab nosmarttab
" COLORS ----------------------------------------------
syntax on
highlight NonText cterm=NONE ctermfg=NONE
highlight Search cterm=bold ctermfg=White ctermbg=LightRed
highlight StatusLine cterm=bold ctermbg=Yellow ctermfg=Black
highlight Folded cterm=NONE ctermbg=DarkGrey ctermfg=Cyan
" horizontal scrolling:
map <C-ScrollWheelDown> 5zl
map <C-ScrollWheelUp> 5zh
" Y should be analagous to D:
noremap Y y$
" turn on/off search highlighting & search for word under cursor:
map <F4> :set invhls<CR>:let @/="<C-r><C-w>"<CR>/<BS>
" disable scroll left/right:
nmap <ScrollWheelRight> <nop>
nmap <ScrollWheelLeft> <nop>
com! Bd enew|bw # |bn
"let g:miniBufExplVSplit = 25
let g:miniBufExplUseSingleClick = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
highlight def link MBENormal Normal