Browse Source

Fixed the maps for Alternate, Trim whitespace and added a new one to show the jump options

master
Julio Biason 4 years ago
parent
commit
ad375c37d2
  1. 7
      nvim/init.vim

7
nvim/init.vim

@ -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 laststatus=2 " Always display the status line
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 {{{
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

Loading…
Cancel
Save