From 175b814d8f045dcd59cfacf2debf11895cc03e22 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 20 May 2015 11:01:08 -0400 Subject: Updates files as of 2015-05-20 --- dot_vimrc | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'dot_vimrc') diff --git a/dot_vimrc b/dot_vimrc index 2793e55..5d22cec 100644 --- a/dot_vimrc +++ b/dot_vimrc @@ -6,12 +6,16 @@ let mapleader="," " Tab modes. map m :set expandtab ts=2 sw=2 sts=2 -map t :set noexpandtab ts=4 sw=4 +map t :set noexpandtab ts=4 sw=4 sts=4 map T :set expandtab ts=4 sw=4 sts=4 " Folds: map f :set fen fdn=3 fdm=indent fml=1 fdc=3 +" H-L for next-prev buffer +nnoremap L :bnext +nnoremap H :bprev + set hlsearch syntax on @@ -32,10 +36,11 @@ let g:sclangTerm = "urxvt -e" autocmd FileType tex setlocal spell spelllang=fr highlight SpellBad ctermfg=red ctermbg=none -let NERDTreeIgnore=['\.o$', '\.cmo$', '\.cmx$', '\.cmi$'] +let NERDTreeIgnore=['\.o$', '\.cmo$', '\.cmx$', '\.cmi$', '\.bin$', '\.lib$'] set wildmode=list:longest +au BufRead,BufNewFile *.make set filetype=make au BufRead,BufNewFile *.md set filetype=markdown au BufRead,BufNewFile *.lus set filetype=lustre au BufRead,BufNewFile *.scade set filetype=scade @@ -45,9 +50,20 @@ au BufRead,BufNewFile *.scade set filetype=scade " Use substitute() instead of printf() to handle '%%s' modeline in LaTeX " files. function! AppendModeline() - let l:modeline = printf(" vim: set ts=%d sw=%d tw=%d %set :", - \ &tabstop, &shiftwidth, &textwidth, &expandtab ? '' : 'no') + let l:modeline = printf(" vim: set sts=%d ts=%d sw=%d tw=%d %set :", + \ &softtabstop, &tabstop, &shiftwidth, &textwidth, &expandtab ? '' : 'no') let l:modeline = substitute(&commentstring, "%s", l:modeline, "") call append(line("$"), l:modeline) endfunction nnoremap ml :call AppendModeline() + + + +" set completeopt=menuone,menu,longest,preview + +set exrc " per-directory .vimrc files +set secure " no unsafe commands in local .vimrc files + + + + -- cgit v1.2.3