summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-05-05 21:17:25 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-05-05 21:17:25 +0100
commitb6983b02553a5f8e71fe2810a4b35ec2436a376e (patch)
treeb4d85140f62eba1efb1fd3548094b2fed8c6c43a /vim/.vimrc
parent0c69219de100c2e8d0a389321686f21519894997 (diff)
Make .vimrc compatible with older versions of vim
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc14
1 files changed, 10 insertions, 4 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index e8a424f..89a7b1f 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -57,8 +57,9 @@ if has("nvim")
Plug 'Shougo/deoplete.nvim'
Plug 'benekastah/neomake'
else
- Plug 'Valloric/YouCompleteMe', { 'do' : 'python2 install.py --clang-completer' }
+ Plug 'Shougo/neocomplete.vim'
Plug 'scrooloose/syntastic'
+ " Plug 'Valloric/YouCompleteMe', { 'do' : 'python2 install.py --clang-completer' }
endif
call plug#end()
@@ -127,9 +128,13 @@ let g:airline#extensions#tabline#formatter = 'unique_tail'
let g:airline#extensions#tabline#tab_min_count = 2
let g:airline#extensions#tabline#show_buffers = 0
-" Deoplete
+" Deoplete / neocomplete
let g:deoplete#enable_at_startup = 1
+let g:neocomplete#enable_at_startup = 1
let g:deoplete#omni#input_patterns={}
+if !exists('g:deoplete#omni#input_patterns')
+ let g:deoplete#omni#input_patterns = {}
+endif
let g:deoplete#omni#input_patterns.ledger = ':\w*'
let g:deoplete#omni#input_patterns.tex = ['cite.\w*', 'ref.\w*']
@@ -201,8 +206,6 @@ set noswapfile
set nowritebackup
set undofile
set diffopt=filler,vertical
-set breakindent
-let &showbreak='--> '
set nowrap
set conceallevel=2
set nojoinspaces
@@ -211,6 +214,9 @@ set smartcase
set ignorecase
set lazyredraw
set hidden
+set encoding=utf-8 " Makes it slow to source
+silent! set breakindent
+let &showbreak='--> '
" set clipboard=unnamedplus
" set spellfile="$HOME/.vim/spell/en.utf-8.add"