igbanam / dotfiles

Things I need to setup my computer
MIT License
2 stars 0 forks source link

Configure Nvim from Vim #2

Closed igbanam closed 4 years ago

igbanam commented 4 years ago

From the vim docs, these commands should be run within vim

:call mkdir(stdpath('config'), 'p')
:exe 'edit '.stdpath('config').'/init.vim'
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

Here, I need to figure out a way to instruct Vim to do this from the terminal since it would be running as part of a bash script