1995eaton / chromium-vim

Vim bindings for Google Chrome.
https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh
MIT License
2.26k stars 325 forks source link

Contents of cVimrc gets cleared after restarting chrome #23

Closed svermeulen closed 10 years ago

svermeulen commented 10 years ago

I'm finding that every time I restart chrome I have to re-enter all the cVimrc commands that I added previously (cVimrc becomes empty).

Here is the cVimrc I'm using:

set scrollstep=150
set autofocus=false

unmap d
map d :open

unmap j
map j scrollDown

unmap o
map o scrollPageUp

unmap i
map i scrollPageDown

unmap <C-i>
map <C-i> scrollUp

unmap s
map s createHint

unmap S
map S createTabbedHint

unmap Y
map Y yankUrl

unmap /
map / openSearchBar

unmap ?
map ? openSearchBarReverse

unmap I
map I insertMode

unmap l
map l scrollRight

unmap h
map h scrollLeft

unmap gi
map gi goToInput

unmap <C-v>
map <C-v> centerMatchH

unmap m
map m createMultiHint

unmap r
map r reloadTab

unmap R
map R reloadTabUncached

unmap yy
map yy yankDocumentUrl

unmap b
map b :bookmarks

unmap p
map p openPaste

unmap P
map P openPasteTab

unmap x
map x closeTab

unmap t
map t :tabopen

unmap H
map H goBack

unmap L
map L goForward

unmap ]]
map ]] nextMatchPattern

unmap [[
map [[ previousMatchPattern

unmap n
map n nextSearchResult

unmap N
map N previousSearchResult

unmap :
map : openCommandBar

unmap D
map D scrollToTop

unmap V
map V scrollToBottom

unmap f
map f :open
1995eaton commented 10 years ago

Damn, this sucks, but it looks like the size of your cVimrc is tipping Chrome's sync storage over the maximum limit (~4kb). This means that for larger configs, cVim won't be able to sync between other Chrome sessions. I'll probably end up adding the Gist support discussed in issue #11. But for now, it would be best to switch to local storage (see latest commit).

1995eaton commented 10 years ago

I've pushed the latest commit to the Chrome Store, so this issue should be resolved for everyone in about an hour.

svermeulen commented 10 years ago

Great!

svermeulen commented 10 years ago

Yep appears fixed