White Theme and vim Wordbook
This commit is contained in:
17
vim/.vim/ftplugin/python.vim
Normal file
17
vim/.vim/ftplugin/python.vim
Normal file
@@ -0,0 +1,17 @@
|
||||
" Python settings
|
||||
|
||||
|
||||
" Shortcuts
|
||||
imap <leader>ifm if<Space>__name__<Space>==<Space>'__main__':<Enter>
|
||||
|
||||
" Compiling
|
||||
map <C-c><C-c> <Esc>:!python %<Enter>
|
||||
|
||||
" Use the below highlight group when displaying bad whitespace is desired.
|
||||
highlight BadWhitespace ctermbg=red guibg=red
|
||||
|
||||
" Display tabs at the beginning of a line in Python mode as bad.
|
||||
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/
|
||||
|
||||
" Make trailing whitespace be flagged as bad.
|
||||
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
|
||||
Reference in New Issue
Block a user