New Vim configs cause `command not found` errors
seungdols opened this issue · comments
I install dotfailes program and then i add vim plugin srcExplToggle
and TagList
, so, i add in ~/.vimrc
map <leader>src :SrcExplToggle<CR>
let g:SrcExpl_winHeight = 8
let g:SrcExpl_refreshTime = 100
let g:SrcExpl_jumpKey = "<ENTER>"
let g:SrcExpl_gobackKey = "<SPACE>"
let g:SrcExpl_isUpdateTags = 0
map <leader>tli :Tlist<CR>
let Tlist_Inc_WinWidth = 0
let Tlist_Exit_OnlyWindow = 0
let Tlist_Auto_Open = 0
let Tlist_Use_Right_Window = 1
but i see this the phrases..
/home/seungdols/.vimrc:1: command not found: ----------------------------------------------------------------------\n
/home/seungdols/.vimrc:2: command not found: General
/home/seungdols/.vimrc:3: command not found: ----------------------------------------------------------------------\n\nset nocompatible
/home/seungdols/.vimrc:25: no matches found: backupskip+=/private/tmp/*
What can I tell you that you have the wrong?
What can I tell you that you have the wrong?
- What is the output of
vim --version
? - Can you provide me with a link to your
.vimrc
file or post its entire content here?
@seungdols I'll happily try to help you if you provide further information.
Sorry. I've seen too late.
The installation again, I Enter the following command:
source ~ / .vimrc
And the message coming out is as follows:
/home/seungdols/.vimrc:1: command not found: ------------------------------------ ---------------------------------- \ n
/home/seungdols/.vimrc:2: command not found: General
/home/seungdols/.vimrc:3: command not found: ------------------------------------ ---------------------------------- \ n \ nset nocompatible
/home/seungdols/.vimrc:25: no matches found: backupskip + = / private / tmp / *
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:47)
포함된 패치: 1-52
I'll try again.
/home/seungdols/.vimrc:1: command not found: ------------------------------------ ---------------------------------- \ n /home/seungdols/.vimrc:2: command not found: General /home/seungdols/.vimrc:3: command not found: ------------------------------------ ---------------------------------- \ n \ nset nocompatible /home/seungdols/.vimrc:25: no matches found: backupskip + = / private / tmp / *
@seungdols That happens because by doing source ~/.vimrc
, you're executing the code from the ~/.vimrc
file using your default shell (e.g. Bash
).
source ~ / .vimrc
@seungdols You don't need to source the ~/.vimrc
file, Vim
will automatically read and executed that file at startup.
Hope it helps!