this repo has no description
0
fork

Configure Feed

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

Rebind buffer keys for all vim but not vscode

+18 -18
-18
.config/nvim/init.lua
··· 18 18 vim.g.python_host_prog = HOME .. "/.pyenv/shims/python2" 19 19 vim.g.python3_host_prog = HOME .. "/.pyenv/shims/python3" 20 20 21 - -- https://stackoverflow.com/a/5563142/14436105 22 - -- Could be converted to lua or put in ~/.vimrc tbh 23 - vim.g.mapleader = " " 24 - vim.cmd([[ 25 - nnoremap <silent> <Tab> :if &modifiable && !&readonly && &modified <CR> 26 - \ :write<CR> :endif<CR>:bnext<CR> 27 - nnoremap <silent> <S-Tab> :if &modifiable && !&readonly && &modified <CR> 28 - \ :write<CR> :endif<CR>:bprevious<CR> 29 - nmap <silent> <Leader>n <Tab> 30 - nmap <silent> <Leader>p <S-Tab> 31 - nmap <silent> <Leader>N <S-Tab> 32 - 33 - " May want to adjust these to close window sometimes... idk 34 - nnoremap <silent> <Leader>wd :if &modifiable && !&readonly && &modified <CR> 35 - \ :write<CR> :endif<CR>:bdelete<CR> 36 - nnoremap <silent> <Leader>d :bdelete<CR> 37 - ]]) 38 - 39 21 -- TODO: convert remainder of this to proper Lua config 40 22 41 23 if not vim.g.vscode then
+18
.vimrc
··· 24 24 set diffopt+=iwhite 25 25 endif 26 26 27 + let g:mapleader = ' ' 28 + 27 29 " Enable leader-keymaps for DirDiff 28 30 let g:DirDiffEnableMappings = 1 29 31 ··· 85 87 86 88 set hlsearch 87 89 syntax on 90 + 91 + 88 92 89 93 " Editor-specific settings 90 94 if !exists('g:vscode') ··· 151 155 vmap <expr> <f28> XTermPasteBegin("c") 152 156 cmap <f28> <nop> 153 157 cmap <f29> <nop> 158 + 159 + " https://stackoverflow.com/a/5563142/14436105 160 + nnoremap <silent> <Tab> :if &modifiable && !&readonly && &modified <CR> 161 + \ :write<CR> :endif<CR>:bnext<CR> 162 + nnoremap <silent> <S-Tab> :if &modifiable && !&readonly && &modified <CR> 163 + \ :write<CR> :endif<CR>:bprevious<CR> 164 + nmap <silent> <Leader>n <Tab> 165 + nmap <silent> <Leader>p <S-Tab> 166 + nmap <silent> <Leader>N <S-Tab> 167 + 168 + " May want to adjust these to close window sometimes... idk 169 + nnoremap <silent> <Leader>wd :if &modifiable && !&readonly && &modified <CR> 170 + \ :write<CR> :endif<CR>:bdelete<CR> 171 + nnoremap <silent> <Leader>d :bdelete<CR> 154 172 endif