summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dot_vimrc15
1 files changed, 11 insertions, 4 deletions
diff --git a/dot_vimrc b/dot_vimrc
index 5d22cec..dc74cb3 100644
--- a/dot_vimrc
+++ b/dot_vimrc
@@ -23,6 +23,7 @@ set bg=dark
set mouse=a
set number
+set relativenumber
set smartindent
set term=xterm-256color
@@ -36,7 +37,7 @@ let g:sclangTerm = "urxvt -e"
autocmd FileType tex setlocal spell spelllang=fr
highlight SpellBad ctermfg=red ctermbg=none
-let NERDTreeIgnore=['\.o$', '\.cmo$', '\.cmx$', '\.cmi$', '\.bin$', '\.lib$']
+let NERDTreeIgnore=['\.o$', '\.cmo$', '\.cmx$', '\.cmi$', '\.lib$', '\.pyc$']
set wildmode=list:longest
@@ -59,11 +60,17 @@ nnoremap <silent> <Leader>ml :call AppendModeline()<CR>
-" set completeopt=menuone,menu,longest,preview
+" indentation for long line wraps
+set breakindent
+let &showbreak = '> '
+
-set exrc " per-directory .vimrc files
-set secure " no unsafe commands in local .vimrc files
+" set completeopt=menuone,menu,longest,preview
+set directory=~/.vim/swp
+set backupdir=~/.vim/backup
+set undofile
+set undodir=~/.vim/undo