Mapping to search for current line

2016-11-07 Thread skeept
I tried the following mapping for searching for the current line: nnoremap gsl /=getline('.') unfortunately this actually searchs for the string I give it literally. So I defined instead the mapping nnoremap gsl /^R=getline('.')^M where ^R is obtained with typing ctrl-v followed by ctrl-r and

Re: default.vim getting sourced even when vimrc is present

2016-11-07 Thread Ken Takata
Hi Karthick, 2016/11/7 Mon 22:24:03 UTC+9 Karthick wrote: > Hello all, > > > I just installed the 80-069 version of the MS-Windows Vim installer. I see > the scrolloff option is being set to "5" due to defaults.vim getting sourced. (snip) > In my case, $VIM/_vimrc file *is* present,

Re: default.vim getting sourced even when vimrc is present

2016-11-07 Thread Bram Moolenaar
Karthick Gururaj wrote: > I just installed the 80-069 version of the MS-Windows Vim installer. I see > the scrolloff option is being set to "5" due to defaults.vim getting > sourced. > > :verbose set scrolloff? > Shows, >scrolloff=5 > Last set from C:\Program Files

default.vim getting sourced even when vimrc is present

2016-11-07 Thread Karthick Gururaj
Hello all, I just installed the 80-069 version of the MS-Windows Vim installer. I see the scrolloff option is being set to "5" due to defaults.vim getting sourced. :verbose set scrolloff? Shows, scrolloff=5 Last set from C:\Program Files (x86)\Vim\vim80\defaults.vim :version VIM - Vi