vim: setze cursorline
This commit is contained in:
parent
7aff4c5a52
commit
365873fae7
2 changed files with 15 additions and 11 deletions
11
.vimrc
11
.vimrc
|
@ -46,12 +46,11 @@ set ignorecase
|
||||||
" Override the 'ignorecase' option if the search pattern contains upper case characters.
|
" Override the 'ignorecase' option if the search pattern contains upper case characters.
|
||||||
set smartcase
|
set smartcase
|
||||||
|
|
||||||
" ### Nummern
|
|
||||||
" Show line numbers.
|
" Show line numbers.
|
||||||
set number
|
set number
|
||||||
" toggle linenumbers
|
" setze cursorline
|
||||||
nmap <Leader>z :set nonu!<CR>
|
set cursorline
|
||||||
|
highlight CursorLine cterm=NONE ctermbg=green ctermfg=white guibg=darkred guifg=white
|
||||||
" ### 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
|
||||||
set wildmode=longest,list,full
|
set wildmode=longest,list,full
|
||||||
|
@ -171,3 +170,7 @@ 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>
|
||||||
|
" toggle linenumbers
|
||||||
|
nmap <Leader>z :set nonu!<CR>
|
||||||
|
" toggle cursorline
|
||||||
|
nmap <Leader>h :set nocursorline!<CR>
|
||||||
|
|
15
README.md
15
README.md
|
@ -5,16 +5,17 @@
|
||||||
| Shortcut | Befehl |
|
| Shortcut | Befehl |
|
||||||
| -- | -- |
|
| -- | -- |
|
||||||
| Leader+z | Toggle Line Numbers |
|
| Leader+z | Toggle Line Numbers |
|
||||||
| Ctrl+f | Fuzzy Search nach Dateien |
|
|
||||||
| Ctrl+l | Fuzzy Search nach Zeilen in Datei |
|
|
||||||
| Leader+m |Toggle Markdown Preview |
|
| Leader+m |Toggle Markdown Preview |
|
||||||
|
| Leader+p | Toggle Paste-Mode |
|
||||||
|
| Leader+h | Toggle Cursorline |
|
||||||
|
| Leader+c | Öffnet ShellCheck; gb öffnet die Definition auf github|
|
||||||
|
| Leader+l | Setze Highlighting + Suche neu |
|
||||||
|
| Ctrl+j | wechsele Buffer aufwärts |
|
||||||
| Ctrl+s | Speichern |
|
| Ctrl+s | Speichern |
|
||||||
| Ctrl+w | Schließen |
|
| Ctrl+w | Schließen |
|
||||||
| Leader+l | Setze Highlighting + Suche neu |
|
| Ctrl+f | Fuzzy Search nach Dateien |
|
||||||
| Leader+p | Toggle Paste-Mode |
|
| Ctrl+l | Fuzzy Search nach Zeilen in Datei |
|
||||||
| Ctrl+j | wechsele Buffer aufwärts |
|
| Ctrl+k/l | wechsle Buffer ab/aufwärts |
|
||||||
| Ctrl+k | wechsele Buffer abwärts |
|
|
||||||
| leader+c | Öffnet ShellCheck; gb öffnet die Definition auf github|
|
|
||||||
| \\\\\ | Setze mehrfachen Cursor oder Ctrl-n dann Enter pro Cursor| # 3x \
|
| \\\\\ | Setze mehrfachen Cursor oder Ctrl-n dann Enter pro Cursor| # 3x \
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue