diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-07-15 16:07:38 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-07-15 16:07:38 +0200 |
commit | 4f408b60c694367431cea23d50d32174836b13c1 (patch) | |
tree | 1baa2e15e9eb0fc956fcd0bd375bd44c3ed1e0a9 | |
parent | 1cc284aa39146d417b852321041450f5a8089177 (diff) | |
download | dotfiles-4f408b60c694367431cea23d50d32174836b13c1.tar.xz |
vimrc: a bunch of things, don't feel like explaining...
-rw-r--r-- | vim/vimrc | 30 |
1 files changed, 12 insertions, 18 deletions
@@ -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 <silent> <Leader>ml Go<ESC>``:call AppendModeline()<CR> - " Paste mode when pressing Insert, disables autoformating set pastetoggle=<Insert> |