2d0147123d68

Moar.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 14 Apr 2012 10:01:00 -0400
parents 94e4952fb5d3
children c84b84dbac40 19d2579685cc
branches/tags (none)
files offlineimaprc vim/vimrc

Changes

--- a/offlineimaprc	Fri Apr 13 17:14:12 2012 -0400
+++ b/offlineimaprc	Sat Apr 14 10:01:00 2012 -0400
@@ -2,16 +2,25 @@
 ui = TTY.TTYUI
 accounts = SteveLosh
 pythonfile=~/.mutt/offlineimap.py
+fsync = False
 
 [Account SteveLosh]
 localrepository = SteveLosh-Local
 remoterepository = SteveLosh-Remote
+status_backend = sqlite
 
 [Repository SteveLosh-Local]
 type = Maildir
 localfolders = ~/.mail/steve-stevelosh.com
+nametrans = lambda folder: {'drafts':  '[Gmail]/Drafts',
+                            'sent':    '[Gmail]/Sent Mail',
+                            'flagged': '[Gmail]/Starred',
+                            'trash':   '[Gmail]/Trash',
+                            'archive': '[Gmail]/All Mail',
+                            }.get(folder, folder)
 
 [Repository SteveLosh-Remote]
+maxconnections = 1
 type = Gmail
 remoteuser = steve@stevelosh.com
 remotepasseval = get_keychain_pass(account="steve@stevelosh.com", server="imap.gmail.com")
--- a/vim/vimrc	Fri Apr 13 17:14:12 2012 -0400
+++ b/vim/vimrc	Sat Apr 14 10:01:00 2012 -0400
@@ -433,6 +433,10 @@
 inoremap <c-a> <esc>I
 inoremap <c-e> <esc>A
 
+" gi already moves to "last place you exited insert mode", so we'll map gI to
+" something similar: move to last change
+nnoremap gI `.
+
 " Open a Quickfix window for the last search.
 nnoremap <silent> <leader>? :execute 'vimgrep /'.@/.'/g %'<CR>:copen<CR>