Error detected while PROCESSING/ROOT/.VIMRC:

Source: Internet
Author: User

1, problem description

After the comment line in the block. VIMRC::

$ VI.. /.. /.. /.vimrc# set Cursorline # set cursorcolumn# "Hi cursorline cterm=none ctermbg=257#" Hi cursorcolumn cterm=NONE ctermbg=257

The following error always occurs when editing the contents of the current file:

$ VI in.thermalstress Error detected while processing/home/pandx/.vimrc:line    1:e488:trailing characters: # set Curso Rlineline    2:e488:trailing characters: # set Cursorcolumnline    3:e749:empty bufferline    4:e749:empty bufferpress ENTER or type command to continue

  

2. Solutions

The problem is that the comment symbol in the. VIMRC: is not the usual "#", but rather a separate "double quotation mark (") ". Re-modify. VIMRC: The contents are as follows:

$ VI.. /.. /.. /.VIMRC "Set Cursorline  " Set Cursorcolumn "" Hi cursorline cterm=none ctermbg=257 "" Hi cursorcolumn cterm=none cter mbg=257

Back to the current directory to edit the contents of the file, "error detected while PROCESSING/ROOT/.VIMRC:" This error no longer occurs.

3. Extended reading

in vim-common-7.2.411-1.8.el6.x86_64 There is an example "/usr/share/vim/vim72/macros/urm/examples" about VIMRC:

$ RPM-QA | grep vimvim-common-7.2.411-1.8.el6.x86_64vim-enhanced-7.2.411-1.8.el6.x86_64vim-minimal-7.2.411-1.8.el6.x86_64$ RPM-QL Vim-common | grep example/usr/share/vim/vim72/gvimrc_example.vim/usr/share/vim/vim72/macros/urm/examples/usr/share/vim/vim72 /vimrc_example.vim

Here's what's in the example:

$ CAT/USR/SHARE/VIM/VIM72/VIMRC_EXAMPLE.VIM "An example for a VIMRC file." Maintainer:bram Moolenaar <[email protected]> ' last change:2008 Jul ', ' to use it, copy it to ' for Unix an  D OS/2: ~/.VIMRC ' for AMIGA:S:.VIMRC ' for MS-dos and Win32: $VIM \_vimrc ' for OPENVMS:SYS$LOGIN:.VIMRC ' when Started as "Evim", Evim.vim would already has done these settings.if v:progname =~? "Evim" finishendif "use Vim settings, rather then Vi settings (much better!)." This must is first, because it changes other options as a side Effect.set nocompatible "Allow backspacing over everything In insert Modeset backspace=indent,eol,startif have ("VMS") set Nobackup "Do not keep a backup file, use versions Insteadel SE set Backup "keep a backup fileendifset history=50" keep lines of command line Historyset ruler "show the cursor pos Ition all the Timeset showcmd "display incomplete commandsset incsearch" does incremental searching "for Win32 gui:remove" T ' flag from ' guioptions ': No tearoff menu Entries "let &guioptions = Substitute (&guioptions," T "," "", "G") "Don ' t use Ex mode, use Q for fo  Rmattingmap Q GQ "ctrl-u in insert mode deletes a lot. Use Ctrl-g U-first break undo, "So-you can undo ctrl-u after inserting a line break.inoremap <C-U> &LT;C-G&G T;u<c-u> "In many terminal emulators the mouse works just fine, thus enable it.if have (' mouse ') set MOUSE=AENDIF" Sw Itch syntax highlighting on, when the terminal have colors "Also switch on highlighting the last used search Pattern.if &am P;t_co > 2 | | Have ("gui_running") syntax on set HLSEARCHENDIF "only does this part when compiled with support for Autocommands.if have (" Au  Tocmd ")" Enable file type detection. "Use of the default filetype settings, so-mail gets ' tw ' set to ', ' ' cindent ' are on in C files, etc."  Also load indent files, to automatically do language-dependent indenting. FileType plugin indent on "Put these in a autocmd group, so" we can delete them EasilY. Augroup Vimrcex au!  "For all text files set ' TextWidth ' to characters.  Autocmd FileType text setlocal textwidth=78 "When editing a file, always jump to the last known cursor position.  "Don ' t does it when the position are invalid or when inside an event handler" (happens when dropping a file on Gvim).  "Also does it when the mark was in the first line, and that's the default" position when opening a file.    Autocmd Bufreadpost * \ If line ("' \ '") > 1 && line ("' \" ") <= Line (" $ ") | \ exe "normal!    G ' \ "" |  \ endif augroup Endelse set autoindent "Always set autoindenting onendif" have ("Autocmd") "Convenient command to see the Difference between the current buffer and the "file it is loaded from, thus the changes you made." Only define it when not defined Already.if!exists (":D ifforig") command Difforig vert New | Set Bt=nofile | R # | 0d_ | Diffthis \ | Wincmd p | Diffthisendif

You can clearly see that the double quotation marks are their annotation symbols.

Further, see the Chinaunix above for the original "fat with the few": RPM in-depth application.

Error detected while PROCESSING/ROOT/.VIMRC:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.