diff --git a/kak/kakrc b/kak/kakrc index b0230cc..b9db727 100644 --- a/kak/kakrc +++ b/kak/kakrc @@ -13,16 +13,17 @@ define-command filetype-hook -params 2 %{ # Comments map global normal '$' -docstring 'Comment the selected lines' ': comment-line' map global normal '' -docstring 'Comment the selected block with begin/end characters' ': comment-block' -map global normal '#' -docstring 'duplicate and comment line' 'xyp: comment-linej' +map global normal '#' -docstring 'duplicate and comment line' 'xyP: comment-linej' +map global normal '–' -docstring 'comment selection with /*…*/' 'i/*a*/' map global normal '*' -docstring 'select all occurrences of the word under cursor' 'be*nvv' map global normal '=' -docstring 'indent like the line above' 'gijgi' -map global normal '' -docstring 'move line down' 'xdkPk' -map global normal '' -docstring 'move line down' 'xdpj' -map global insert '' -docstring 'move line down' 'xdkPki' -map global insert '' -docstring 'move line down' 'xdpji' +map global normal '' -docstring 'move line down' 'xdkP' +map global normal '' -docstring 'move line down' 'xdp' +map global insert '' -docstring 'move line down' 'xdkPi' +map global insert '' -docstring 'move line down' 'xdpi' map global insert '' -docstring 'one word right in insert mode' 'eli' map global insert '' -docstring 'one word left in insert mode' 'bi' @@ -30,6 +31,8 @@ map global insert '' -docstring 'kill line in insert mode' 'GIc' map global normal 'è' -docstring 'select the inner sequence enclosed by matching characters' 'mLH' +alias global bd delete-buffer + def -params 1 extend-line-up %{ exec "%arg{1}K" try %{ @@ -57,7 +60,7 @@ hook global InsertCompletionShow .* %{ # Cursor switch. map global normal -docstring 'Swap selections cursor and anchor' '' -map global normal -docstring 'Ensure selection cursor is after anchor' '' +map global normal -docstring 'Ensure selection cursor is after anchor' '' # Go to paragraph/indents. map global goto 'p' -docstring 'select to next paragraph' ']p' @@ -241,20 +244,20 @@ plug "andreyorst/tagbar.kak" defer "tagbar" %{ } } -plug 'delapouite/kakoune-cd' %{ - # Suggested mapping - map global user c ': enter-user-mode cd' -docstring 'cd' - # Suggested aliases - alias global cdb change-directory-current-buffer - alias global cdr change-directory-project-root - alias global ecd edit-current-buffer-directory - alias global pwd print-working-directory -} +#plug 'delapouite/kakoune-cd' %{ +# # Suggested mapping +# map global user c ': enter-user-mode cd' -docstring 'cd' +# # Suggested aliases +# alias global cdb change-directory-current-buffer +# alias global cdr change-directory-project-root +# alias global ecd edit-current-buffer-directory +# alias global pwd print-working-directory +#} # Automatically change working directory to be the buffer's one. -hook global WinDisplay .* %{ - # require delapouite/kakoune-cd - change-directory-current-buffer -} +#hook global WinDisplay .* %{ +# # require delapouite/kakoune-cd +# change-directory-current-buffer +#} # Like alexherbo2/search-highlighter.kak, but which actually works. # face global Search white,yellow