From 4f408b60c694367431cea23d50d32174836b13c1 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 15 Jul 2014 16:07:38 +0200 Subject: vimrc: a bunch of things, don't feel like explaining... --- vim/vimrc | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 400af89..38906db 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,10 +1,11 @@ -set nocompatible " be iMproved set shortmess+=I + " Respect XDG -set directory=$XDG_CACHE_HOME/vim,~/,/tmp -set backupdir=$XDG_CACHE_HOME/vim,~/,/tmp set viminfo+=n$XDG_CACHE_HOME/vim/viminfo +set directory=$XDG_CACHE_HOME/vim/swap,/tmp +set backupdir=$XDG_CACHE_HOME/vim/backup,/tmp +set undodir=$XDG_CACHE_HOME/vim/undo,/tmp set runtimepath=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after,$VIM,$VIMRUNTIME,/usr/share/vim/vimfiles let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" @@ -26,10 +27,12 @@ NeoBundle 'Shougo/unite.vim' " Colorscheme❤ NeoBundle "daylerees/colour-schemes", { "rtp": "vim-themes/" } colorscheme Darkcustomside -"colorscheme mustang -" Smart Tabs (http://www.emacswiki.org/emacs/SmartTabs) -NeoBundle 'gustavo-hms/vim-smart-tabs' +NeoBundle 'mattn/emmet-vim' + +NeoBundle 'miekg/rfc' + +NeoBundle 'tommcdo/vim-exchange' syntax on filetype plugin indent on @@ -46,9 +49,9 @@ set wildignore=*.swp,*.bak,*.pyc,*.class set title " change the terminal's title set visualbell " don't beep set noerrorbells " don't beep -set nobackup -set noswapfile - +set ruler +set backup +set undofile " Save undo's after file closes set mouse=a nnoremap ; : @@ -74,15 +77,6 @@ set hidden set list lcs=tab:\ \ " Note the extra space after the second \ -" Append modeline after last line in buffer. -function! AppendModeline() - let l:modeline = printf("vim: set ts=%d sts=%d sw=%d %set:", - \ &tabstop, &softtabstop, &shiftwidth, &expandtab ? '' : 'no') - let l:modeline = substitute(&commentstring, "%s", l:modeline, "") - call append(line("$"), l:modeline) -endfunction -nnoremap ml Go``:call AppendModeline() - " Paste mode when pressing Insert, disables autoformating set pastetoggle= -- cgit v1.2.3-70-g09d2