diff --git a/.vimrc b/.vimrc index 1ffc3e9..e744d6a 100644 --- a/.vimrc +++ b/.vimrc @@ -36,16 +36,8 @@ Plugin 'mhinz/vim-startify' Plugin 'ConradIrwin/vim-bracketed-paste' " bessere textoperatroren Plugin 'wellle/targets.vim' -" multi cursor; setze cursor mit \\\ -Plugin 'mg979/vim-visual-multi' " Undotree Plugin 'mbbill/undotree' -" Markdown-Preview in Browser -" :source % -" :PluginInstall -" :call mkdp#util#install() -" Befehle nach Installation notwendig -Plugin 'iamcco/markdown-preview.nvim' call vundle#end() let mapleader = "," @@ -54,18 +46,23 @@ let mapleader = "," " ### Suche " While typing a search command, show immediately where the so far typed pattern matches. set incsearch + " When there is a previous search pattern, highlight all its matches. set hlsearch + " Ignore case in search patterns. set ignorecase + " Override the 'ignorecase' option if the search pattern contains upper case characters. set smartcase " Show line numbers. set number + " setze cursorline set cursorline highlight CursorLine cterm=NONE ctermbg=green ctermfg=white guibg=darkred guifg=white + " ### 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 set wildmode=longest,list,full @@ -166,45 +163,52 @@ xnoremap c``"`` " ### Keybindings " deaktiviere Ex-Mode keybinding nnoremap Q + " Ctrl+S zum speichern nnoremap :w + " Navigate tabs nnoremap :bnext nnoremap :bprev + " Saner CTRL-L " https://github.com/mhinz/vim-galore#saner-ctrl-l nnoremap dh :nohlsearch:diffupdate:syntax sync fromstart + " toggle cursorline nnoremap h :set nocursorline! + " strg+f sucht fuzzy nach dateien nnoremap :CtrlP " strg+l sucht fuzzy in Zeilen des aktuellen Buffers nnoremap :CtrlPLine + " mit , + n/p wechsele den Eintrag im Quickfix-Windows vor/zurück " mit , c Öffne ShellCheck im Quickfix Windows nnoremap cn :cn nnoremap cp :cp nnoremap sc :ShellCheck! -" ### markdown-preview -nnoremap m :MarkdownPreviewToggle + " format paragraphs as markdown table nnoremap mm Vap:EasyAlign *\| nnoremap Vap:EasyAlign *\| +" " lasse Y wie C oder D funktionieren nmap Y y$ + " https://www.reddit.com/r/vim/comments/s1he17/is_there_a_plugin_that_makes_searching_and nnoremap sr :%s///gc vnoremap sr y:%s/"//gc + " Toggle NERDTree nnoremap :call ToggleNERDTreeFind() + " toogle floaterm let g:floaterm_keymap_toggle = '' + " toddle Undotree nnoremap :UndotreeToggle nnoremap u :UndotreeToggle -" surround words with backticks -nnoremap ciw``"`` -xnoremap c``"`` " besseres undo " https://www.reddit.com/r/vim/comments/13gk0nl/is_there_a_way_to_make_undo_sensible/ @@ -219,13 +223,13 @@ inoremap \" \"u inoremap u inoremap u - " ### Abbreviations iabbrev ncicht nicht iabbrev nciht nicht " linenumbers nnoremap z :set nonumber! norelativenumber! + " https://jeffkreeftmeijer.com/vim-number/ :augroup numbertoggle : autocmd!