From a5d2629c71f97a35b5c5cfeaca8e302f3b9b985a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 14 Jan 2013 15:50:57 +0100 Subject: cleanup --- vimrc | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/vimrc b/vimrc index 3f356d3..fdd58d8 100644 --- a/vimrc +++ b/vimrc @@ -16,6 +16,8 @@ else colorscheme adobe endif +" nap alt-space to Esc +:imap :imap call togglebg#map("") @@ -25,6 +27,23 @@ call togglebg#map("") highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ +" Set color over 80 chars +au BufRead *.c,*.cpp,*.h match ExtraOver /\s\+\%#\@ :set ts=8 sw=3 sts=3 expandtab cino=>5n-3f0^-2{2(0W1st0 + +" local vimrc +let g:localvimrc_ask=0 +"let g:localvimrc_sandbox=0 + +" tags +nnoremap :TlistToggle +let Tlist_Exit_OnlyWindow = 1 " exit if taglist is last window open +let Tlist_Show_One_File = 1 " Only show tags for current buffer +let Tlist_Enable_Fold_Column = 0 " no fold column (only showing one file) + " files set ff=unix set nofsync @@ -32,13 +51,6 @@ set nofsync :au BufNewFile * :exe("0r! ~/.vim/skeletons.rb %:p " . &filetype) :au Filetype html,xml,xsl source ~/.vim/scripts/closetag.vim -" Set color over 80 chars -au BufRead *.c,*.cpp,*.h match ExtraOver /\s\+\%#\@ :set ts=8 sw=3 sts=3 expandtab cino=>5n-3f0^-2{2(0W1st0 - " set list " set cursorline " set cursorcolumn @@ -62,9 +74,6 @@ set incsearch " do incremental searching set number " show line number set showmode " show current mode -" nap alt-space to Esc -:imap - " toggle view invisible with \t nmap l :set list! @@ -117,8 +126,6 @@ if has("autocmd") " Treat .rss files as XML autocmd BufNewFile,BufRead *.rss setfiletype xml - "set tags+=~/share/ctags/efl.tags - endif " has("autocmd") function! Preserve(command) -- cgit v1.1-2-g2b99