New answers tagged indentation
0
votes
Accepted
Indentation is messed up when pasting code
Found myself implementing the code.
It first pastes then fixes the indentation correctly as far as I could see.
function! PasteFormat(x)
let l=@+
let l=len(split(l,"\n"))-1
...
Top 50 recent answers are included
Related Tags
indentation × 357vimrc × 40
formatting × 24
tab-characters × 17
filetype-html × 17
key-bindings × 16
vimscript × 15
filetype × 15
whitespace × 13
neovim × 9
cut-copy-paste × 9
cursor-movement × 9
filetype-python × 9
filetype-tex × 8
filetype-c × 8
syntax-highlighting × 7
visual-mode × 7
comments × 6
wrapping × 6
filetype-c++ × 6
filetype-javascript × 6
filetype-php × 6
insert-mode × 5
folding × 5
filetype-markdown × 5