-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
98 lines (73 loc) · 1.8 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
set encoding=utf-8
set visualbell
set foldmethod=indent
set nofen
set autochdir
set termguicolors
let mapleader = " "
let maplocalleader = "\\"
" Auto-indent
set ai
set formatoptions-=t
" Show line numbers
set number
" Syntax highlighting
set syn=on
"syntax on
" Top/bottom of screen buffer when scrolling
set scrolloff=15
" Highlight the current row/column
set cursorline
set cursorcolumn
" Status line
"set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=%03.3b:0x%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
"set laststatus=2
" Refresh window
set updatetime=250
" Set tab behavior
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set textwidth=120
" Smarter searching
set hlsearch
set smartcase
set ignorecase
" This is for file-watching services
set backupcopy=yes
" Filetype specific options
filetype plugin on
" Disable auto-comments
set formatoptions-=o
autocmd FileType * setlocal formatoptions-=o
" Backspace behavior to be more intuitive
set backspace=indent,eol,start
" Show whitespace
set list
set listchars=tab:»\ ,extends:›,precedes:‹,trail:•
" Color scheme
set t_Co=256
"let g:zenburn_alternate_Visual=1
"let g:zenburn_high_Contrast=1
"let g:zenburn_transparent=1
hi Normal ctermbg=NONE
hi Normal guibg=NONE
hi Cursorline guibg=#080808
hi Cursorcolumn guibg=#080808
" Switch buffers easily with TAB and SHIFT-TAB
:nnoremap <Tab> :bn<CR>
:nnoremap <S-Tab> :bp<CR>
:nnoremap <Leader>x :bd<CR>
" copy and paste to/from system clipboard
vmap <C-c> "+yi
vmap <C-v> c<ESC>"+p
imap <C-v> <ESC>"+pa
set guifont=Fira_Code_Retina:h8
" vim-rainbow
let g:rainbow_active = 1
" lightline
"set noshowmode
" No more files called "1" in my cwd
cabbrev w1 <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'w!' : 'w1')<CR>
cabbrev wq1 <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'wq!' : 'wq1')<CR>