|
|
|
@ -42,7 +42,8 @@ let mapleader = " " " Leader (special character for plugins) is Space
|
|
|
|
|
|
|
|
|
|
" Mappings {{{ |
|
|
|
|
nnoremap - :Ex<CR> |
|
|
|
|
map <Leader>c <silent> :call TrimWhiteSpace()<CR> |
|
|
|
|
nnoremap <silent> <leader>c :call TrimWhiteSpace()<CR> |
|
|
|
|
nnoremap <leader>] <c-w>g<c-]> |
|
|
|
|
" }}} |
|
|
|
|
|
|
|
|
|
" Plugin configuration {{{ |
|
|
|
@ -78,7 +79,7 @@ augroup python
|
|
|
|
|
au FileType python setlocal textwidth=79 " max line size |
|
|
|
|
au FileType python setlocal colorcolumn=80 " put a margin indicator |
|
|
|
|
au FileType python au BufWritePre <buffer> %s/\s\+$//e " When saving a Python file, remove tailing spaces |
|
|
|
|
au FileType python nmap <Leader>a <silent> :call JumpToAlternate()<CR> |
|
|
|
|
au FileType python nmap <silent> <Leader>a :call JumpToAlternate()<CR> |
|
|
|
|
|
|
|
|
|
" Shortcut to add pylint disables |
|
|
|
|
au FileType python iab lint # pylint: disable |
|
|
|
|