1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-22 23:31:32 +01:00

vim: fix python breakpoint macro (@b)

This commit is contained in:
bretello 2021-04-11 13:24:17 +02:00
parent 0cb850b8a4
commit ab7660a41b
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -1,6 +1,4 @@
"""" Leader shortcuts
let mapleader = ","
" also use space as leader
nmap <Space> <leader>
@ -106,7 +104,7 @@ map <leader>hc :HiColumn<CR>
"" Indent Guides
map <leader>I :IndentGuidesToggle<CR>
" Goyo
"" Goyo
nmap <leader>za :Goyo 80%x85%<CR>
nmap <leader>zz :Goyo<CR>
@ -114,6 +112,7 @@ nmap <leader>zz :Goyo<CR>
let s:uname=''
let s:uname = system('uname | tr -d "\n"') " Get platform name (stripping the trailing newline)
if s:uname == "Darwin"
"" Mac specific stuff
elseif s:uname == "Linux"
@ -144,8 +143,8 @@ noremap <Leader>p "+P
noremap <Leader>Y "+y
noremap <Leader>P "+P
" A friggin python breakpoint. Invoke with @b "FIXME: make this decent
let @b = 'A breakpoint()€ýajkj0'
" Insert a python breakpoint
let @b = 'ibreakpoint() ýa'
" visual mode mappings
vnoremap <silent> <leader>k :call VisualSelection('ack', '')<CR>