Gustin Johnson wrote: >On Mon, 2005-06-06 at 06:00 -0600, Michael Walters wrote: > > >>Hello Gustin, >> >>Why did you set the following?: >> >>set noexpandtab >> >> >> > >This causes vim to use a tab character instead of a set of spaces. > > > >>Does that mean that you can not now use tab in Vim? >> >> >> > >I use TAB all the time. It is just a different behaviour from the >"stock" vim. > > > >>For ordinary text files like my daily agenda I like to have line wrap >>working for long agenda items. And when line wrap was on it did not seem >>to hurt the compilation of my C programs. >> >>I looked for .vimrc in both my /home directory and my /home/michael >>directory and it did not seem to be there. The file .viminfo does seem >>to be there. >> >>Should I create a .vimrc file containing the following? : >> >> >> > >Yes. It is not created by default (on the distros I have used anyway). > > > >>syntax on >>set wrap >>set is >>set nls >> >>I have left out the following on the previous list: >> >>set ignorecase (because C programming is case sensitive) >>set noexpandtab( because I want line wrap to go to my last indentation). >> >> >> > > >
I edited my .vimrc to the following and line wrap still does not work, although syntax still works: syntax on set wrap set is set nls What am I doing wrong that line wrap does not work in Vim now? regards, Michael ____________________________________________________________ >You can also set the following: >nmap <silent> <C-N> :silent noh<CR> > >What this does is map Ctrl-N to turn off your search highlighting, which >I personally find annoying (hence the key mapping) > >Also, a useful tip is the "*". Pressing "*" will search for the word >under the cursor. Like everyone else who learns about this I wish I had >figured it out far earlier than I did. > >I periodically check http://www.vim.org/tips/ which is where I find some >of this stuff. > >Cheers. > > > >------------------------------------------------------------------------ > >___________________________________________ > > Blessings, Michael _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

