Skip to content

Instantly share code, notes, and snippets.

@tehmoon
Last active July 29, 2018 00:00
Show Gist options
  • Save tehmoon/322672940feec71fd344e477954969e1 to your computer and use it in GitHub Desktop.
Save tehmoon/322672940feec71fd344e477954969e1 to your computer and use it in GitHub Desktop.
Vim stuff
syn on
se nu
se clipboard=unnamed
se iskeyword==,_,/,\",],[,:,\',.,\,,\(,\),{,}
se nofixendofline
se ts=2
se noexpandtab
set cindent
set sw=2
autocmd Filetype yaml setlocal sw=2 expandtab
autocmd Filetype python setlocal sw=2 ts=4 expandtab
autocmd Filetype markdown setlocal sw=2 expandtab
autocmd Filetype gitcommit setlocal sw=2 expandtab
  • http://vim.wikia.com/wiki/Macros :set tabstop=2 " To match the sample file :set noexpandtab " Use tabs, not spaces :%retab! " Retabulate the whole file :e %:h/ " Use directory where the current file is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment