Tags » VIM

vim: render plantuml

When using the plugin plantuml-syntax, add the following one-liner in .vimrc to render a PNG in the current directory when ‹leader›e is pressed:

autocmd FileType plantuml nnoremap  e :!java -jar ~/bin/plantuml.jar -o %:p:h % 27 more words

Practical Vim: Edit Text at the Speed of Thought

Vim is a fast and efficient text editor that will make you a faster and more efficient developer. It’s available on almost every OS–if you master… 66 more words


vim: cleaning up mixed indents

Thanks to the wiki for this.  If you run across a file that mixes tabs and spaces (ewww!), set the tab settings the way you want (e.g., ts=4 sts=4 sw=4 et ai) and run… 82 more words

Tech Tips

Annoying Vim Behaviour on Ubuntu 16.04

When I started using Ubuntu 16.04 LTS, I was overall happy with it, except for one thing. Its Vim installation behaved strangely, to say the least. 340 more words


Clear Annoying Vim Macros

Recording a macro in vim involves pressing q followed by a letter in visual mode. Next time you press the letter it will run the recording. 134 more words

Vim: joining lines having continuation markers

This handy file-renaming script at Perl Monks has source code with red “+” marks marking wrapped lines. I pasted it into Vim and wanted to wrap those lines back to the way they should be. 72 more words

Tech Tips