-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc-minimal
53 lines (47 loc) · 1.91 KB
/
.vimrc-minimal
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
set shell=/bin/bash " shell to use.
syntax on " color syntax highlighting.
filetype plugin on " load the filetype specific config.
" options
set number " line numbers on the left.
set nocompatible " no vi compatibility.
set noexrc " don't use ~/.exrc config.
set cursorline " highlight the current line.
set noerrorbells " no audio bell aka beeping.
set novisualbell " no visual bell aka blinking.
set incsearch " search while typing.
set hlsearch " highlight all search matches.
set mouse=a " use mouse to navigate the file.
set clipboard=unnamedplus " enables in vim from gvim VISUAL y -> clipboard
"set paste " no incremented tabs per line from paste;
" commented to enable Vundle TAB completion.
" keys mapping
"map <F5> :w !python <CR>
map // y/<C-R>"<CR> " search visually selected text
" indent options
set autoindent " set indenting.
set ts=4 " set tab space.
set sw=2 " set soft tab.
set tabstop=4 " tab equals to n spaces.
set expandtab " expand a tab to spaces.
set shiftwidth=4 " set autoindent to one tab.
set colorcolumn=80 " vertical column for text width.
" color options
set t_Co=256
colorscheme desert
"colorscheme elflord
"colorscheme slate
"colorscheme onehalfdark
" changes to colorscheme
hi ColorColumn ctermbg=white
hi CursorLine ctermbg=none cterm=none
hi CursorLineNr ctermfg=255
hi LineNr ctermfg=DarkGrey cterm=none
hi Search cterm=NONE ctermfg=white ctermbg=DarkGrey
" Make vim recognize Y86 assembly files
:autocmd BufNewFile,BufRead *.ys set ft=asm
":autocmd BufNewFile,BufRead *.ys set nosmartindent
" keys overwrite
" delete content -> black hole register
noremap dd "_dd
noremap D "_D
noremap d "_d