Kategoriarkiv: Vim

Inotify, Run (Python) script once it changes

This is sadly Linux Only, start by installing inotify-tools: # apt-get install inotify-tools and create the following script: #!/bin/sh clear echo Waiting for filechange … inotifywait -q -m -e close_write,moved_to –format %e/%f . | while IFS=/ read -r events file; … Læs resten

Udgivet i Linux, Vim | Skriv en kommentar

Syntax hilighted printouts from vim

To print from vim, first set the following options in vimrc or directly in vim: :set printoptions=paper:A4,portrait:n,wrap:y,syntax:y,duplex:long if landscape mode is wanted, set portrait:n, else set portrait:y next, from vim, create a postscript file using the hardcopy command: ha > … Læs resten

Udgivet i Knowledge Base, Vim | Skriv en kommentar

Great color sheme for vim

cd /usr/share/vim/vim63/colors wget http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/adaryn.vim and in vim :color adaryn

Udgivet i Knowledge Base, Old Base, Vim | Skriv en kommentar

Vim encrypted files

# vim -x fil

Udgivet i Knowledge Base, Old Base, Vim | Skriv en kommentar

Using Vim Editor

Coding in Vim: Vim is a great coder interface, remember cmd’s can be added to ~/.vimrc :syntax on : enable syntax highlighting on many types og source :set autoindent : Autoindent :set cindent : Automatic indent for c source :set … Læs resten

Udgivet i Knowledge Base, Vim | Skriv en kommentar

Create colorized HTML files from your source code files with VIM

Open your source code file with VIM and type ‘:ru syntax/2html.vim’ in command mode. And poof, there we have another window with your HTML converted source code. Enjoy 😉 /secor

Udgivet i Knowledge Base, Old Base, Programmering, Vim | Skriv en kommentar

Create colorized HTML files from your source code files with VIM

Open your source code file with VIM and type ‘:ru syntax/2html.vim’ in command mode. And poof, there we have another window with your HTML converted source code. Enjoy 😉 /secor

Udgivet i Knowledge Base, Vim | Skriv en kommentar