Mapping control-minus and control-pipe

2014-08-06 Thread Paolo Bolzoni
Dear list, I am happy tmux and vim user, but to reduce the mistakes caused by muscle memory I would like to setup similar keybindings to the two. In tmux I use Ctrl-| to split the screen vertically and Ctrl-Minus to split horizontally. In vimrc I wrote: nnoremap v nnoremap n But it does not

Arrows keys in insert mode stopped working...

2014-08-07 Thread Paolo Bolzoni
Dear list, After some frustration tring to use CodeBlocks I decided to setup vim for c++ programming and I installed the following plugins: Command-T minibufexpl.vim nerdcommenter nerdtree syntastic tagbar undotree vim-easymotion vim-sensible vim-sleuth And now I have a quite strange problem, ar

Re: Mapping control-minus and control-pipe

2014-08-07 Thread Paolo Bolzoni
nnoremap v nnoremap n are close enough, thanks! On Wed, Aug 6, 2014 at 11:26 PM, Ben Fritz wrote: > On Wednesday, August 6, 2014 3:32:03 PM UTC-5, Paolo Bolzoni wrote: >> Dear list, >> >> >> >> I am happy tmux and vim user, but to reduce the mistakes caused &g

Re: Arrows keys in insert mode stopped working...

2014-08-07 Thread Paolo Bolzoni
ereira wrote: > Are you sure the problem is caused by one of the plugins? Have you > tried removing them all and then adding them back one by one, to see > which one (if any) caused the issue? > > > On Thu, Aug 07, 2014 at 11:14:06AM +0200, Paolo Bolzoni wrote: >> >> De

Re: Arrows keys in insert mode stopped working...

2014-08-08 Thread Paolo Bolzoni
On Thu, Aug 7, 2014 at 1:40 PM, Óscar Pereira wrote: > On Thu, Aug 07, 2014 at 01:05:34PM +0200, Paolo Bolzoni wrote: >> >> It was not fault of the plugins... I was an unexpected side >> effect of "" inoremap "" I setup to push myself to >> use c

Re: Arrows keys in insert mode stopped working...

2014-08-08 Thread Paolo Bolzoni
On Thu, Aug 7, 2014 at 2:43 PM, Marcin Szamotulski wrote: > On 12:40 Thu 07 Aug , Óscar Pereira wrote: >> On Thu, Aug 07, 2014 at 01:05:34PM +0200, Paolo Bolzoni wrote: >> >It was not fault of the plugins... I was an unexpected side >> >effect of "" in

Re: Keep Vim light and clean

2014-09-08 Thread Paolo Bolzoni
Another solution I use is to setup a different set of plugins depending of the use. I other words keeping a separate set of settings and plugins depending what you have to do. I have a different setup for c++, python, and email writing. To do so it is enough to start a vimrc with this lines: ---

minibufexplorer disable showcmd

2014-10-03 Thread Paolo Bolzoni
Dear list, It is quite strange, in my vimrc I setup showcmd because I like to see the keys I typed to reduce the "something random happened" effect when I mistype. However for some reason, when I change buffer via minibufexpl the setting get reset. Here is an example: I open two documents that a

Re: minibufexplorer disable showcmd

2014-10-04 Thread Paolo Bolzoni
Thanks, noshowcmd Last set from ~/.vim/vcpp/vim/bundle/minibufexpl.vim/plugin/minibufexpl.vim Well... doh :( On Fri, Oct 3, 2014 at 1:03 PM, Christian Brabandt wrote: > Hi Paolo! > > On Fr, 03 Okt 2014, Paolo Bolzoni wrote: >> It is quite strange, in my vimrc I setup sh

Smarter sintax coloring

2014-12-20 Thread Paolo Bolzoni
I program in C++ using vim and, as most developers, I use syntax coloring. I have a weak spot for colorful terminal screens... However, I have the feeling that syntax coloring is little more than eye candy. Lets see this two lines of code: a -= b; against a =- b; The meaning is totally differ

Re: Smarter sintax coloring

2014-12-31 Thread Paolo Bolzoni
Really? No-one knows how to change the syntax coloring rules? On Sat, Dec 20, 2014 at 7:04 PM, Paolo Bolzoni wrote: > I program in C++ using vim and, as most developers, I use syntax > coloring. I have a weak spot for colorful terminal screens... > > However, I have the feeling

Re: Smarter sintax coloring

2015-01-12 Thread Paolo Bolzoni
rs, I don't need a color to say: "look there is an operator here." On the other hand a different color to underline that there is a different operator is useful. Yours sincerely, Paolo On Wed, Dec 31, 2014 at 5:22 PM, Christian Brabandt wrote: > Hi Paolo! > > On Mi, 31

Combine . with @:

2015-02-23 Thread Paolo Bolzoni
Dear everyone, It is possible to change the meaning of . so it repeats the last command, whatever it was a normal command or a ex command? I find confusing that I can type dw..., but not :cNext.. Yours faithfully, Paolo -- -- You received this message from the "vim_use" maillist. Do not top-po

Like vimrc, but executed last

2015-03-05 Thread Paolo Bolzoni
Dear list, I have this line in my .vimrc inoremap And normally it works fine, I can leave insert mode pressing ctrl-enter. However, I am using quite a bit of plugins when using vim for C++ editing and somewhere in normal mode get remapped in apparently nothing. So I was wondering, is there

Disable all autointending a part of the simplest one

2015-11-17 Thread Paolo Bolzoni
Dear list, I would like to disable all the "smart" auto indenting. I just want the cursor to align to the previous line non space character. I will press tab or << to fix in the case it is wrong. I set this lines from the wiki in the ~/.vimrc, but it is not enough. set autoindent set nocindent s

Re: Disable all autointending a part of the simplest one

2015-11-18 Thread Paolo Bolzoni
Yes, the problem was I had to activate filetype indent for some plugin and I never disabled it, so the value of indentexpr was changed. Thanks a lot! On Tue, Nov 17, 2015 at 5:55 PM, Gary Johnson wrote: > On 2015-11-17, Paolo Bolzoni wrote: >> Dear list, >> >> I would li

Ignore some filenames

2015-12-03 Thread Paolo Bolzoni
Dear list, I use vim to write C++ code and often I start the program using a command line like $ vcpp classX.* (vcpp is an alias for vim -u ~/.vim/vcpp/vimrc where the C++ settings are) So vim opens the files with definitions and headers. However if the file is compiled vim also opens the .o file

Re: Ignore some filenames

2015-12-06 Thread Paolo Bolzoni
On Fri, Dec 4, 2015 at 7:05 PM, Erik Christiansen wrote: > The more structured approach also simplifies matters if it is decided to > place the source code under version control, but not anything generated. > (YMMV. And version the compiler in that case ;) This is a good point indeed, I guess it

Re: New in VIM

2015-12-25 Thread Paolo Bolzoni
^\#\~ works fine to me, what is the problem? On Sat, Dec 26, 2015 at 4:39 AM, j...@telefonica.net wrote: > Hi! all. > > I am almost newbie about VIM and every day I like it more and more. > > I am try to make a function to comment/uncomment lines with "#~ " at ^ of > line. > > But I can not find

Re: List is quiet

2016-11-29 Thread Paolo Bolzoni
I can read you. Perhaps is just a quiet moment. (I see this email from v...@vim.org though) On Tue, Nov 29, 2016 at 2:21 PM, Efraim Yawitz wrote: > Is there some problem with this mailing list? I haven't gotten any messages > for a few days, and a message I wrote last week about a folding-relate

Minimum tabstop to get all columns aligned

2017-03-14 Thread Paolo Bolzoni
Dear list, Lately I often works with cvs-like files where columns are separed by tabs and the first line contains the columns description. To move around those files I setup "nowrap" and "set tabstop=40" (title can be long) and it works fairly well. However, I was wondering is there a way to set

Search for the visually select text

2013-11-15 Thread Paolo Bolzoni
Dear list, seldom I need to search specific part of text that are not simply the current word (where * is handy). And I instinctively select the part visually, only to notice I do not know how to search for it in the whole text. Example, assuming the caret is on the beginning of the sequence I wan

Fwd: Search for the visually select text

2013-11-15 Thread Paolo Bolzoni
Dear list, seldom I need to search specific part of text that are not simply the current word (where * is handy). And I instinctively select the part visually, only to notice I do not know how to search for it in the whole text. Example, assuming the caret is on the beginning of the sequence I wan

Search and stay

2013-11-25 Thread Paolo Bolzoni
Dear list, I often search text in the latex documents to move around. So I press / and Vim shows me the place because I have incsearch active. Can I just stay in the place without pressing enter? I am asking because I also have hlsearch on and while it is normally useful in this particular case is

Re: improving Vim - Kickstarter - brainstorming - goals - who wants to join?

2013-11-25 Thread Paolo Bolzoni
On Mon, Nov 25, 2013 at 5:51 PM, Nikolay Pavlov wrote: > On Nov 25, 2013 5:24 PM, "Marc Weber" wrote: > I would consider D in first place. Not that I actually worked with it, but I > have read lots of articles convincing me that it is way better then C++. I used D for a project and I quickly wen

Re: improving Vim - Kickstarter - brainstorming - goals - who wants to join?

2013-11-26 Thread Paolo Bolzoni
Since we are in the topic of improvements, what about a real rectangular selection? Example: s z Select everything a part of the right-most s and the four left-most y? On Tue, Nov 26, 2013 at 5:46 PM, Gary Johnson wrote: > On 2013-11-26, Jeff Schwartz wrote: >> To

Re: improving Vim - Kickstarter - brainstorming - goals - who wants to join?

2013-11-27 Thread Paolo Bolzoni
I like virtualedit=block more, but thanks for pointing me in the right direction! On Wed, Nov 27, 2013 at 8:08 AM, Christian Brabandt wrote: > On Tue, November 26, 2013 17:56, Paolo Bolzoni wrote: >> Since we are in the topic of improvements, what about a real >> rectan

Re: improving Vim - Kickstarter - brainstorming - goals - who wants to join?

2013-11-27 Thread Paolo Bolzoni
It is nice to see someone which actually knows C++ once in a while... In my environment there is no-one. On Wed, Nov 27, 2013 at 2:44 PM, wrote: > Hello, > > >> But let me give you an example: >> >> sturt foo { >> char bar[LENGTH] >> int something_else; >> } >> >> foo s; >> >> for (i = 0, i

How to learn vim

2014-01-24 Thread Paolo Bolzoni
Dear list, I am interested in improving my vim knowledge, so I tried seeking on the internet about tutorials. But in most of the cases you only find useful cheat sheets, extremely basic command (i.e., hjklg...) or over-complicated plugins that once activated seems to start random actions while typ

Re: Going from linux vim to Macvim?

2014-04-17 Thread Paolo Bolzoni
Or you can setup an afternoon to install Linux? On Thu, Apr 17, 2014 at 5:32 AM, Phil Dobbin wrote: > On 17/04/2014 03:52, Andrei Kulakov wrote: > >> Hi, >> >> I'll be using a macbook air fairly often, and I'm completely new to the >> Mac environment. I'm used to using Gvim in Ubuntu. The first t

Make the exclamation mark always bold

2020-07-15 Thread Paolo Bolzoni
Hi everyone, The subject line pretty much states it all, how difficult would it be to convince vim, running in the terminal, to display a single character as bold or italic? Cheers, Paolo -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the te

Broken Q key... how can I leave vim without saving?

2020-09-02 Thread Paolo Bolzoni
Dear list, It is not a joke, my laptop keyboard is broken and seldom the keys Q, 4, Ins, and few others stop working. Is there a way to leave vim without saving without using the Q key? Cheers, Paolo -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

Re: Broken Q key... how can I leave vim without saving?

2020-09-16 Thread Paolo Bolzoni
On Wed, Sep 9, 2020 at 1:23 AM Gabriele wrote: > At that point it's easier to do CTRL-V 113 (for the "q"), or CTRL-V 081 > (for the "Q"); under Windows you probably need to use CTRL-Q in place of > CTRL-V (:help i_CTRL-V) I never thought of using CTRL-v like that! Clever. Thanks everyone. -- --