-
Notifications
You must be signed in to change notification settings - Fork 5
/
.vimrc
55 lines (40 loc) · 1.66 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
set nocompatible " turn off vi compatible, should be first
set autoindent
set autoread " auto-reload unmodified buffers
set background=dark " make sure this is before colorschemes
set backspace=indent,eol,start " backspacing over everything in insert
set display+=lastline " show as much of lastline possible
set hidden
if has('vim_starting')
set encoding=utf8
endif
" no bells or blinking
set noerrorbells
set novisualbell
set vb t_vb=
set history=10000 " command line history
set hlsearch " highlight searches
set incsearch " do incremental searching
set laststatus=2 " always show status line
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set wildmenu " file completion helper window
" end of the nvim already-defaults
let &viminfo = "'50,s100,n" . expand("$XDG_CACHE_HOME/vim/viminfo")
if has('autocmd')
filetype plugin indent on
endif
if has('syntax') && !exists('g:syntax_on')
syntax enable
set synmaxcol=512
endif
let g:extra_plugins_to_install = [
\ ['neoclide/coc.nvim', {'branch': 'release'}],
\ ['neoclide/coc-python'],
\ ['tpope/vim-endwise'],
\ ]
set backupdir=$XDG_CACHE_HOME/vim/backups,~/tmp,/tmp
set directory=$XDG_CACHE_HOME/vim/swap//,~/tmp/vim//,~/tmp//,/var/tmp//,/tmp//
" swap files
set undodir=$XDG_CACHE_HOME/vim/undo,$HOME/tmp,/tmp
set pastetoggle=<F2> " use F2 to toggle paste mode