|
|
@ -37,12 +37,13 @@ set foldmethod=marker " folding will use markers |
|
|
|
set nowrap " instead of wrapping the text to the next line, scroll left and right |
|
|
|
set nowrap " instead of wrapping the text to the next line, scroll left and right |
|
|
|
set laststatus=2 " Always display the status line |
|
|
|
set laststatus=2 " Always display the status line |
|
|
|
set showtabline=2 " Always display the tab bar |
|
|
|
set showtabline=2 " Always display the tab bar |
|
|
|
let mapleader = " " " Leader (special character for plugins) is Space |
|
|
|
let mapleader=" " " Leader (special character for plugins) is Space |
|
|
|
" }}} |
|
|
|
" }}} |
|
|
|
|
|
|
|
|
|
|
|
" Mappings {{{ |
|
|
|
" Mappings {{{ |
|
|
|
nnoremap - :Ex<CR> |
|
|
|
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 {{{ |
|
|
|
" Plugin configuration {{{ |
|
|
@ -78,7 +79,7 @@ augroup python |
|
|
|
au FileType python setlocal textwidth=79 " max line size |
|
|
|
au FileType python setlocal textwidth=79 " max line size |
|
|
|
au FileType python setlocal colorcolumn=80 " put a margin indicator |
|
|
|
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 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 |
|
|
|
" Shortcut to add pylint disables |
|
|
|
au FileType python iab lint # pylint: disable |
|
|
|
au FileType python iab lint # pylint: disable |
|
|
|