Pablo Giménez wrote: > I have some keymaps to paste text directly in insert mode: > inoremap <C-v> <C-O>"+p<Right> > The problem is that when I am programing and Iahev my code > indented, using autoindent for instance with python everytime > I copy in a new line I lose the indentation. > In fact if I press enter, in insert mode, and then Esc to go > to normal mode the cursor always goes to the begging of the > line instead of going to the proper column and keep the > indentation I had in the insert mode. This is the reason cos > my keymap doesn't work properly wit indented lines.
Perhaps use 'pastetoggle', see: http://vim.wikia.com/wiki/Toggle_auto-indenting_for_code_paste John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
