Mark special characters

2024-05-22 Thread Igor
Hi, I use latest vim v9.1.0429 on Windows 11. In the file I have received I was convinced there are spaces between words, but there were some special characters and so when I tried to execute the commands in my cmd I have got very strange syntax errors. Probably some special character has been

Re: How to replace characters in visual block selection

2024-01-10 Thread Igor
@Eric, in my case I was required to escape % character with \% In my case it works: :s/\%VA/X/g Thanks for help. -- -- 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

How to replace characters in visual block selection

2024-01-10 Thread Igor
I use vim 9.1.0016 on Windows 10. In second column I would like to replace all A characters with X characters. Sample: AAA AAA AAA AAA After change: AAA XXX AAA XXX Above is very simple sample. In my case I have text of words, not just letter A. I did: My cursor after opening a file is at

Re: How to make Vim having a little better mouse support

2023-11-13 Thread Igor Lerinc
on't know if it's because of my xfce4 terminal, and terminal doesn't send some stuff ? Which terminal you use ? On Mon, Nov 13, 2023 at 11:06 PM Gary Johnson wrote: > On 2023-11-13, Igor Lerinc wrote: > > Yes, I did all tips I could apply about enabling mouse support in > `.vimrc`

How to make Vim having a little better mouse support

2023-11-13 Thread Igor Lerinc
Yes, I did all tips I could apply about enabling mouse support in `.vimrc`, but I just want to have mouse support like in every other GUI editor. 1. I just need it to be able scroll with mouse selection (when I select, and go UP, it wont scroll to up like in every GUI editor does) (it can go

How to make Vim having a little better mouse support

2023-11-13 Thread Igor Lerinc
Yes, I did all tips I could apply about enabling mouse support in `.vimrc`, but I just want to have mouse support like in every other GUI editor. 1. I just need it to be able scroll with mouse selection (when I select, and go UP, it wont scroll to up like in every GUI editor does) (it can go

Re: Replace spaces with underscore after some pattern in line

2023-09-27 Thread Igor
All of the solutions work great. Thanks to you all. -- -- 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

Replace spaces with underscore after some pattern in line

2023-09-27 Thread Igor
How to replace all of the spaces in each line after XXX string? Input sample data: aa bb XXX a bbb ee XXX aaa ddd ddd ee XXX aaa bbb eee Output sample data: aa bb XXX_a_bbb ee

Re: vim autoformat ?

2023-05-28 Thread Igor Lerinc
as you know for .yaml files.. On Sun, May 28, 2023 at 6:53 AM Owajigbanam Ogbuluijah wrote: > Hey Igor, > > Formatting in Vim is pretty simple. Vim already understands how to format > many filetypes. Try not to use too many plugins to complicate things; > especially if you're not mand

Re: vim autoformat ?

2023-05-27 Thread Igor Lerinc
But what about plugins like https://github.com/vim-autoformat/vim-autoformat That use some external formatters. I find them slow, because it need to start program when called from Vim. And they say, it means you need to have some type of service running on your system. Like for 'prettier',

vim autoformat ?

2023-05-27 Thread Igor Lerinc
I can't wrap my head around Vim autoformat at all. I want to have autoformat on save feature. I don't want it to have delays, so when i press `:w` it immediatelly saves and formats indentation properly. I have no idea what is going on in (neo)Vim discussions about this autoformating. Looks

Re: alternating lines ?

2023-03-27 Thread Igor Lerinc
wrote: > > On Mo, 27 Mär 2023, Igor Lerinc wrote: > > > but i have performance issues. > > This is not natively possible in Vim, so we have to fall-back to using > signs (which can color complete lines, not just only the text within a > line). However, to keep i

Re: alternating lines ?

2023-03-27 Thread Igor Lerinc
here , this is my ideal how i want it to look. from some

Re: alternating lines ?

2023-03-27 Thread Igor Lerinc
compared to normal color of colorscheme. that would be ideal and not distracting On Mon, Mar 27, 2023 at 8:34 AM Christian Brabandt wrote: > > On Mo, 27 Mär 2023, jr wrote: > > > hi, > > > > On Mon, 27 Mar 2023 at 05:08, Igor Lerinc > wrote: > > > >

make it auto scroll horizontally

2023-03-26 Thread Igor Lerinc
how to make Vim, when it have long line, and my cursor is drawing end of window, that it just move half screen horizontally. so it detect automatically and move. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to.

alternating lines ?

2023-03-26 Thread Igor Lerinc
how to get sort of alternating lines ? not sure how to explain it, but if i want to have one line that is of background of colorscheme, and line after that, to have like some sort of deviation in terms of highlight. and line after this, to be again, background of colorscheme. something like i

Re: Can I copy/yank into and out of vim?

2023-03-06 Thread Igor Lerinc
""noremap y "*y ""noremap p "*p " noremap y "+y noremap p "+p noremap P "+P this works for me, on windows and linux both On Monday, March 6, 2023 at 11:12:25 PM UTC+1 Rory Campbell-Lange wrote: > On 06/03/23, Rory Campbell-Lange (ro...@campbell-lange.net) wrote: > > On 04/03/23, Tony Mechelynck

Re: get better copy backwards

2023-03-06 Thread Igor Lerinc
f the top of my head now, but it's there. Once you have that setup, > the solution in my first paragraph should work. > > If both of these don't *feel right* to you, you could always visually > select with your motions, then yank. > > > Best, > Igbanam > > On Mon, Mar 6, 2023 at

Re: get better copy backwards

2023-03-06 Thread Igor Lerinc
. and that alone, is making Vim useless for speedy work (tought, i wouldn't complain about other features, just that, this slows me down very much) On Monday, March 6, 2023 at 5:51:09 PM UTC+1 Salman Halim wrote: > On Mon, Mar 6, 2023 at 11:17 AM Igor Lerinc wrote: > >> imagine

get better copy backwards

2023-03-06 Thread Igor Lerinc
imagine i have line of text: echo "Zdravo, " . $_GET["ime"] . " " . $_GET["prezime"] . "." . ""; my cursor is *█* echo *█*"Zdravo, " . $_GET["ime"] . " " . $_GET["prezime"] . "." . ""; and then, i move cursor to ] with *f* it will go before last character in word echo "Zdravo, " .

change Vim search key , to .

2023-01-27 Thread Igor Lerinc
I want to change the Vim search key , (semicolon) to . (dot) When i need to go backward in search results, i use , (semicolon) but , (semicolon) is key in my config, so it wont work, I instead want it to make a key . (dot) -- -- You received this message from the "vim_use" maillist. Do

vim in onenote, and cherrytree

2023-01-25 Thread Igor Lerinc
i use extensively onenote for work, classes, everything, and cherrytree, but, i find Vim way of doing things much better. is there some way, to make it Vim compatible ? as i dont write my notes in plain txt, i need organisation it provides. does notion support Vim mode? should i use notion?

how to keep system clipboard in Vim register?

2023-01-05 Thread Igor Lerinc
how to keep system clipboard in Vim register? I setted up to copy from system clipboard with this in .vimrc noremap y "+y noremap p "+p but that interferes with Vim inner registers. when i yank, or delete something in vim, (like, i copy something from website, so i can put it in file via

how to get more efficient writing code

2023-01-03 Thread Igor Lerinc
can you reccomend me some youtube chanells, or videos, where programmers actually use Vim to edit code, and work with all that complex stuff. just to give me idea, how they do it. so i can get comfortable if i'm doing it efficient enought -- -- You received this message from the "vim_use"

Re: word count

2022-12-28 Thread Igor Lerinc
Yes, but is there way for it, to show some sort of numbers relative to curson on that line. Some small nukber above word, idk. Just not to calculate how much words i need to jump, if i want to go jumping between words. sre, 28. dec 2022. 17:56 Steve Litt je napisao/la: > Igor Lerinc s

word count

2022-12-28 Thread Igor Lerinc
we have relative numbering for lines, so we don't have to calculate when we want to jump between lines. But is something similar possible for words? For current line to show, what number of word it is? Depending on where cursor is? Because i don't feel like calculating how much words there is

Re: Error "Pattern found in every line". I expect to get "Pattern not found"

2022-09-28 Thread Igor
Ahhh... last paragraph should be: Just like at: :g/ccc/p--> command "g" instead of "v" Pattern not found: ccc -- -- 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

Error "Pattern found in every line". I expect to get "Pattern not found"

2022-09-28 Thread Igor
On latest gVim development 9.0612 downloaded from https://github.com/vim/vim-win32-installer/releases/latest on Windows 10. Text file: aaa bbb Try to find out all values not maching "aaa" :v/aaa/p It outputs: bbb So far as expected. Now from text file delete line "bbb" so only line "aaa"

Re: Access is denied error when staring gVim on Windows

2022-09-28 Thread Igor
Yes, default Windows antivirus program Windows Defender. -- -- 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

Re: Access is denied error when staring gVim on Windows

2022-09-28 Thread Igor
Sorry to not be clear enough. I use default Windows 10 embed antivirus (I have written: In Windows in Settings...). -- -- 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

Access is denied error when staring gVim on Windows

2022-09-28 Thread Igor
Hi, I have gVim 9 installed on my Windows 10. Yesterday I have used gVim just normally. I start a program, use it and close it down. Then when I need to edit another text file I start gVim again. Yesterday when I started program in the middle of the day I got "Access is denied" error. Then I

yanking works sometimes, and sometimes not

2022-08-24 Thread Igor Lerinc
- I dont know if this is to terminal emulator i'm using (xcfe4 terminal), but often, when i want to copy to external programs, i have set up shortcut, y to be as "+y , so it copy external, but when i try to combine it with , it doesn't detect. It is copying inside vim, that works, but

load diffrent font in gvim

2022-08-06 Thread Igor Lerinc
I use consolas font in Vim, but when i open it in Gvim, it appears widened (because consolas font is monospaced). So i want to use diffrent font for Gvim and diffrent for Vim. This is what i placed, but it doesn't work if has('gui_running') set guifont=Source\ Code\ Pro\ 10 set

vim 9.0 dont recognise stuff from 8.2

2022-08-05 Thread Igor Lerinc
e' changes numerous " options, so any other options should be set AFTER setting 'compatible'. "set compatible " Vim5 and later versions support syntax highlighting. Uncommenting the next " line enables syntax highlighting by default. syntax on set hidden "jos neka filetype

Re: vim with gui in windows

2022-07-25 Thread Igor Spiridonov
rtant for me. Stan: "*y works but i'd like to copy to the clipboard only by selection. Igor. On Sun, 24 Jul 2022 at 17:21, Stan Brown wrote: > On 2022-07-24 01:40, Igor Spiridonov wrote: > > I would like for example to have "Visual selection automatically copied > >

Re: vim with gui in windows

2022-07-24 Thread Igor Spiridonov
is enabled. Btw, what is the difference between linux and windows so that first allows to run gui wim in a terminal but second doesn't? Regards, Igor. On Sun, 24 Jul 2022 at 10:43, Gary Johnson wrote: > On 2022-07-23, Igor Spiridonov wrote: > > Hi. > > I want to use a conso

vim with gui in windows

2022-07-23 Thread Igor Spiridonov
Hi. I want to use a console vim and use guioptions. In Linux i can run vim-gtk -v to run gui vim in tui. In windows -v still opens gvim in a separate window. Is there a way to do what i want? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below

Re: Vim 9.0 generates 8.2 file

2022-07-18 Thread Igor
This is probably false alarm. For some reason there was file .viminfo that now I see it was last modified 2021-10-28 and this file has info "Vim 8.2", but now I see I also have _viminfo file that has current date. I closed down Vim, deleted both files, opened vim v9, edited some file and closed

Vim 9.0 generates 8.2 file

2022-07-18 Thread Igor
On Windows 10 I downloaded latest Vim build 9.0.0055. I deleted file C:\Users\\.viminfo I opened vim do some changes in one of my files and closed down Vim. I opened C:\Users\\.viminfo and in the first line there is still info: *# This viminfo file was generated by Vim 8.2.* It is not a big

Re: How to limit amount of memory used by vim?

2022-07-08 Thread Igor
> > > In Vim you can disable undo: > setlocal ul=-1 > > That's it, excellent advice. I now changed script to turn off "undolevels" and after search/replace commands finish the I turn "undolevels" back on. :setl ul=-1 commands :setl ul=-123456 This reduced memory consumption from several GB to

How to limit amount of memory used by vim?

2022-07-06 Thread Igor
Hi, using Vim 7.4 on Linux server I have opened large log file and I tried to perform some log formatting using ":%s" command. It looks like Vim froze (probably it didn't, it just worked hard), but like after a minute Linux server got out of memory and Linux start killing the biggest memory

How to bind scrolling horizontal split windows?

2022-02-21 Thread Igor
Hi, I am using Vim 7.4 on Linux. Open text file: :e some_file Split the same buffer to another window: :sp Turn off long line wrap: :set nowrap Bind scrolling of both windows: :set scrollbind Now move up and down a buffer and both windows scroll together. Now to the actual problem. I have

Re: How to suppress "Input is not from a terminal" message?

2021-09-26 Thread Igor
Thank you very much for your answers. I changed line from: vim +"so dummy.vim" << EOF to line vim +"so dummy.vim" -e << EOF and "annoying" message is suppressed, like I wanted. *Just additional question.* Does -e switch has some negative side effect, like some commands not working or working

How to suppress "Input is not from a terminal" message?

2021-09-24 Thread Igor
Hi, I would like to embed vim code inside bash script. I have simple text file *text_file.txt* with content: aaa Content sample.sh file: #!/bin/bash echo "Start running vim commands inside bash program." vim +"so dummy.vim" << EOF :e text_file.txt :s/a/b/ :x EOF echo "End of running

How to perform join of lines on many rows following simple rules?

2021-05-21 Thread Igor
I have the following data: YYY AAA YYY BBB C YYY CCC (and few hundreds rows) Rules: 1. First line always starts with YYY. 2. Line should start with YYY. 3. All lines that do not start with YYY must be joined into previous lines. Above sample data should become: YYY AAA YYY BBB

How to remove paragraphs with specific text from my text file?

2021-04-14 Thread Igor
Hi, I have 130 thousand lines of output file. - Each output is in separate paragraph. - Each paragraph has at least two or more rows. I would like to remove all paragraphs that ends with (this text is alway last line in paragraph): DB2I The SQL command completed successfully. Or simpler: I

Re: How to replace string in specific paragraph only?

2020-09-19 Thread Igor
Hi, thank you all for kind suggestions. I would like to use the simplest solution, that is easily typed from the head and well understood. I specially like bellow solution, that I have tested and it works fine. :g/^XXX/.,/^$/s:aaa:bbb:g Just one question, why is there a "." character in

Re: How to replace string in specific paragraph only?

2020-09-19 Thread Igor
Hi, I have come out with one of the possible solution: " move to first line/character in buffer gg " find "XXX", visually select paragraph and replace "aaa" with bb", then move to the next paragraph. execute "normal! /XXX\v}:s/aaa/bbb/g\\}" Above command works perfectly for first paragraph.

How to replace string in specific paragraph only?

2020-09-19 Thread Igor
Hi, I have the following sample text file: XXX ** ** *** * ** *** aaa *** *** ** YYY ** ** aaa *** *** *** * ** *** *** ** XXX ** ** * aaa ***

How to display 'current working directory' in status bar only if it differs from current file path?

2019-12-15 Thread Igor
In Vim 8.2 I have two information in my status line: - full path to my current opened file - full path to current working directory I have set the following commands: set laststatus=2 " always display status line set statusline=Opened_file: " label

Re: How to join a paragraph in normal mode?

2019-12-14 Thread Igor
@Johannes, I also see no other better way then remapping. To have the same logic with 'join' as other commands like 'delete', 'yang', 'go upper case' etc I should change my .vimrc to: " join current line nnoremap JJ J " join also a paragraph nnoremap Jap vapJ " join inner paragraph nnoremap

Re: Vim 8.2 is released!

2019-12-14 Thread Igor
On my Ubuntu 16.04 *32-bit* very old laptop I have downloaded the source code from GitHub and self-compiled. When starting vim I see: version 8.2.3 displayed in welcome screen. Shouldn't there be: version 8.2.0003 with leading zeros? -- -- You received this message from the "vim_use"

How to join a paragraph in normal mode?

2019-12-14 Thread Igor
For example I have the following text (at end of each line there is carriage return character): Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut

Re: vim mode and mapping

2019-11-30 Thread Igor
noremap ur ip -- -- 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"

Re: Why does argsdo duplicates a file?

2019-11-28 Thread Igor
Thank you John Little for detailed explanation and thanks a lot Gary Johnson for simplified solution. -- -- 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

Why does argsdo duplicates a file?

2019-11-26 Thread Igor
Hi, on vim 8.1.1244 on Ubuntu I started vim with: vim -u NONE After using it for a while I decided to open some files into argument list: args *.txt Now I would like to split those files: argdo vs What happens is: c.txt is displayed left most, then the same c.txt is displayed in second window,

How to use "tail -f" in Vim's 8.1 :terminal command window?

2019-11-23 Thread Igor
Hi, I installed Vim 8.1 on Ubuntu 16.04 using PPA. 1. Now I am editing myfile.txt file in vim. 2. I opened new terminal windows inside vim with command: :terminal 3. New terminal opens. I typed in: tail -f myfile.txt 4. I moved back to ordinary Vim window: Ctrl+w 5. I type in some text and save

What is the quickest way to replace whole WORD with spaces?

2019-04-10 Thread Igor Forca
Hi, Sample data: aaa bbb:123:ccc ddd Desired result: aaa ddd What is the quickest way to replace second WORD with spaces? Now I use several keystrokes: fb - find letter b vaW - visual also WORD r - replace with space I know I can set a mapping like pressing minus key and do the

How to execute autocmd command after "cd " event?

2019-04-05 Thread Igor Forca
Hi, I have written some vim commands that I would like to execute every time after :cd command is executed. I searched the help: :help autocmd-events but can't find "change directory" event. Any idea how to trigger vim script after "cd " command? Regards I am using gVim latest nightly

How to omit default file path when new buffer or file from default working path?

2019-04-05 Thread Igor Forca
Hi, using gVim 8.1.1119 which is latest nightly from https://github.com/vim/vim-win32-installer/releases/ on Windows 7. I would like to change the information in status line to display file path (without file name) with grey foreground color and file name with white foreground color. I did

Re: How to use file explorer on my local gVim to access remote file system?

2018-11-12 Thread Igor Forca
@Ken, thanks a lot that it! Problem solved. Now I can open files and folders. Just for reference, the final code is: let g:netrw_silent = 1 let g:netrw_list_cmd = "C:\\Programs\\PuTTY\\plink.exe -P 22 -pw password useridt@192.168.1.20 ls -Fa " let g:netrw_scp_cmd = "C:\\Programs\\PuTTY\\pscp -P

Re: How to use file explorer on my local gVim to access remote file system?

2018-11-12 Thread Igor Forca
Tony, this server does not have FTP installed and admin does not permit installing it. I have now tested on my "Ubuntu 18.04 desktop" PC machine (not used frequently) with vim 8.0.1766 installed and executed only one command: :e scp://myuserid@192.168.1.20//path/ and file explorer opened without

How to use file explorer on my local gVim to access remote file system?

2018-11-12 Thread Igor Forca
Hi, I am using latest gVim v8.1.0513 nightly build on Windows 7, both 64-bit. I have several Linux machines accessible using ssh. Now I am using local machine's Vim through Putty on every machine. But there are several problems, there are different versions on Vim (some pretty old one) and

How to syntax error highlight missing comma? (advanced regular expressions)

2018-10-29 Thread Igor Forca
Hi, Rule: Between "select" and "from" rows every row has to end with comma except one row above from. CORRECT select col1, col2, col3, col4, col5 from mytable Note: There can be several like 100 or more colN rows. Above is simplified sample. INNCORRECT select col1 col2, col3 col4, col5 from

Re: What is the quickes way to delete spaces in front of each line?

2018-09-19 Thread Igor Forca
Now reading Recardo's post (second post in thread) and playing around I have found there is: diw j. j. j. j. Which is exactly what I was looking for. No need for count in (command mode), or no need for selecting (visual mode). I somehow prefer using normal mode, it is quicker and easier to

Re: What is the quickes way to delete spaces in front of each line?

2018-09-19 Thread Igor Forca
Now reading Recardo's post (second post in thread) and playing around I have found there is: diw j. j. j. j. Which is exactly what I was looking for. No need for count (ed command), or no need for selecting for video. Despite my preference all other ideas are excellent and I will use them this

What is the quickes way to delete spaces in front of each line?

2018-09-19 Thread Igor Forca
Hi, I lot of times I have text something like: Sample: Lorem ipsum dolor sit amet, --consectetur adipiscing elit, sed do eiusmod tempor ---incididunt ut labore et dolore ---magna aliqua. Note: Characters "-" symbolizes spaces. I need to delete spaces in as quicker way as possible.

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-23 Thread Igor Forca
@Arun, I have tested your code in deep. It is working perfectly. What I have found is little trouble in the case when first line include the change. File1: aaa ccc aaa ccc File2: aaa bbb aaa bbb If cursor is in file1 at first line first column, diff enabled and pressing ]x I expect cursor to

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-22 Thread Igor Forca
@Arun, thanks a million for this script. ]x and [x work exactly what I want. I also tested the ]c and it behaves the sames as ]x and [c behaves the same as [x on my previous post samples. I actually only need ]x and [x behavior, but just out of curiosity what suppose to be the difference

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-21 Thread Igor Forca
@Arun, thanks a lot for this code. I have performed two tests: TEST 1: LINES WITH NO DIFFERENCE BETWEEN TWO LINES WITH DIFFERENCES File1: aaa aaa aaa bbb aaa aaa aaa bbb File2: aaa aaa aaa ccc aaa aaa aaa ccc Lines 2 and 4 are different. There are lines without difference between two

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-21 Thread Igor Forca
@Christian, thanks a lot for explanation. It looks like ]c jumps through lines and searches for changes (it skips the same lines in both files), but cursor is always placed on first character in line. Interesting. It looks I misunderstood the help: ]c Jump forwards to the next start of a

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-21 Thread Igor Forca
@ZyX, I tested: 1. c is ASCII character also ]c can be typed in. I actually do not need mapping, I would just like to get ]c working. I did the mapping just to test if something is wrong with the keyboard. 2. Just to make a simple test I created two files with content. a) create files file1: aaa

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-21 Thread Igor Forca
@ZyX, I did: 1. Start-up Vim in clean: gvim -u NONE -N 2. Open the first file: :e file1.txt 3. Diff mode second file: :vert diffsp file2.txt 4. Do the mapping you suggested: nnoremap a ]c 5. Press the a key and nothing happens. So still a problem. By the way if mappings would be the problem

vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-21 Thread Igor Forca
Hi, I have files with long lines and when doing diff it is time consuming to move to the diff change (marked red in vimdiff). I have searched the help: :h jumpto-diffs With explanation that: ]c should jump to the next start of the change. But in my case this key shortcut does nothing. I

Re: Strange behavior of vimdiff in vim v8.0.1390 on Windows

2017-12-15 Thread Igor Forca
Hi, this is mystery to me. I have restarted Windows and retested and now diff in vim works without a problem. I don't understand what was wrong before. But I both files were marked as completely different - both windows in red background. In my humble opinion there must be some strange bug or

Strange behavior of vimdiff in vim v8.0.1390 on Windows

2017-12-15 Thread Igor Forca
Hi, I am using latest development version v8.0.1390 of gVim from https://github.com/vim/vim-win32-installer/releases/ I see strange behavior of vim diff. I did: :e a.txt :vert diffsp b.txt To do the diff, but to my surprise everything is marked with red color. I have stripped down file to only

Re: How to set comment character as double dash in front of formatted text?

2017-10-10 Thread Igor Forca
@Thobias, thanks for tips, but not working in my case. Set ft returns "sql", I am editing relational database SQL file. Manually setting it to lua (for test), and execute format command does not solve my problem. @Tony, thanks for providing help. I have managed to solve a problem with setting:

How to set comment character as double dash in front of formatted text?

2017-10-10 Thread Igor Forca
Hi, 1. I have some text in my code like: # Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare vehicula ornare. Proin bibendum convallis vulputate. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam a convallis nisi. Praesent

How to set highlight search to be displayed in only lines affected by substitute c-confirm flag?

2017-09-27 Thread Igor Forca
Hi, 1. create text file with the following three lines: aa ab ac 2. turn on search highlight with: :set hls 3. now jump to third row: :3 4. visually select whole line: V 5. Now do the substitute with "c" flag (confirm): :s/a/x/gc Now highlight search marks letter a in whole file, despite only

Re: How to display tabs characters as ^I

2017-09-25 Thread Igor Forca
@Tim, @Tony, thanks for help. It looks to me the simplest solution is to set bellow two settings in $VIMRC file: set listchars= set list Thanks for help. -- -- 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

How to display tabs characters as ^I

2017-09-21 Thread Igor Forca
Hi, when I open the file which includes tabs characters I can replace tabs with some other characters if I want like using: :%s/^I/ /g To get ^I I press Control+V and then press i key. I know ^I is a symbol for tabs. But is there a way instead of horizontal spacing produced by pressing tab key

Re: Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous

2017-07-25 Thread Igor Forca
Now I have also tested on "Ubuntu 17.10 Daily" and using "Firefox Nightly" and I get the same security warning. I somehow expected this, so in this case probably your browser is something special, you may not use default browser settings. Is there anyone else able to reproduce this problem?

Re: Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous

2017-07-25 Thread Igor Forca
Tony, I don't think this is a Firefox bug. I downloaded Vim v8.0.0765 two days ago, and now this version also reports "Deceptive Site". Most probably definitions for "evil" web pages have been silently updated. On my PC default Firefox settings are: Tools | Options | Security tab and have all

Vim nightly download for Windows 64 in Firefox reports "Deceptive Site" and marked as being dangerous

2017-07-24 Thread Igor Forca
Hi, today on Vim nightly for Windows https://github.com/vim/vim-win32-installer/releases/ I tried to download gvim_8.0.0771_x64.zip so link is https://github.com/vim/vim-win32-installer/releases/download/v8.0.0771/gvim_8.0.0771_x64.zip When clicking on above link web page URL is changed to

Re: Regula expressions: How to find a string without some other string

2017-07-05 Thread Igor Forca
I got excellent answer using NEGATIVE, from Jürgen on my private e-mail. >I would use negative look-ahead (":help /\@!"): > /AAA\(000\)\@!\d\d\d\D/ > >This matches 3 "A"s, three digits, which must not be "000", and one non-digit. >Note that \(000\)\@! does not consume any character, thus

Re: Regula expressions: How to find a string without some other string

2017-07-05 Thread Igor Forca
> These are too much combinations. I would suggest using lookahead instead: > \vAAA%(.{,2}[1-9])@=\d{3}A Above procudes an error "E486 Pattern not found". -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For

Re: Regula expressions: How to find a string without some other string

2017-07-05 Thread Igor Forca
@Erik, I know all of this techniques, but I would like to LEARN the vim way. The vim way may be very easy if commands stored in .vim file and executed with key mappings. @Christian, interesting technique and working fine. Just wondering what is the purpose of \%, it is working with or without

Regula expressions: How to find a string without some other string

2017-07-05 Thread Igor Forca
Hi, I have a log file with several text OK and error messages. OK message is always: AAA000A Error message starts with AAA, then three numbers (but not three zeros) and letter A. Error sample: AAA001A >From the Vim Regular Expression web site: http://vimregex.com/#metacharacters I can see: \d

Re: Vim-script: How to produce an error if there is semicolon in buffer?

2017-06-23 Thread Igor Forca
Christian, thanks a lot for you help. It works excellent. I just replaced the "echo" part to get an error in red color. if search(';', 'nw') > 0 echohl Error echomsg "Warning. Semicolon in file." echohl None finish endif -- -- You received this message from the "vim_use"

Vim-script: How to produce an error if there is semicolon in buffer?

2017-06-23 Thread Igor Forca
Hi, using Vim 8 on Windows 7. I have written simple script that does some janitor in my config files. Tiding works fine. I execute this script by executing keyboard shortcut: leader + r So the following is in my vimrc file: :nnoremap r :source $HOME\vimfiles\myscript.vim In myscript.vim is all

Re: How to syntax highlight only part of the string?

2017-01-19 Thread Igor Forca
@Ben, thank you for your answer. Very helpful. Bellow code works perfectly: syntax match sqlerror "\" -- -- 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

How to syntax highlight only part of the string?

2017-01-18 Thread Igor Forca
Hi, in $HOME\vimfiles\syntax\sql.vim I have written several rules to have syntax highlighting for SQL statements. Works perfectly. But now I would like to write error like rules to have syntax mark with red background for bad habits or syntax errors. For example I have written the following

Re: How to omit the "E385: search hit BOTTOM without match for" error message produced by vim script file?

2016-10-17 Thread Igor Forca
Hi, I have found out a solution without while loop. So in indent.vim replace all from "execute" to the EOF with: :silent g/(SELECT\c/normal! v%2> Problem solved. P.S. It would still be nice to have some reference to documentation how to handle the error codes. Regards -- -- You received

Re: How to report localization's translation bugs in vim?

2016-10-16 Thread Igor Forca
I have found out how to do this. I downloaded source code and searched/replaced the sting and reported a bug at https://github.com/vim/vim/issues/1176 with instructions how to fix the bug. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the

Re: How to omit the "E385: search hit BOTTOM without match for" error message produced by vim script file?

2016-10-16 Thread Igor Forca
Ahhh my mistake. Attached data.sql above is AFTER indent.vim is already applied. Original data.sql is attached in this post. Sorry for confusion. -- -- 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

How to omit the "E385: search hit BOTTOM without match for" error message produced by vim script file?

2016-10-16 Thread Igor Forca
Hi, I am a beginner on vim script... I have written some simple vim script to indent whole "(SELECT" to ")" block o text. The attached data.sql file is the file with data I would like to indent. The attached indent.vim file is vim script to indent data. I did: 1. :e data.sql 2. :source

Re: Weird behaviour with the 'gN' command

2016-10-15 Thread Igor Forca
@kocakosm, I advice you to open a bug report in vim's github. I know Christian wrote bug report is not needed, but people get distracted with some other tasks and if bug is not reported it can be overlooked. I advice to report a bug on github and also point to this discussion. -- -- You

How to report localization's translation bugs in vim?

2016-10-15 Thread Igor Forca
Hi, I have been using Vim 7.4 and spotted some localization's translation bugs and some missing translation strings (I see English strings). But now I have also downloaded/installed Vim 8 nightly from vim github, to be sure this problems are not already fixed, but exactly the same problems

Re: How to omit the "3 substitions on 330 lines" from being displayed in Vim status bar after substition or global command is executed?

2016-10-15 Thread Igor Forca
Both methods works perfectly. Thanks a lot problem solved. -- -- 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

How to omit the "3 substitions on 330 lines" from being displayed in Vim status bar after substition or global command is executed?

2016-10-14 Thread Igor Forca
t need to press and Enter? Regards, Igor -- -- 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 subscrib

  1   2   >