2021-01-03 17:18:36 +00:00
|
|
|
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
|
2021-04-04 22:01:40 +00:00
|
|
|
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
|
2021-01-03 17:18:36 +00:00
|
|
|
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
|
2021-02-21 22:30:42 +00:00
|
|
|
autocmd FileType markdown setlocal spell spelllang=en_us cc= wrap
|
|
|
|
autocmd FileType gemtext setlocal spell spelllang=en_us cc= wrap
|
2021-06-29 13:44:24 +00:00
|
|
|
autocmd FileType xml setlocal et ts=2 sw=2
|
2021-01-03 17:18:36 +00:00
|
|
|
|
2021-05-05 04:34:23 +00:00
|
|
|
nmap <F4> :set spell!<CR>
|
|
|
|
nmap <F3> :set list!<CR>
|
2021-05-08 00:21:00 +00:00
|
|
|
set listchars=tab:▸\ ,eol:¬,space:·
|
2021-01-03 17:18:36 +00:00
|
|
|
|
2021-04-25 00:04:06 +00:00
|
|
|
" vim-plug, https://github.com/junegunn/vim-plug
|
2021-05-03 20:09:16 +00:00
|
|
|
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
|
2021-04-25 00:04:06 +00:00
|
|
|
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'
|
2021-06-29 13:44:37 +00:00
|
|
|
Plug 'https://github.com/arrufat/vala.vim'
|
2021-04-25 00:04:06 +00:00
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
" addtional stuff....
|
|
|
|
" https://github.com/kconner/vim-syntax-gemtext
|