1
0
Fork 0

autoshebangs for vim

This commit is contained in:
Von Random 2014-11-29 12:02:39 +03:00
parent d19d9bf4b5
commit bead42afcc
2 changed files with 8 additions and 4 deletions

1
rc.lua
View file

@ -595,6 +595,7 @@ awful.rules.rules = {
}, },
instance = { instance = {
'Civ4BeyondSword.exe', 'Civ4BeyondSword.exe',
'GameApp.exe',
'KB.exe', 'KB.exe',
'nwn2main.exe' 'nwn2main.exe'
}, },

11
vimrc
View file

@ -32,10 +32,13 @@ if $TERM == 'xterm' || exists("$SSH_CLIENT")
endif endif
" set indentation options for specific file types " set indentation options for specific file types
autocmd FileType ruby setlocal sts=2 sw=2 expandtab autocmd FileType python setlocal ts=4 sw=4 sts=4 noexpandtab
autocmd FileType eruby setlocal sts=2 sw=2 expandtab autocmd BufNewFile *.zsh 0put =\"#!/usr/bin/env zsh\<nl>\"|$
autocmd FileType puppet setlocal sts=2 sw=2 expandtab autocmd BufNewFile *.lua 0put =\"#!/usr/bin/env lua\<nl>\"|$
autocmd FileType python setlocal sts=4 sw=4 expandtab autocmd BufNewFile *.sh 0put =\"#!/usr/bin/env bash\<nl>\"|$
autocmd BufNewFile *.rb 0put =\"#!/usr/bin/env ruby\<nl>\"|$
autocmd BufNewFile *.py 0put =\"#!/usr/bin/env python\<nl>\"|$
autocmd BufNewFile *.pl 0put =\"#!/usr/bin/env perl\<nl>\use strict;\<nl>\use warnings;\<nl>\use feature 'say';\<nl>\"|$
" maps " maps
nmap <Space> <C-W> nmap <Space> <C-W>