- 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
Last active
July 29, 2018 00:00
-
-
Save tehmoon/322672940feec71fd344e477954969e1 to your computer and use it in GitHub Desktop.
Vim stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment