~thrrgilag/dotfiles

ref: 02a68f1b2432e00307d392694c354f9ae24e98d6 dotfiles/.vimrc -rw-r--r-- 1.8 KiB
02a68f1bMorgan McMillian cleanup config 4 months ago
                                                                                
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
filetype plugin indent on

set laststatus=2

set t_Co=256

set encoding=utf-8
set tabstop=4
set shiftwidth=4
set autoindent

set number
set ruler
set cc=80
set nowrap

set splitbelow
set hidden

highlight ColorColumn ctermbg=darkgrey
highlight StatusLine cterm=none ctermbg=none ctermfg=darkgrey
highlight StatusLineNC cterm=none ctermbg=none ctermfg=darkgrey
highlight Title cterm=none ctermfg=darkgrey
highlight TabLineFill cterm=none
highlight TabLine cterm=none ctermbg=none ctermfg=darkgrey 
highlight NonText ctermfg=darkgrey
highlight SpecialKey ctermfg=darkgrey
highlight lineNr ctermfg=grey cterm=italic

autocmd BufRead,BufNewFile ~/tmp/post setlocal spell spelllang=en_us wrap
autocmd FileType h setlocal et ts=4 sw=4
autocmd FileType c setlocal et ts=4 sw=4
autocmd FileType cpp setlocal et ts=4 sw=4
autocmd FileType go setlocal noet ts=4 sw=4
autocmd FileType mail setlocal noautoindent spell spelllang=en_us
autocmd FileType python setlocal et ts=4 sw=4
autocmd FileType qml setlocal et ts=4 sw=4
autocmd FileType markdown setlocal spell spelllang=en_us cc= wrap
autocmd FileType gemtext setlocal spell spelllang=en_us cc= wrap

nmap <F4> :set spell!<CR>
nmap <F3> :set list!<CR>
set listchars=tab:▸\ ,eol,space:.

" vim-plug, https://github.com/junegunn/vim-plug 
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
  silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'https://github.com/fatih/vim-go'
Plug 'https://github.com/peterhoeg/vim-qml'
Plug 'https://github.com/rust-lang/rust.vim'
Plug 'https://github.com/cespare/vim-toml'
call plug#end()

" addtional stuff....
" https://github.com/kconner/vim-syntax-gemtext