You need to set the strings to use (listchars) when in list mode and for the list command. :help listchars
This is what I use. if has('multi_byte') && &enc ==# 'utf-8' set listchars=tab:▸\ ,extends:❯,precedes:❮,trail:·,nbsp:± let &showbreak = '↪' else set listchars=tab:>\ ,extends:>,precedes:<,trail:.,nbsp:. endif — Konstantinos On 22 Μαρ 2014, at 13:44, Arup Rakshit <tuka...@gmail.com> wrote: > 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... > > -- > -- > 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 vim_use+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > <Screenshot from 2014-03-22 17:13:29.png> -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.