mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 11:31:30 +01:00
vim: fix python breakpoint macro (@b)
This commit is contained in:
parent
0cb850b8a4
commit
ab7660a41b
|
@ -1,6 +1,4 @@
|
||||||
"""" Leader shortcuts
|
"""" Leader shortcuts
|
||||||
|
|
||||||
|
|
||||||
let mapleader = ","
|
let mapleader = ","
|
||||||
" also use space as leader
|
" also use space as leader
|
||||||
nmap <Space> <leader>
|
nmap <Space> <leader>
|
||||||
|
@ -106,7 +104,7 @@ map <leader>hc :HiColumn<CR>
|
||||||
"" Indent Guides
|
"" Indent Guides
|
||||||
map <leader>I :IndentGuidesToggle<CR>
|
map <leader>I :IndentGuidesToggle<CR>
|
||||||
|
|
||||||
" Goyo
|
"" Goyo
|
||||||
nmap <leader>za :Goyo 80%x85%<CR>
|
nmap <leader>za :Goyo 80%x85%<CR>
|
||||||
nmap <leader>zz :Goyo<CR>
|
nmap <leader>zz :Goyo<CR>
|
||||||
|
|
||||||
|
@ -114,6 +112,7 @@ nmap <leader>zz :Goyo<CR>
|
||||||
|
|
||||||
let s:uname=''
|
let s:uname=''
|
||||||
let s:uname = system('uname | tr -d "\n"') " Get platform name (stripping the trailing newline)
|
let s:uname = system('uname | tr -d "\n"') " Get platform name (stripping the trailing newline)
|
||||||
|
|
||||||
if s:uname == "Darwin"
|
if s:uname == "Darwin"
|
||||||
"" Mac specific stuff
|
"" Mac specific stuff
|
||||||
elseif s:uname == "Linux"
|
elseif s:uname == "Linux"
|
||||||
|
@ -144,8 +143,8 @@ noremap <Leader>p "+P
|
||||||
noremap <Leader>Y "+y
|
noremap <Leader>Y "+y
|
||||||
noremap <Leader>P "+P
|
noremap <Leader>P "+P
|
||||||
|
|
||||||
" A friggin python breakpoint. Invoke with @b "FIXME: make this decent
|
" Insert a python breakpoint
|
||||||
let @b = 'A
breakpoint()ýajkj0'
|
let @b = 'ibreakpoint()
€ýa'
|
||||||
|
|
||||||
" visual mode mappings
|
" visual mode mappings
|
||||||
vnoremap <silent> <leader>k :call VisualSelection('ack', '')<CR>
|
vnoremap <silent> <leader>k :call VisualSelection('ack', '')<CR>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user