vim: leader nagepasst auf

This commit is contained in:
Michael Grote 2021-11-27 21:19:34 +01:00
parent a443c40ddb
commit 39d7a75030
2 changed files with 7 additions and 9 deletions

14
.vimrc
View file

@ -50,7 +50,7 @@ set smartcase
" Show line numbers. " Show line numbers.
set number set number
" toggle linenumbers " toggle linenumbers
nmap <leader>z :set nonu!<CR> nmap <Leader>z :set nonu!<CR>
" ### Kommandovervollständigung " ### Kommandovervollständigung
" https://www.reddit.com/r/vim/comments/oo9gms/any_way_to_get_vim_to_not_defaulting_to_the_first/h5wygix/?context=8&depth=9 " https://www.reddit.com/r/vim/comments/oo9gms/any_way_to_get_vim_to_not_defaulting_to_the_first/h5wygix/?context=8&depth=9
@ -108,9 +108,9 @@ let g:ctrlp_extensions = ['line', 'undo']
hi QuickFixLine ctermbg=black guibg=black hi QuickFixLine ctermbg=black guibg=black
" mit , + n/p wechsele den Eintrag im Quickfix-Windows vor/zurück " mit , + n/p wechsele den Eintrag im Quickfix-Windows vor/zurück
" mit , c Offne ShellCheck im QUickfix Windows " mit , c Offne ShellCheck im QUickfix Windows
nnoremap <leader>n :cn<CR> nnoremap <Leader>n :cn<CR>
nnoremap <leader>p :cp<CR> nnoremap <Leader>p :cp<CR>
nnoremap <leader>c :ShellCheck!<CR> nnoremap <Leader>c :ShellCheck!<CR>
" ### lightline/statusline " ### lightline/statusline
" blende insert/visual/... in der commandline aus, steht in lightline " blende insert/visual/... in der commandline aus, steht in lightline
@ -130,7 +130,7 @@ function! GitBranch()
return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
endfunction endfunction
" ### markdown-preview " ### markdown-preview
nmap <leader>m :MarkdownPreviewToggle<CR> nmap <Leader>m :MarkdownPreviewToggle<CR>
" ### vim startify " ### vim startify
" returns all modified files of the current git repo " returns all modified files of the current git repo
@ -165,11 +165,9 @@ let g:startify_lists = [
nmap <C-w> :q<CR> nmap <C-w> :q<CR>
" Ctrl+S zum speichern " Ctrl+S zum speichern
nmap <C-s> :w<CR> nmap <C-s> :w<CR>
" leader-key
let mapleader = ","
" Navigate tabs " Navigate tabs
nnoremap <C-j> :bnext<CR> nnoremap <C-j> :bnext<CR>
nnoremap <C-k> :bprev<CR> nnoremap <C-k> :bprev<CR>
" Saner CTRL-L " Saner CTRL-L
" https://github.com/mhinz/vim-galore#saner-ctrl-l " https://github.com/mhinz/vim-galore#saner-ctrl-l
nnoremap <leader>l :nohlsearch<cr>:diffupdate<cr>:syntax sync fromstart<cr><c-l> nnoremap <Leader>l :nohlsearch<cr>:diffupdate<cr>:syntax sync fromstart<cr><c-l>

View file

@ -1,7 +1,7 @@
# dotfiles # dotfiles
# vim shortcuts # vim shortcuts
`Leader = \`
| Shortcut | Befehl | | Shortcut | Befehl |
| -- | -- | | -- | -- |
| Leader+z | Toggle Line Numbers | | Leader+z | Toggle Line Numbers |