I have created two short .vim files to quickly switch between some configurations and placed them in ~/.vim
If I start vim from ~/.vim
and do :run write.vim
or :run code.vim
, they work fine, but if I start vim from anywhere else (e.g. ~/
) and try :run .vim/write.vim
(from ~/
) or :run ~/.vim/write.vim
(from anywhere else), it won't run. Any ideas why?
For completeness' sake, I have put in both .vim files.
write.vim
colorscheme pencil
set background=light
set colorcolumn=0
set wrap
set nonumber
code.vim
colorscheme tomorrow-night-eighties
set background=dark
set colorcolumn=100
highlight ColorColumn ctermbg=darkgrey
set nowrap
set number