-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
68 lines (55 loc) · 1.3 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
set nocompatible
" PLUGINS
let g:OmniSharp_server_use_net6=1
filetype plugin on
call plug#begin('~/.vim/plugged')
Plug 'rakr/vim-one'
Plug 'Valloric/YouCompleteMe'
Plug 'OmniSharp/omnisharp-vim'
Plug 'simeji/winresizer'
call plug#end()
" VISUAL STUFF
colorscheme one
set background=dark
syntax on
set tabstop=2 shiftwidth=2 smarttab
set noexpandtab
set nowrap
set numberwidth=4
set number relativenumber
set title
set cursorline
set incsearch hlsearch
set novisualbell noerrorbells
set list
set listchars=tab:│_,trail:•,extends:\#,nbsp:.,precedes:\#
",tab:|↦,trail:␠,nbsp:
" NON-VISUAL STUFF
set splitright splitbelow
set clipboard=unnamedplus
set autoindent copyindent
set hidden
set mouse=a
set history=1000
set undolevels=1000
set wildignore=*.swp,*.bak,*.pyc,*.class,*.docx,*.jpg,*.png,*.gif,*.pdf,*.exe,*.flv,*.img,*.xlsx
set ignorecase smartcase
set showmatch
"for NOT breaking colors
if (empty($TMUX)) "tmux evidently has some issues with my colors (maybe)
if (has("termguicolors"))
set termguicolors
endif
endif
" AUTOCMDs
fun! OpenVertTerm()
if &ft =~ 'gitcommit'
setl spell
else
vertical terminal
wincmd p
endif
endfun
autocmd BufNewFile *.py 0put =\"#!/usr/bin/env python3\"|normal! G
autocmd VimEnter * call OpenVertTerm()
"TODO: autoclose all terminal windows after :qa