Re: Moving cursor on wrapped lines

2007-04-15 Thread Pavel Shevaev
Thanks! -- Best regards, Pavel

Making vim more friendly under windows with non ascii codepage

2007-04-15 Thread Pavel Shevaev
I often type in vim using cp1251 charset under windows and currently I have to switch to english charset every time I need to execute any action in command mode which is quite inconvenient. For example I have ш Russian symbol along with i on the same button on my keyboard. It would be very nice

Moving cursor on wrapped lines

2007-04-14 Thread Pavel Shevaev
Folks, I usually set wrap on and when typing long lines it becomes quite awkward to move cursor up/down on them. Let me show you an example, say, below are 2 lines(second line is wrapped): 1 some string 2 foo bar zoo wow hey ^yo ^ - is a position of cursor Now if I press up in command mode I

Re: moving buffer changes to new file?

2007-02-25 Thread Pavel Shevaev
Here is user-defined RENAME command that seems to work: :command! -narg=1 RENAME if rename(expand('%'),q-args)==0|file args|else| echo Renaming error| endif Thanks! I'll give it a try... The :rename command is in the todo list. (':help todo', search for :rename). Oh, i see, kudos to

Best find and replace in files practices

2007-02-25 Thread Pavel Shevaev
Folks, sorry if this topic was already discussed for too many times but i couldn't google anything useful :( Grepping for something seems to be trivial with :vimgrep and :grep but there's nothing simple like this for 'searchreplace' and i wonder why... Is it done intentionally or i'm just

Re: Best find and replace in files practices

2007-02-25 Thread Pavel Shevaev
On 2/25/07, Tim Chase [EMAIL PROTECTED] wrote: Grepping for something seems to be trivial with :vimgrep and :grep but there's nothing simple like this for 'searchreplace' and i wonder why... Is it done intentionally or i'm just missing something? Just missing the power of the

Re: Best find and replace in files practices

2007-02-25 Thread Pavel Shevaev
When vim is given 500 file arguments, it opens only the first one. Regarding the other 499 files, it just remembers the names, for the beginning, so you see the first tfile very quicky. Only when you explicitly visit/open some of the other files, vim will actually read its contents. Just try it

Re: moving buffer changes to new file?

2007-02-24 Thread Pavel Shevaev
:h :saveas BTW, is it possible somehow to rename file not save as? hth, Alan Isaac -- Best regards, Pavel

Re: search something from vim in certain directory

2007-02-23 Thread Pavel Shevaev
:vimgrep pattern directory/**/*.h Just an aside question - is there anything alike for find replace in files? Something like :%s/../../g glob could be very helpful... Especially it would be great to see replaced stuff in quickfix window. -- Best regards, Pavel

Re: Insert mode and arrow keys philosophy

2007-02-21 Thread Pavel Shevaev
On 2/21/07, DervishD [EMAIL PROTECTED] wrote: Hi Laurent :) Unfortunately, I still have problems using 'h' :( That's my biggest problem at the moment as well, as a blind typer i can't get used to it...oh, i think i just should stop whining and exercise more ;) -- Best regards, Pavel

Insert mode and arrow keys philosophy

2007-02-20 Thread Pavel Shevaev
Hi folks! AFAIK usage of arrow keys in vim should be avoided at all costs since h/j/k/l allows one to be more efficient in command mode. But how about insert mode? Should one avoid using arrow keys in insert mode as well and switch to command mode and then back to insert mode instead? -- Best

Re: Insert mode and arrow keys philosophy

2007-02-20 Thread Pavel Shevaev
Can you clarify which costs you are willing to pay/sacrifice to avoid use of arrows ? Actually I'm just trying to follow the best vim practices and it's really hard for me to get used to h/j/k/l combination after working with some other text editors. That's why I'm asking how vim gurus work the