command-line commands instead of abbreviations?

2014-09-28 Thread Gevisz
Is it possible to define a command-line command that just inserts some text after the current cursor position and how to do it in an elegant way? For, example, so that typing in normal mode :тл will insert тру-ля-ля after the current position in text. P.S. In my case the command name will always

Re: zsh, solarized: Random typed keys shown on screen with wierd colors.

2014-09-28 Thread Ory Band
Doesn't anybody have a clue how to fix this? It's driving me crazy! -- -- 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

Re: zsh, solarized: Random typed keys shown on screen with wierd colors.

2014-09-28 Thread Christian Brabandt
On So, 28 Sep 2014, Ory Band wrote: Doesn't anybody have a clue how to fix this? It's driving me crazy! Are you using any plugins? I have seen something like this, when Vim is busy executing e.g. autocommands that take a little while (or when the system is under heavy load). Best, Christian

How to make a local option global?

2014-09-28 Thread Cesar Romani
I'm using vim 7.4.461 on Windows. How can I make an option global for the current session? For example, I notices that comments is set as a local option. How can I make it global when editing a bunch of files? Many thanks in advance, -- Cesar -- -- You received this message from the vim_use

Re: How to make a local option global?

2014-09-28 Thread Ben Fritz
On Sunday, September 28, 2014 10:53:48 AM UTC-5, andalou wrote: I'm using vim 7.4.461 on Windows. How can I make an option global for the current session? For example, I notices that comments is set as a local option. How can I make it global when editing a bunch of files? You

Re: Patch 7.4.391 why?

2014-09-28 Thread Ben Fritz
On Saturday, September 27, 2014 10:34:03 PM UTC-5, Rick Howe wrote: Thank you for your help. I also tried a workaround like this. au WinEnter * call SetCursorLine(1) au WinLeave * call SetCursorLine(0) function! SetCursorLine(n) let cursorline = a:n au! CursorMoved if

Re: command-line commands instead of abbreviations?

2014-09-28 Thread Ben Fritz
On Sunday, September 28, 2014 1:03:27 AM UTC-5, gevisz wrote: Is it possible to define a command-line command that just inserts some text after the current cursor position and how to do it in an elegant way? For, example, so that typing in normal mode :тл will insert тру-ля-ля

Re: Patch 7.4.391 why?

2014-09-28 Thread Tony Mechelynck
On 28/09/14 22:30, Ben Fritz wrote: On Saturday, September 27, 2014 10:34:03 PM UTC-5, Rick Howe wrote: Thank you for your help. I also tried a workaround like this. au WinEnter * call SetCursorLine(1) au WinLeave * call SetCursorLine(0) function! SetCursorLine(n) let cursorline = a:n

Re: command-line commands instead of abbreviations?

2014-09-28 Thread Eric Christopherson
On Sun, Sep 28, 2014, Ben Fritz wrote: On Sunday, September 28, 2014 1:03:27 AM UTC-5, gevisz wrote: Is it possible to define a command-line command that just inserts some text after the current cursor position and how to do it in an elegant way? For, example, so that typing in normal

Re: Problem with vim spell (Reverese highlight after adding words)

2014-09-28 Thread enrico68
It seems that it was connected with the plugin manager. Changing to pathogen seems to return normal. -- View this message in context: http://vim.1045645.n5.nabble.com/Problem-with-vim-spell-Reverese-highlight-after-adding-words-tp5722768p5722777.html Sent from the Vim - General mailing list

RE: How to make a local option global?

2014-09-28 Thread John Beckett
Cesar Romani wrote: How can I make an option global for the current session? For example, I notices that comments is set as a local option. How can I make it global when editing a bunch of files? As Ben mentioned, settings like that should be set via filetype. If you have several open files

Re: command-line commands instead of abbreviations?

2014-09-28 Thread Ben Fritz
On Sunday, September 28, 2014 7:08:47 PM UTC-5, Eric Christopherson wrote: On Sun, Sep 28, 2014, Ben Fritz wrote: Easy solution: use a :normal! command within your command definition, to insert the text with 'a'. E.g. :command тл normal! aтру-ля-ля That appears to be an