I am running Windows 7 RC and when I have a vimrc file the backspace stops
working for me. I get the following message regardless of what mode I'm in:
"E319: Sorry, the command is not avialabe in this version"
Any ideas?
---------------------
set nocompatible
" Incremental search + highlight matches
set hlsearch
set incsearch
" smart indenting
set cindent
set formatoptions=tcqor
set cino=:0,g0,+0,:0
" set nolist
" list trailing spaces as asterisks
set listchars=tab:>\ ,trail:*
" Turn off smarttab
set nosmarttab
" Don't keep around a permanent backup, but do keep around the temporary
" backups while a file is being edited (they get deleted on save/exit)
set nobackup
set writebackup
" Show matching parens
set showmatch
" When wordwrap is on, don't break in the middle of words
set linebreak
set showbreak=+
"" Use spaces instead of tabs
"set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
set ruler
set guioptions-=T
set guioptions-=m
set guioptions-=r
set guioptions-=b
" Make the clipbaord work for C-c and C-v
vmap <C-c> y:call system("pbcopy", getreg("\""))<CR>
nmap <C-v> :call setreg("\"",system("pbpaste"))<CR>p
""colo delek
syntax on
au BufRead,BufNewFile *.xaml setfiletype xml
set tabstop=4
if has("gui_running")
"GUI is running or is about to start.
"Maximize gvim window.
set lines=9999999 columns=9999999
else
"This is console Vim.
if exists("+lines")
set lines=80
endif
if exists("+columns")
set columns=235
endif
endif
" Highlight whitespace problems.
" flags is '' to clear highlighting, or is a string to
" specify what to highlight (one or more characters):
" e whitespace at end of line
" i spaces used for indenting
" s spaces before a tab
" t tabs not at start of line
function! ShowWhitespace(flags)
let bad = ''
let pat = []
for c in split(a:flags, '\zs')
if c == 'e'
call add(pat, '\s\+$')
elseif c == 'i'
call add(pat, '^\t*\zs \+')
elseif c == 's'
call add(pat, ' \+\ze\t')
elseif c == 't'
call add(pat, '[^\t]\zs\t\+')
else
let bad .= c
endif
endfor
if len(pat) > 0
let s = join(pat, '\|')
exec 'syntax match ExtraWhitespace "'.s.'" containedin=ALL'
else
syntax clear ExtraWhitespace
endif
if len(bad) > 0
echo 'ShowWhitespace ignored: '.bad
endif
endfunction
function! ToggleShowWhitespace()
if !exists('b:ws_show')
let b:ws_show = 0
endif
if !exists('b:ws_flags')
let b:ws_flags = 'est' " default (which whitespace to show)
endif
let b:ws_show = !b:ws_show
if b:ws_show
call ShowWhitespace(b:ws_flags)
else
call ShowWhitespace('')
endif
endfunction
nnoremap <Leader>ws :call ToggleShowWhitespace()<CR>
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
:set list!
" :colorscheme inkpot
:set guifont=Consolas:h9
" tab navigation like firefox
:nmap <C-S-tab> :tabprevious<CR>
:nmap <C-tab> :tabnext<CR>
:map <C-S-tab> :tabprevious<CR>
:map <C-tab> :tabnext<CR>
:imap <C-S-tab> <Esc>:tabprevious<CR>
:imap <C-tab> <Esc>:tabnext<CR>
:nmap <C-t> :tabnew<CR>
:imap <C-t> <Esc>:tabnew<CR>
"
" Some TFS commands
" {{{
function! TFEdit( FileName )
execute "!tf edit " . a:FileName
endfunction
function! TFAdd( FileName )
execute "!tf add " . a:FileName
endfunction
function! TFGet( FileName )
execute "!tf get " . a:FileName
endfunction
function! Tfs_diff_windows( FileName )
execute '!tf diff ' . a:FileName
endfunction
command! Tad :call TFAdd(expand('%:p'))
command! Ted :call TFEdit(expand('%:p'))
command! Tget :call TFGet(expand('%:p'))
command! Tfdiff :call Tfs_diff_windows(expand('%:p'))
" }}}
map <F10> <Esc> :w!<CR>:Ted<CR>:e<CR>
map <F11> <Esc> :Tad<CR>:e<CR>
map <F12> <Esc> :Tget<CR>:e<CR>
map <C-h> <Esc> :promptrepl<CR>
map! <C-h> <Esc> :promptrepl<CR>
map! <C-w> <Esc> :q<CR>
:set guioptions+=T
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---