Re: Search backwards in script

2015-04-13 Thread thinca
Try following: let v:searchforward = 0 Regards, -- thinca thi...@gmail.com 2015-04-13 18:02 GMT+09:00 av alexandrev...@gmail.com: Hi, I know it is possible to set a search by doing let @/ = 'searchString' but there is not the possibility to do let @? = 'searchString' to search

Re: How to delete a string between spaces?

2012-05-12 Thread thinca
Try diw See also :help iw -- thinca thi...@gmail.com -- 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

Re: search replace function

2012-03-01 Thread thinca
Try this. %s@@\=system('cat /dev/urandom | strings | tr -d \n | head -c 15')@gc -- thinca thi...@gmail.com -- 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

Re: tabs not restored with ssop=buffers,sesdir,folds,tabpages

2011-12-06 Thread thinca
Please try: set sessionoptions=buffers,sesdir,folds,tabpages The character means comment. Your code is equal to: set sessionoptions= -- 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

Re: Can a function tell if % range was explicitly passed?

2011-08-25 Thread thinca
How about this? function RangeTest(range_given, line1, line2) if a:range_given echo printf('range was given: %s - %s', a:line1, a:line2) else echo 'range was not given.' endif endfunction command -range=0 RangeTest call RangeTest(count, line1, line2) -- thinca thi...@gmail.com

Re: z CR doesn't work in a function

2011-08-10 Thread thinca
Try the following. silent execute normal! z\CR 2011/08/10 21:09 sinbad sinbad.sin...@gmail.com: hi, the following statement is not working inside a vim function. any clue ? silent normal! zCR thanks -- You received this message from the vim_use maillist. Do not top-post! Type your

Re: setline vs call setline

2011-07-01 Thread thinca
Use :call. All of lines of vim script are commands. So, can't call a function directly. Use :call command to call a function. -- thinca thi...@gmail.com -- 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

Re: why autocmd has E488 error

2011-04-16 Thread thinca
au BufRead *.c :silent! %s/\r//g -- 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

Re: how to set omnifunc complete window height (with img)

2010-09-28 Thread thinca
set previewheight=1 -- 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

Re: use the variable

2010-08-13 Thread thinca
let xxxdir = yyy :help expr-option -- 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