Thursday, March 5, 2015

Re: Like vimrc, but executed last

On Thursday, March 5, 2015 at 12:10:43 PM UTC-6, Paolo Bolzoni wrote:
> Dear list,
>
> I have this line in my .vimrc
>
> inoremap <nl> <esc>
>
> 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 <nl> in normal mode get remapped in
> apparently nothing.
>
> So I was wondering, is there any file like .vimrc that actually
> is executed last?
>

Throw it in an autocmd:

augroup LAST
au!
autocmd VimEnter * inoremap <nl> <esc>
augroup END

--
--
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment