···119119"auto format on save with Black
120120autocmd BufWritePre *.py execute ':Black'
121121122122-"let g:python3_host_prog = expand($HOME."/.venvs/nvim/bin/python3") "expand($VIRTUAL_ENV."/bin/python3")
122122+let g:python3_host_prog = expand($HOME."/.venvs/nvim/bin/python3")
123123+"expand($VIRTUAL_ENV."/bin/python3")
123124124125" coc
125126"let g:coc_node_path = "/opt/homebrew/bin/node"
···257258" Split window
258259nmap ss :split<Return>
259260nmap sv :vsplit<Return>
261261+" zoom vim split views
262262+noremap Zz <c-w>_ \| <c-w>\|
263263+noremap Zo <c-w>=
264264+260265"nmap sv :vsplit<Return><C-w>w" Move window
261266nmap st :tabnew<Return>
262267map sh <C-w>h
···302307" Commenting blocks of code.
303308augroup commenting_blocks_of_code
304309 autocmd!
305305- autocmd FileType c,cpp,java,scala let b:comment_leader = '// '
306306- autocmd FileType sh,ruby,python let b:comment_leader = '# '
307307- autocmd FileType conf,fstab let b:comment_leader = '# '
308308- autocmd FileType tex let b:comment_leader = '% '
309309- autocmd FileType mail let b:comment_leader = '> '
310310- autocmd FileType vim let b:comment_leader = '" '
310310+ autocmd FileType c,cpp,java,scala let b:comment_leader = '// '
311311+ autocmd FileType sh,ruby,python,yaml let b:comment_leader = '# '
312312+ autocmd FileType conf,fstab let b:comment_leader = '# '
313313+ autocmd FileType tex let b:comment_leader = '% '
314314+ autocmd FileType mail let b:comment_leader = '> '
315315+ autocmd FileType vim let b:comment_leader = '" '
311316augroup END
312317noremap <silent> <Leader>cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
313318noremap <silent> <Leader>cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
+4-4
obsidian/.vimrc
···7788" map to visual line instead of full line as in obsidian line are always
99" wraped
1010-nmap <C-j> gj
1111-nmap <C-k> gk
1212-" nmap j gj
1313-" nmap k gk
1010+noremap <C-j> j
1111+noremap <C-k> k
1212+nmap j gj
1313+nmap k gk
1414" nmap $ g$
1515" nmap ^ g^
1616" nmap 0 g^
+22-3
tmux/tmux.conf
···77# List of plugins
88set -g @plugin 'tmux-plugins/tpm'
99set -g @plugin 'tmux-plugins/tmux-sensible'
1010-set -g @plugin 'odedlaz/tmux-onedark-theme'
1010+"set -g @plugin 'odedlaz/tmux-onedark-theme'
1111+set -g @plugin 'egel/tmux-gruvbox'
1112set -g @plugin 'tmux-plugins/tmux-continuum'
1213set -g @plugin 'tmux-plugins/tmux-resurrect'
1314set -g @plugin 'tmux-plugins/tmux-yank'
1415set -g @continuum-restore 'on'
1616+1717+# set tmux theme
1818+set -g @tmux-gruvbox 'dark' # or 'light'
1919+1520# Preserves what was readable in each pane.
1621set -g @resurrect-capture-pane-contents 'on'
1722set -g @resurrect-strategy-vim 'session'
···3237bind -r l select-pane -R
333834394040+4141+# Maps <Ctrl>-h to select pane on the left. Vim-like navigation (does not work..
4242+bind -n C-k select-pane -U
4343+bind -n C-j select-pane -D
4444+bind -n C-h select-pane -L
4545+bind -n C-l select-pane -R
4646+3547#shift + control switch windows
3636-bind-key -n C-S-Left swap-window -t -1
3737-bind-key -n C-S-Right swap-window -t +1
4848+#bind-key -n C-S-Left swap-window -t -1
4949+#bind-key -n C-S-Right swap-window -t +1
5050+5151+5252+#try to use same keybinidng for vim and tmux:
5353+#is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
5454+# | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
5555+#
5656+#bind-key -n sh if-shell "$is_vim" "send-keys sh" "select-pane -L"
385739584059# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
+1-1
vscode/settings.json
···115115 "editor.hideCursorInOverviewRuler": true, // hides cursor mark in the overview ruler
116116 "editor.folding": true, // removes the folding feature
117117 "editor.occurrencesHighlight": false, // removes highlights occurrences (still works when you select a word)
118118- "editor.matchBrackets": false, // removes the highlight of matching brackets (I use Subtle Match Brackets extension for this)
118118+ "editor.matchBrackets": "never", // removes the highlight of matching brackets (I use Subtle Match Brackets extension for this)
119119 "editor.glyphMargin": true, // removes the space used mainly for debugging indicators
120120 "explorer.openEditors.visible": 0, // removes the activity bar (the 4 icons at the left of the screen), so now you will have to open the explorer, git, debugger and extension with shortcuts or through the Command Palette
121121 "workbench.editor.showIcons": false, // removes icon from opened files in tabs