aboutsummaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-07-15 16:07:38 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-07-15 16:07:38 +0200
commit4f408b60c694367431cea23d50d32174836b13c1 (patch)
tree1baa2e15e9eb0fc956fcd0bd375bd44c3ed1e0a9 /vim
parent1cc284aa39146d417b852321041450f5a8089177 (diff)
downloaddotfiles-4f408b60c694367431cea23d50d32174836b13c1.tar.xz
vimrc: a bunch of things, don't feel like explaining...
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc30
1 files changed, 12 insertions, 18 deletions
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 <silent> <Leader>ml Go<ESC>``:call AppendModeline()<CR>
-
" Paste mode when pressing Insert, disables autoformating
set pastetoggle=<Insert>