M .vimrc
This commit is contained in:
11
.bashrc
11
.bashrc
@@ -94,10 +94,13 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
|||||||
alias fzfcmd='fzf --bind "enter:execute($EDITOR {})"'
|
alias fzfcmd='fzf --bind "enter:execute($EDITOR {})"'
|
||||||
bind -x '"\C-p": fzfcmd;'
|
bind -x '"\C-p": fzfcmd;'
|
||||||
|
|
||||||
#setup history for fzf
|
#setup bash history
|
||||||
export HISTIGNORE="ls:cd:exit:ps:history:pass:gpg:start*"
|
export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*"
|
||||||
export HISTSIZE=4096
|
# export HISTSIZE=4096
|
||||||
export HISTFILESIZE=16384
|
export HISTSIZE=-1 #make unlimited
|
||||||
|
# export HISTSIZE=0 #disable history
|
||||||
|
# export HISTFILESIZE=32768
|
||||||
|
unset HISTFILESIZE
|
||||||
export HISTCONTROL=ignoreboth:erasedups
|
export HISTCONTROL=ignoreboth:erasedups
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
# export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S | '
|
# export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S | '
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|||||||
#display brightness
|
#display brightness
|
||||||
#bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
#bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||||
#bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
#bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||||
|
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
font pango:monospace 8
|
font pango:monospace 8
|
||||||
@@ -290,6 +290,10 @@ bar {
|
|||||||
# Toggle between dock mode and hide mode for i3 bar
|
# Toggle between dock mode and hide mode for i3 bar
|
||||||
bindsym $mod+Shift+b bar mode toggle
|
bindsym $mod+Shift+b bar mode toggle
|
||||||
|
|
||||||
|
# Turn off focused window title and set minimal default border thickness
|
||||||
|
bindsym $mod+Shift+m border pixel 1
|
||||||
|
# bindsym $mod+Shift+m border toggle
|
||||||
|
|
||||||
# Basic color configuration using the Base16 variables for windows and borders.
|
# Basic color configuration using the Base16 variables for windows and borders.
|
||||||
# Property Name Border BG Text Indicator Child Border
|
# Property Name Border BG Text Indicator Child Border
|
||||||
#client.focused $base05 $base0D $base00 $base0D $base0D
|
#client.focused $base05 $base0D $base00 $base0D $base0D
|
||||||
@@ -304,8 +308,8 @@ bindsym $mod+Shift+b bar mode toggle
|
|||||||
# tray_output none
|
# tray_output none
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# focus windowns using only keyboard
|
# focus windows using only keyboard
|
||||||
# focus_follows_mouse no
|
focus_follows_mouse no
|
||||||
|
|
||||||
#Can use the following with custom workspace save files to reload layouts
|
#Can use the following with custom workspace save files to reload layouts
|
||||||
#exec --no-startup-id "i3-msg 'workspace 1; append_layout ~/.config/i3/workspace-1.json'"
|
#exec --no-startup-id "i3-msg 'workspace 1; append_layout ~/.config/i3/workspace-1.json'"
|
||||||
|
|||||||
24
.vimrc
24
.vimrc
@@ -229,8 +229,6 @@ nnoremap <buffer> <silent> <localleader>r :JupyterSendCell<CR>
|
|||||||
|
|
||||||
"General vim config
|
"General vim config
|
||||||
set title
|
set title
|
||||||
set noshowmode
|
|
||||||
"set cmdheight=0
|
|
||||||
set tabstop=8
|
set tabstop=8
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
@@ -259,27 +257,27 @@ augroup END
|
|||||||
|
|
||||||
" au BufNewFile,BufRead *.js, *.html, *.css set tabstop=2 softtabstop=2 set shiftwidth=2 expandtab
|
" au BufNewFile,BufRead *.js, *.html, *.css set tabstop=2 softtabstop=2 set shiftwidth=2 expandtab
|
||||||
|
|
||||||
"Mouse/trackpad pointer config
|
"Mouse/trackpad pointer config see :help mouse
|
||||||
" set mouse=a "already set by defaults.vim
|
" set mouse=a "already set by defaults.vim
|
||||||
set mouse=n
|
" set mouse=nv
|
||||||
" OR try set mouse=r mouse=&
|
"Disable mouse
|
||||||
|
set mouse=
|
||||||
|
|
||||||
" Shortcuts for next or prev file like after vim *.py
|
" Shortcuts for next or prev file like after vim *.py
|
||||||
" :map v :n<enter>
|
" :map v :n<enter>
|
||||||
" :map V :N<enter>
|
" :map V :N<enter>
|
||||||
" or just use :n or :N followed by the dot . cmd!
|
" or just use :n or :N followed by the dot . cmd!
|
||||||
|
|
||||||
|
"Quick save config with output message silencing
|
||||||
"Quick save config
|
imap <silent> ;s <Esc>:silent:update<enter>
|
||||||
imap ;s <ESC>:update<enter>
|
nmap <silent> ;s <Esc>:silent:update<enter>
|
||||||
nmap ;s <ESC>:update<enter>
|
nmap ;q <Esc>:quit<enter>
|
||||||
nmap ;q <ESC>:quit<enter>
|
|
||||||
" imap jjw <ESC>:update<enter>
|
" imap jjw <ESC>:update<enter>
|
||||||
"<CR> vs <enter> and running code
|
"<CR> vs <enter> and running code
|
||||||
|
|
||||||
"Quick mode exit config
|
"Quick mode exit config
|
||||||
" Two semicolons are easy to type. The `^ fixes the cursor position.
|
" Two semicolons are easy to type. The `^ fixes the cursor position.
|
||||||
imap ;; <ESC>`^
|
imap ;; <Esc>`^
|
||||||
inoremap <Tab> <Esc>`^
|
inoremap <Tab> <Esc>`^
|
||||||
|
|
||||||
" Just press Space to enter insert mode while in normal mode.
|
" Just press Space to enter insert mode while in normal mode.
|
||||||
@@ -311,7 +309,7 @@ augroup resCur
|
|||||||
autocmd BufReadPost * call setpos(".", getpos("'\""))
|
autocmd BufReadPost * call setpos(".", getpos("'\""))
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" Triger `autoread` when files changes on disk
|
" Trigger `autoread` when files changes on disk
|
||||||
" https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim/383044#383044
|
" https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim/383044#383044
|
||||||
" https://vi.stackexchange.com/questions/13692/prevent-focusgained-autocmd-running-in-command-line-editing-mode
|
" https://vi.stackexchange.com/questions/13692/prevent-focusgained-autocmd-running-in-command-line-editing-mode
|
||||||
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI *
|
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI *
|
||||||
@@ -387,7 +385,7 @@ function! ToggleHiddenAll()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
nnoremap <S-h> :call ToggleHiddenAll()<CR>
|
nnoremap <silent> <S-h> :call ToggleHiddenAll()<CR>
|
||||||
|
|
||||||
" Configure color
|
" Configure color
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|||||||
Reference in New Issue
Block a user