summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-06-30 15:15:14 +0200
committerEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-06-30 15:15:14 +0200
commit74fee9f7c3a0d3ecae22393068f334b3431350fa (patch)
tree8e1b49a2cc3338111a531da2bb0ee9db83db31d3 /nvim
parent8726bd037c0bb9c4a2a9c179ccb819f1b425ff85 (diff)
Configuration better done
Diffstat (limited to 'nvim')
-rw-r--r--nvim/nvim/init.vim11
1 files changed, 3 insertions, 8 deletions
diff --git a/nvim/nvim/init.vim b/nvim/nvim/init.vim
index 497fa83..22315c9 100644
--- a/nvim/nvim/init.vim
+++ b/nvim/nvim/init.vim
@@ -1,8 +1,8 @@
" Vundle stuff ----------------------------------------------
set nocompatible
filetype off
-set rtp+=~/.vim/bundle/Vundle.vim
-call vundle#begin()
+set rtp+=$XDG_CONFIG_HOME/nvim/bundle/Vundle.vim
+call vundle#begin($XDG_CONFIG_HOME . '/nvim/bundle/')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
@@ -25,12 +25,7 @@ syntax on
filetype plugin on
" Show trailing spaces
-highlight ExtraWhitespace ctermbg=red guibg=red
-match ExtraWhitespace /\s\+$/
-autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
-autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
-autocmd InsertLeave * match ExtraWhitespace /\s\+$/
-autocmd BufWinLeave * call clearmatches()
+set list lcs=trail:·,tab:»·
" Clear trailing spaces on <F2>
function TrimWhiteSpace()