Skip to content

Instantly share code, notes, and snippets.

@tapjdey
Last active August 15, 2020 06:33
Show Gist options
  • Save tapjdey/85792193b7114f6aa7c0539a421780a9 to your computer and use it in GitHub Desktop.
Save tapjdey/85792193b7114f6aa7c0539a421780a9 to your computer and use it in GitHub Desktop.
Utility Functions
# Use pdftk to concatenate files
pdftk file1.pdf file2.pdf cat output mergedfile.pdf
# TAB -Space problem in Pythom: fix in Vim
The problem is usually with mixup in tabs and spaces –
1. Apply following command in Vim to highlight tabs, spaces and other whitespace differently.
:set listchars=tab:>-,trail:-,eol:$ list
2. Apply the following to set correct width
:set shiftwidth=4 tabstop=4 expandtab
3. running
:retab
to fix the problem,Vim automatically fixes all indentation space and tab mix ups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment