vim: leader nagepasst auf
This commit is contained in:
parent
a443c40ddb
commit
39d7a75030
2 changed files with 7 additions and 9 deletions
14
.vimrc
14
.vimrc
|
@ -50,7 +50,7 @@ set smartcase
|
|||
" Show line numbers.
|
||||
set number
|
||||
" toggle linenumbers
|
||||
nmap <leader>z :set nonu!<CR>
|
||||
nmap <Leader>z :set nonu!<CR>
|
||||
|
||||
" ### 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
|
||||
|
@ -108,9 +108,9 @@ let g:ctrlp_extensions = ['line', 'undo']
|
|||
hi QuickFixLine ctermbg=black guibg=black
|
||||
" mit , + n/p wechsele den Eintrag im Quickfix-Windows vor/zurück
|
||||
" mit , c Offne ShellCheck im QUickfix Windows
|
||||
nnoremap <leader>n :cn<CR>
|
||||
nnoremap <leader>p :cp<CR>
|
||||
nnoremap <leader>c :ShellCheck!<CR>
|
||||
nnoremap <Leader>n :cn<CR>
|
||||
nnoremap <Leader>p :cp<CR>
|
||||
nnoremap <Leader>c :ShellCheck!<CR>
|
||||
|
||||
" ### lightline/statusline
|
||||
" 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'")
|
||||
endfunction
|
||||
" ### markdown-preview
|
||||
nmap <leader>m :MarkdownPreviewToggle<CR>
|
||||
nmap <Leader>m :MarkdownPreviewToggle<CR>
|
||||
|
||||
" ### vim startify
|
||||
" returns all modified files of the current git repo
|
||||
|
@ -165,11 +165,9 @@ let g:startify_lists = [
|
|||
nmap <C-w> :q<CR>
|
||||
" Ctrl+S zum speichern
|
||||
nmap <C-s> :w<CR>
|
||||
" leader-key
|
||||
let mapleader = ","
|
||||
" Navigate tabs
|
||||
nnoremap <C-j> :bnext<CR>
|
||||
nnoremap <C-k> :bprev<CR>
|
||||
" 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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# dotfiles
|
||||
|
||||
# vim shortcuts
|
||||
|
||||
`Leader = \`
|
||||
| Shortcut | Befehl |
|
||||
| -- | -- |
|
||||
| Leader+z | Toggle Line Numbers |
|
||||
|
|
Loading…
Reference in a new issue