clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add vim-leader-key

sspaeti b6ba2fc5 50582157

+102 -3
+25
Brewfile
··· 1 + tap "adoptopenjdk/openjdk" 2 + tap "homebrew/bundle" 3 + tap "homebrew/cask" 4 + tap "homebrew/cask-versions" 5 + tap "homebrew/core" 6 + tap "minio/stable" 7 + tap "osx-cross/arm" 8 + tap "osx-cross/avr" 9 + tap "qmk/qmk" 10 + brew "bash-completion" 11 + brew "docker", link: false 12 + brew "docker-machine" 13 + brew "hugo" 14 + brew "neovim" 15 + brew "pandoc" 16 + brew "python@3.8", link: true 17 + brew "tmux" 18 + brew "wget" 19 + brew "zsh-autosuggestions" 20 + brew "zsh-syntax-highlighting" 21 + brew "minio/stable/mc" 22 + brew "minio/stable/minio" 23 + brew "qmk/qmk/qmk" 24 + cask "adoptopenjdk11" 25 + cask "mark-text"
+73 -1
nvim/init.vim
··· 1 - "Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. 2 1 "If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support 2 + "Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. 3 3 "(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) 4 4 if (empty($TMUX)) 5 5 if (has("nvim")) ··· 43 43 set cmdheight=2 " More space for displaying messages 44 44 set pumheight=10 " Makes popup menu smaller 45 45 set hidden " Required to keep multiple buffers open multiple buffers 46 + set timeoutlen=500 " By default timeoutlen is 1000 ms 46 47 47 48 "general 48 49 let mapleader = "\<Space>" ··· 60 61 set numberwidth=5 61 62 set relativenumber 62 63 64 + 65 + " 66 + " REMAPS 67 + " Swiss keyboard remap 68 + " 69 + "switch between two buffers -> C-^ does not work with current swiss layout 70 + nnoremap <C-6> <C-^><cr> 71 + 72 + 73 + 74 + " Others 75 + " 76 + 77 + "Which-key healper for leader-key mapping 78 + nnoremap <silent> <leader> :WhichKey '<Space>'<CR> 79 + " Create map to add keys to 80 + let g:which_key_map = {} 81 + " Define a separator 82 + let g:which_key_sep = '→' 83 + 84 + " Not a fan of floating windows for this 85 + let g:which_key_use_floating_win = 0 86 + " Hide status line 87 + autocmd! FileType which_key 88 + autocmd FileType which_key set laststatus=0 noshowmode noruler 89 + \| autocmd BufLeave <buffer> set laststatus=2 noshowmode ruler 90 + 91 + " Single mappings 92 + let g:which_key_map['ff'] = [ 'Telescope' , 'find files' ] 93 + let g:which_key_map['fb'] = [ 'Telescope' , 'find buffer' ] 94 + let g:which_key_map['h'] = [ '<C-W>' , 'split below'] 95 + let g:which_key_map['j'] = [ ':m .+1<CR>==' , 'move current line one down'] 96 + let g:which_key_map['v'] = [ '<C-W>v' , 'split right'] 97 + let g:which_key_map['k'] = [ ':m .-2<CR>==' , 'move current line one up'] 98 + 99 + " s is for search 100 + let g:which_key_map.s = { 101 + \ 'name' : '+search' , 102 + \ '/' : [':History/' , 'history'], 103 + \ ';' : [':Commands' , 'commands'], 104 + \ 'a' : [':Ag' , 'text Ag'], 105 + \ 'b' : [':BLines' , 'current buffer'], 106 + \ 'B' : [':Buffers' , 'open buffers'], 107 + \ 'c' : [':Commits' , 'commits'], 108 + \ 'C' : [':BCommits' , 'buffer commits'], 109 + \ 'f' : [':Files' , 'files'], 110 + \ 'g' : [':GFiles' , 'git files'], 111 + \ 'G' : [':GFiles?' , 'modified git files'], 112 + \ 'h' : [':History' , 'file history'], 113 + \ 'H' : [':History:' , 'command history'], 114 + \ 'l' : [':Lines' , 'lines'] , 115 + \ 'm' : [':Marks' , 'marks'] , 116 + \ 'M' : [':Maps' , 'normal maps'] , 117 + \ 'p' : [':Helptags' , 'help tags'] , 118 + \ 'P' : [':Tags' , 'project tags'], 119 + \ 's' : [':Snippets' , 'snippets'], 120 + \ 'S' : [':Colors' , 'color schemes'], 121 + \ 't' : [':Rg' , 'text Rg'], 122 + \ 'T' : [':BTags' , 'buffer tags'], 123 + \ 'w' : [':Windows' , 'search windows'], 124 + \ 'y' : [':Filetypes' , 'file types'], 125 + \ 'z' : [':FZF' , 'FZF'], 126 + \ } 127 + 128 + " Register which key map 129 + call which_key#register('<Space>', "g:which_key_map") 130 + 63 131 " Easy CAPS 132 + 64 133 "inoremap <c-u> <ESC>viwUi 65 134 "nnoremap <c-u> viwU<Esc> 66 135 ··· 104 173 vnoremap K :m '<-2<CR>gv=gv 105 174 inoremap <C-j> <esc>:m .+1<CR>== 106 175 inoremap <C-k> <esc>:m .-2<CR>== 176 + " moves current line one down 107 177 nnoremap <leader>j :m .+1<CR>== 178 + " moves current line one up 108 179 nnoremap <leader>k :m .-2<CR>== 109 180 110 181 " Commenting blocks of code. ··· 151 222 Plug 'davidhalter/jedi-vim' 152 223 Plug 'jmcantrell/vim-virtualenv' 153 224 225 + Plug 'liuchengxu/vim-which-key' 154 226 call plug#end() 155 227 "install with :PlugInstall 156 228
+4 -2
vim/vim-shortcuts.md
··· 1 - 2 1 11.08.2021 3 2 4 3 # learning VIM ··· 49 48 useful when you work in a file for long! 50 49 ### global marks 51 50 same as local also set with m, but this time the any key will be capitalized 52 - 51 + ### buffer operation 52 + c-^ switching between latest two files in buffer 53 + :b starting-file-name <tab> will serach your buffer and let you switch between files 54 + :bd closes/deletes current buffer (will not delete when you saved, it just unloads from buffer) 53 55 ## window operations 54 56 ctrl+w: entering window mode 55 57 then: