basically i want to test within my vimrc, if /home/$USER/.dotfiles/nvim/bundle/vim-snippets/snippets
was symlinked to /home/$USER/.dotfiles/nvim/snippets
If not, it should create the symlink.
the code:
au VimEnter * :!bash -c "! [ -L /home/$USER/.dotfiles/nvim/snippets ] && ln -sb /home/$USER/.dotfiles/nvim/bundle/vim-snippets/snippets /home/$USER/.dotfiles/nvim/snippets"
The ":"
before !bash
doesn't change anything.
the error message:
Error detected while processing VimEnter Auto commands for "*":
E34: No previous command
My problem is, i don't know what is wrong with my code and google/help pages also aren't very helpful.