vim: backticks

This commit is contained in:
Michael Grote 2023-03-27 14:20:01 +02:00
parent b2d528ab4d
commit 654b18d9cd

7
.vimrc
View file

@ -24,8 +24,6 @@ Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'itspriddle/vim-shellcheck' Plugin 'itspriddle/vim-shellcheck'
" git integration G: " git integration G:
Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-fugitive'
" vim-surround
Plugin 'tpope/vim-surround'
" statusline " statusline
Plugin 'itchyny/lightline.vim' Plugin 'itchyny/lightline.vim'
" ausrichten von text " ausrichten von text
@ -160,6 +158,11 @@ let g:startify_lists = [
" Trigger a highlight in the appropriate direction only when pressing these keys: " Trigger a highlight in the appropriate direction only when pressing these keys:
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
" wrap words with ``
" https://stackoverflow.com/questions/24555192/command-for-putting-backticks-around-the-current-word
nnoremap <F8> ciw``<C-r>"``<Esc>
xnoremap <F8> c``<C-r>"``<Esc>
" ### Keybindings " ### Keybindings
" deaktiviere Ex-Mode keybinding " deaktiviere Ex-Mode keybinding
nnoremap Q <Nop> nnoremap Q <Nop>