-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
79 lines (64 loc) · 1.44 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
set number
syntax on
"to avoid ESLint errors from windows text files
set fileformat=unix
set encoding=UTF-8
set tabstop=2
set softtabstop=2
set shiftwidth=2
set autoindent
set smartindent
set smarttab
set expandtab
set nowrap
"change to better listchars
"set list
"set listchars=tab:>-,trail:~,extends:>,precedes:<
set cursorline
set number
set scrolloff=8
set signcolumn=yes
set showcmd
set noshowmode
set conceallevel=1
set noerrorbells visualbell t_vb=
"redirect vim swap to undo file
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
"redirect clipboard to system clipboard
set clipboard=unnamed
"smarter search settings
set ignorecase
set smartcase
set incsearch
set hlsearch
"hit enter and search terms unhighlight
nnoremap <CR> :noh<CR><CR>:<backspace>
"link plugins and whatnot
so ~/.vim/plugins.vim
so ~/.vim/plugin-config.vim
"so ~/.vim/autoclose.vim
set mouse=a
colorscheme nightfly
" open terminal below all splits
cabbrev term bo term
set backspace=indent,eol,start
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif
"Language Specific Settings Go Here
"different rules for python files
"au BufNewFile,BufRead *.py
" \ set tabstop=4 |
" \ set softtabstop=4 |
" \ set shiftwidth=4 |
"terminal behaviors
autocmd TerminalWinOpen *
\ if &buftype == 'terminal' |
\ resize 10 |
\ setlocal termwinsize=0x140 |
\ setlocal nowrap |
\ endif