I get errors for all these commands when I try to use vim (though vim then works):
autocmd BufWritePre *.rb :%s/\s\+$//e
set filetype off
filetype plugin on
filetype indent on
syntax on " Turn on syntax highlighting
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
let mapleader = ","
set foldmethod=indent "fold based on indent
set foldnestmax=10 "deepest fold is 10 levels
set nofoldenable "dont fold by default
set foldlevel=1 "what I use
let loaded_matchparen = 1 " MDD Turn off matching bracket " Ubuntu14 filetype plugin indent on " required
If I comment these lines out in my .vimrc I don't get any errors.
But I suspect I may have now 'lost' those settings.
Is there a different form for them or something in vim in Ubuntu 13?
Errors:
Three categories:
- Sorry, the command is not available in this version
- Option not supported
- Unknown option
Details:
$ vi .vimrc
Error detected while processing /home/durrantm/.vimrc:
line 20:
E319: Sorry, the command is not available in this version: autocmd BufWritePre *.rb :%s/\s\+$//e
line 24:
E519: Option not supported: filetype
line 25:
E319: Sorry, the command is not available in this version: filetype plugin on
line 26:
E319: Sorry, the command is not available in this version: filetype indent on
line 27:
E319: Sorry, the command is not available in this version: syntax on " Turn on syntax highlighting
line 37:
E319: Sorry, the command is not available in this version: match ExtraWhitespace /\s\+$/
line 38:
E319: Sorry, the command is not available in this version: autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
line 39:
E319: Sorry, the command is not available in this version: autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@
<!$/
line 40:
E319: Sorry, the command is not available in this version: autocmd InsertLeave * match ExtraWhitespace /\s\+$/
line 41:
E319: Sorry, the command is not available in this version: autocmd BufWinLeave * call clearmatches()
line 48:
E319: Sorry, the command is not available in this version: let mapleader = ","
line 52:
E518: Unknown option: foldmethod=indent
line 53:
E518: Unknown option: foldnestmax=10
line 54:
E518: Unknown option: nofoldenable
line 55:
E518: Unknown option: foldlevel=1
line 57:
E319: Sorry, the command is not available in this version: let loaded_matchparen = 1 " MDD Turn off matching brac
ket highlighting.
line 58:
E319: Sorry, the command is not available in this version: filetype plugin indent on
Turns out I didn't have vim, just had vi, due to dependency issues after the upgrade.
tl;dr; - needed older versions of dependencies. Fixed with:
Full Version...
Fix was:
Attempted to do:
But got message
So then I tried:
Finally, realizing that the messages say the dependency is
2:7.4.052
but I have2:7.4.335
for vim-common and vim-runtime, in other words I had more recent versions. Realizing this the final fix was:Then I was able to do;
This fixed all the issues except for one line
which I changed to