Browse files

Moar.

  • Loading branch information...
1 parent 0971646 commit 3d61c4c7640c86af107d8235118e30df0276ad8f @sjl committed Apr 14, 2012
Showing with 13 additions and 0 deletions.
  1. +9 −0 offlineimaprc
  2. +4 −0 vim/vimrc
View
9 offlineimaprc
@@ -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")
View
4 vim/vimrc
@@ -433,6 +433,10 @@ vnoremap L g_
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>

0 comments on commit 3d61c4c

Please sign in to comment.