Assume that you have two lines of code:

```
var_a = something()
b = something()
```

If you use `c-vj$A;` to append a `;` character at the end of each line and if 
`;` is part of `'indentkeys'` and also if `'indentexpr'` function only indents 
the first line, then the bottom line will include the last N characters of the 
original first line after pressing `<esc>`.

Example `'indentexpr'` for the above code:

```Vim
function! MyIndentFunction()
    if v:lnum == 1
        return &sw
    else
        return 0
    endif
endfunction
```

Note: This was originally posted in Github under 
https://github.com/vim/vim/issues/1269


Thanks in advance,
Vitor

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui