dotfiles/vim/.vim/vimrc

35 lines
1.3 KiB
VimL
Raw Normal View History

2016-05-18 09:25:25 +02:00
set nocompatible
2016-06-20 12:46:08 +02:00
set undodir=~/.cache/vim/undo
set directory=~/.cache/vim/swap
set backupdir=~/.cache/vim/backup
set viminfo+=n~/.cache/vim/viminfo
2017-08-03 06:42:26 +02:00
set clipboard=exclude:cons\|linux autochdir
2017-07-05 08:59:49 +02:00
set showcmd noshowmode ruler wildmenu confirm
2016-05-18 09:25:25 +02:00
set nostartofline
2017-07-03 15:44:13 +02:00
set list listchars+=tab:├─
set tabstop=8 expandtab shiftwidth=2 softtabstop=-1 smarttab
2016-05-18 09:25:25 +02:00
set dictionary=/usr/share/dict/words
2016-06-20 12:46:08 +02:00
set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
2017-07-05 08:59:49 +02:00
set omnifunc=syntaxcomplete#Complete
2018-12-18 05:14:47 +01:00
set diffopt+=algorithm:patience
2017-11-28 15:33:11 +01:00
autocmd BufWinEnter * let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1)
2017-01-11 04:03:51 +01:00
autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
2017-08-20 09:11:21 +02:00
autocmd FileType c,h,go setlocal cindent noexpandtab shiftwidth=8
2017-07-03 15:44:13 +02:00
autocmd FileType rst setlocal shiftwidth=3
2018-12-28 08:05:05 +01:00
autocmd FileType css,javascript,python,perl6 setlocal shiftwidth=4
2018-10-30 07:19:16 +01:00
autocmd FileType python,tex setlocal indentexpr=
2017-11-28 15:33:11 +01:00
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
2018-12-02 05:19:45 +01:00
let g:vimtex_indent_enabled = 0
2018-10-30 07:19:16 +01:00
command W w
2016-10-14 04:54:47 +02:00
map Q gq
2017-11-28 15:33:11 +01:00
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/morhetz/gruvbox.git'
Plug 'https://github.com/tpope/vim-abolish.git'
Plug 'https://github.com/lervag/vimtex.git', {'for': 'tex'}
2018-12-02 05:19:45 +01:00
Plug 'https://github.com/kovisoft/slimv', {'for': 'lisp'}
2017-11-28 15:33:11 +01:00
call plug#end()