lördagen den 22:e mars 2014 skrev Arup Rakshit
<[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>
>:

> On Saturday, March 22, 2014 4:56:34 PM UTC+5:30, Erik Christiansen wrote:
> > On 22.03.14 02:29, Arup Rakshit wrote:
> >
> > > I am not using *tab* for indentation, rather 2 space indentation.
> >
> >
> >
> > Then either you or some program would need to count spaces, and divide
> >
> > by some factor, in this case 2.
> >
> >
> >
> > > Could you tell me what to change in my .vimrc file ?
> >
> >
> >
> > Just omit the initial colons in:
> >
> >
> >
> > > > :set tabstop=2 sw=2 noexpandtab
> >
> > > >
> >
> > > > :set listchars+=tab:>-
> >
> > > >
> >
> > > > :set list
> >
> >
> >
> > They are used when entering the commands in normal mode, but are not
> >
> > required in .vimrc.
> >
> >
> >
> > Erik
> >
> >
> >
> > --
> >
> > I contend that we are both atheists. I just believe in one fewer god
> >
> > than you do. When you understand why you dismiss all the other
> >
> > possible gods, you will understand why I dismiss yours.
> >
> >                                             - Sir Stephen Henry Roberts
>
> Hi.
>
> Now I am getting some $ at the end of my each line :
>
> with the current .vimrc file :
>
> set nocompatible      " We're running Vim, not Vi!
> syntax on             " Enable syntax highlighting
> filetype on           " Enable filetype detection
> filetype indent on    " Enable filetype-specific indenting
> filetype plugin on    " Enable filetype-specific plugins
> colorscheme zellner
>
> set number
> set expandtab
> set tabstop=2 shiftwidth=2 softtabstop=2
> set autoindent
>
> :let g:html_indent_inctags = "html,body,head,table,div"
>
> set tabstop=2 sw=2 noexpandtab
> set listchars+=tab:>-
> set list
>
> au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe
> "normal! g`\"" | endif
>
> autocmd FileType ruby nmap <F5> :!ruby %<cr>
>
> " Autoclose pipe in Ruby
> autocmd FileType ruby let b:AutoClosePairs =
> AutoClose#DefaultPairsModified("|", "")
>
> set rtp+=~/.vim/bundle/vundle/
> call vundle#rc()
>
> " let Vundle manage Vundle
> " required!
>
> set shell=/bin/bash\ -i
>
> Bundle 't9md/vim-ruby-xmpfilter'
> Bundle 'Townk/vim-autoclose'
> Bundle 'vim-ruby/vim-ruby'
> Bundle 'gmarik/vundle'
> Bundle 'scrooloose/nerdtree'
> Bundle 'tpope/vim-endwise'
> Bundle 'tpope/vim-rvm'
> Bundle 'vim-scripts/Conque-Shell'
> Bundle 'hdima/python-syntax'
>
>
> autocmd FileType ruby nmap <buffer> <M-c> <Plug>(xmpfilter-mark)
> autocmd FileType ruby xmap <buffer> <M-c> <Plug>(xmpfilter-mark)
> autocmd FileType ruby imap <buffer> <M-c> <Plug>(xmpfilter-mark)
>
> autocmd FileType ruby nmap <buffer> <M-z> <Plug>(xmpfilter-run)
> autocmd FileType ruby xmap <buffer> <M-z> <Plug>(xmpfilter-run)
> autocmd FileType ruby imap <buffer> <M-z> <Plug>(xmpfilter-run)
>
> I don't know why those **$** is coming...


It's because of :list mode. Do :help listchars

You have to remove the entry for eol. It is however handy to spot trailing
whitespace easier, though you may want to define a mapping like

:inor <localleader>ws %s/\s\+$//<cr>

to simply remove all trailing whitespace. (There may be better ways!)


> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to