chromium-vim icon indicating copy to clipboard operation
chromium-vim copied to clipboard

Sourcing .cvimrc

Open daGrevis opened this issue 9 years ago • 1 comments

I have created a very simple ~/.cvimrc configuration:

let configpath = '/home/dagrevis/.cvimrc'
set localconfig

" Does not work until manually executed in brower.
set smoothscroll

" This, however, works fine.
map <C-d> d
map <C-u> e

" Also has to be manually executed.
unmap J K
map J gt
map K gT

When I start the browser, <C-d> and <C-u> are remapped as expected. This means that the file has been loaded and executed. However, smoothscroll is not enabled. Also mappings J and K are not remapped. They work as by default.

When I execute mappings in the browser, they work. I can type :map J gt and it will create a working mapping. This could mean that there's something wrong with sourcing ~/.cvimrc. My guess is that default configuration is executed after my configuration.

When I run :source /home/dagrevis/.cvimrc from the browser, things start to work.

daGrevis avatar Jun 11 '16 13:06 daGrevis

Hi @daGrevis, take a look at https://github.com/1995eaton/chromium-vim/issues/312#issuecomment-624797334

andremeireles avatar May 06 '20 18:05 andremeireles