Re: vim and encryption

2010-08-26 Thread Andrei Popescu
On Mi, 25 aug 10, 14:30:26, Tobias Klausmann wrote: Hey, I was really happy to read that newer Vims (i.e. 7.3) include Blowfish encryption, which is markedly more secure than what vim used to use (the pkzip thing). I'd like to use vim to keep an encrypted file of sensitive data. I'm

Re: Quick Text Cut with yank possible ?

2010-07-26 Thread Andrei Popescu
On Lu, 26 iul 10, 13:40:13, Aaron Lewis wrote: Hi, It's possible to use `yank' plus 'paste' to quickly copy text , but how can we cut it ? I shouldn't do copy first ,then delete original ones , right ? Delete is actually 'cut' in vim ;) You might also want to read about

Re: screen not updated after backspace

2010-07-01 Thread Andrei Popescu
On Mi, 30 iun 10, 12:34:21, Sven Eppler wrote: Debian Etch, 64bit Etch doesn't have security support anymore, you should upgrade to Lenny. Vim 7.0.305 If you stay on Etch and want to try a newer version there is a backport of 7.1.314 (the same version as in Lenny) at www.backports.org.

Re: enable spell for a particular set of files

2010-07-01 Thread Andrei Popescu
On Jo, 01 iul 10, 13:35:58, Xian Chen wrote: I want to enable spell for .txt and .tex files. Is there any way to do so? I enable spell in .vimrc but it enables for every file, including .c .cpp. You can do just any setting per filetype with an 'autocmd'. Something like this in .vimrc should

Re: enable spell for a particular set of files

2010-07-01 Thread Andrei Popescu
On Jo, 01 iul 10, 11:54:10, Gary Johnson wrote: Since you want to enable spell checking for only certain file types, change that set to setlocal, e.g., autocmd FileType tex setlocal spell Thanks, just did a s/set/setlocal/ for all my FileType autocmds ;) Regards, Andrei -- If you

vimdiff-like highlighting within the same file?

2010-06-30 Thread Andrei Popescu
Hello, I'm trying to add new features to vim's handling of .po files. How could I highlight the differences between the current msgid and the previous one? #, fuzzy #| msgid #| The following disk access storage devices (DASD) are available. Please #| select each device you want to use one at

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Andrei Popescu
On Mi, 30 iun 10, 12:30:15, Christian Brabandt wrote: I would use the NarrowRegion plugin[1]. Make sure, it uses vertical split windows, (:let g:nrrw_rgn_vert = 1), set nowinfixwidth in each narrowed window (:set nowinfixwidth), resize each window to your desired width and diff each narrowed

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Andrei Popescu
On Mi, 30 iun 10, 13:32:22, Marc Weber wrote: Can't you just provide two files? The old and the new one? Most VCS systems do that anyway vimdiff can be used (but it's not ideal) if you have access to the previous .po file, but this is not always the case. Especially bigger projects will

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Andrei Popescu
On Mi, 30 iun 10, 15:42:37, Jürgen Krämer wrote: maybe the following can be a start. Open your .po file and execute these commands (the fourth command is one long line): :%y :vert new :put! :%s/^\(#| msgid \n\(\_.\{-\}\n\)msgid \n\)\(\_.\{-\}\n\)\(msgstr

Re: Search for several words in each line with vim?

2010-06-03 Thread Andrei Popescu
On Mi, 02 iun 10, 22:28:38, Tony Mechelynck wrote: But when all hope of finding your needle in that huge haystack seems lost, there is one extremely useful command: :helpgrep. It accepts one Vim-style regular expression (without the bounding slashes) and will search the whole contents on the

Unable to catch specific error [was: Re: delete lines from while loop]

2010-06-02 Thread Andrei Popescu
On Ma, 01 iun 10, 21:32:01, Tom Link wrote:    for linenum in range(a:firstline, a:lastline) You might want to delete the lines in reverse order, i.e. from the bottom to the top. Tried that, but couldn't find the right incantation, this is my first try at vimscript ;)

Re: Unable to catch specific error [was: Re: delete lines from while loop]

2010-06-02 Thread Andrei Popescu
[sorry for replying to myself] On Mi, 02 iun 10, 11:32:03, Andrei Popescu wrote: fu! SIDRemoveFuzzy() range execute ':'',''global/^#,\sfuzzy$\|^#|\s.*.*$/d' for linenum in range(a:firstline, a:lastline) let line = getline(linenum) if line =~ '^#,\(.*,\)\=\s*fuzzy

Re: delete lines from while loop

2010-06-01 Thread Andrei Popescu
On Lu, 31 mai 10, 23:09:58, Christian Brabandt wrote: Hi Andrei! I am not sure, I understand your problem. Anyway, your function has one problem. You are deleting lines (including the end-of-line), so you after the exe normal! dd command your file has actually one line less then before.

delete lines from while loop

2010-05-31 Thread Andrei Popescu
Hello, I'm trying to add new features to the po.vim plugin[1], first one being the removal of the previous msgid in fuzzy strings: #, fuzzy #| msgid #| The following disk access storage devices (DASD) are available. Please #| select each device you want to use one at a time. msgid The

Re: Trouble updating the ro spellfile

2008-11-09 Thread Andrei Popescu
On Sun,09.Nov.08, 11:24:03, Bram Moolenaar wrote: So what about people who have iso-8859-2 files on a system that doesn't support utf-8? Would the old spell file be better than nothing? No, the old spellfile is obsolete. Or would a conversion from utf-8 to iso-8859-2 of the new spell file

Trouble updating the ro spellfile

2008-11-08 Thread Andrei Popescu
Hello everybody, Lately I've been using vim to edit .po files and I wanted to use the built-in spell checker. The .spl file available for my native language (Romanian) is... lacking, to say the least. So I tried to build a new one using the word list available here