Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
38bbd893d0 | |||
5886b3f5f2 | |||
7dc1f3cd9b |
4 changed files with 40 additions and 8 deletions
|
@ -16,6 +16,12 @@ export ALTERNATE_EDITOR=""
|
||||||
export PATH=".:~/bin:~/.local/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
export PATH=".:~/bin:~/.local/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
||||||
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
|
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
|
||||||
|
|
||||||
|
|
||||||
|
# XDG
|
||||||
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
|
|
||||||
|
|
||||||
# include doom in path if it exists
|
# include doom in path if it exists
|
||||||
if [ -d ~/.config/emacs/bin ]; then
|
if [ -d ~/.config/emacs/bin ]; then
|
||||||
export PATH="$HOME/.emacs.d/bin:$PATH"
|
export PATH="$HOME/.emacs.d/bin:$PATH"
|
||||||
|
|
|
@ -57,5 +57,6 @@
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
|
||||||
[gpg]
|
[gpg]
|
||||||
format = ssh
|
format = ssh
|
||||||
|
|
29
vim/.config/nvim/ginit.vim
Normal file
29
vim/.config/nvim/ginit.vim
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
" Enable Mouse
|
||||||
|
set mouse=a
|
||||||
|
|
||||||
|
" Set Editor Font
|
||||||
|
if exists(':GuiFont')
|
||||||
|
" Use GuiFont! to ignore font errors
|
||||||
|
GuiFont Hack:10
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Disable GUI Tabline
|
||||||
|
if exists(':GuiTabline')
|
||||||
|
GuiTabline 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Disable GUI Popupmenu
|
||||||
|
if exists(':GuiPopupmenu')
|
||||||
|
GuiPopupmenu 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Enable GUI ScrollBar
|
||||||
|
if exists(':GuiScrollBar')
|
||||||
|
GuiScrollBar 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Right Click Context Menu (Copy-Cut-Paste)
|
||||||
|
nnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>
|
||||||
|
inoremap <silent><RightMouse> <Esc>:call GuiShowContextMenu()<CR>
|
||||||
|
xnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>gv
|
||||||
|
snoremap <silent><RightMouse> <C-G>:call GuiShowContextMenu()<CR>gv
|
12
vim/.vimrc
12
vim/.vimrc
|
@ -195,10 +195,6 @@ cmap w!! w !sudo tee > /dev/null %
|
||||||
" Disable F1 key
|
" Disable F1 key
|
||||||
nmap <F1> <nop>
|
nmap <F1> <nop>
|
||||||
|
|
||||||
" Go shortcuts just for .go files
|
|
||||||
autocmd FileType go nmap <leader>r <Plug>(go-run)
|
|
||||||
autocmd FileType go nmap <leader>t <Plug>(go-test)
|
|
||||||
|
|
||||||
" ==================== File searching ====================
|
" ==================== File searching ====================
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wildmode=list:full
|
set wildmode=list:full
|
||||||
|
@ -212,10 +208,10 @@ nnoremap <leader>t :tabfind *
|
||||||
|
|
||||||
" ==================== Fugitive ====================
|
" ==================== Fugitive ====================
|
||||||
nnoremap <leader>ga :Git add %:p<CR><CR>
|
nnoremap <leader>ga :Git add %:p<CR><CR>
|
||||||
nnoremap <leader>gs :Gstatus<CR>
|
nnoremap <leader>gs :Git status<CR>
|
||||||
nnoremap <leader>gp :Gpush<CR>
|
nnoremap <leader>gp :Git push<CR>
|
||||||
vnoremap <leader>gb :Gblame<CR>
|
vnoremap <leader>gb :Git blame<CR>
|
||||||
|
nnoremap <leader>gc :Git commit<CR>
|
||||||
|
|
||||||
" =================== nvim ====================
|
" =================== nvim ====================
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue