about summary refs log tree commit diff
path: root/vim/.vim/vimrc
blob: fc2b0ef814298b05d6047c4b7d8a974e0a88f975 (plain) (blame)
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
set nocompatible
set undodir=~/.cache/vim/undo
set directory=~/.cache/vim/swap
set backupdir=~/.cache/vim/backup
set viminfo+=n~/.cache/vim/viminfo
set clipboard=exclude:cons\|linux autochdir
set showcmd noshowmode ruler wildmenu confirm number relativenumber
set nostartofline
if has("patch-7.4.710")
  set list listchars+=space:·,tab:\ \ 
endif
set tabstop=8 expandtab shiftwidth=2 softtabstop=-1 smarttab
set dictionary=/usr/share/dict/words
set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
set omnifunc=syntaxcomplete#Complete
set diffopt+=algorithm:patience
autocmd BufWinEnter * let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1)
autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
autocmd FileType c,h,go,glsl setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8
autocmd FileType rst setlocal shiftwidth=3
autocmd FileType css,javascript,python,perl6 setlocal shiftwidth=4
autocmd FileType python syntax keyword pythonBoolean False True None
let g:gruvbox_italic=1
let g:jedi#popup_on_dot = 0
let g:jedi#popup_select_first = 0
let g:jedi#show_call_signatures = 2
let g:jedi#smart_auto_mappings = 0
let g:polyglot_disabled = ['latex']
map Q gq
command Q q
command W w

call plug#begin('~/.vim/plugged')
Plug 'https://github.com/sheerun/vim-polyglot.git'
Plug 'https://github.com/srcery-colors/srcery-vim.git'
Plug 'https://github.com/tpope/vim-abolish.git'
Plug 'https://github.com/drmikehenry/vim-fontsize.git'
Plug 'https://github.com/lervag/vimtex.git', {'for': 'tex'}
Plug 'https://github.com/kovisoft/slimv', {'for': 'lisp'}
call plug#end()

set t_Co=256
colorscheme srcery