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 {})"'
|
||||
bind -x '"\C-p": fzfcmd;'
|
||||
|
||||
#setup history for fzf
|
||||
export HISTIGNORE="ls:cd:exit:ps:history:pass:gpg:start*"
|
||||
export HISTSIZE=4096
|
||||
export HISTFILESIZE=16384
|
||||
#setup bash history
|
||||
export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*"
|
||||
# export HISTSIZE=4096
|
||||
export HISTSIZE=-1 #make unlimited
|
||||
# export HISTSIZE=0 #disable history
|
||||
# export HISTFILESIZE=32768
|
||||
unset HISTFILESIZE
|
||||
export HISTCONTROL=ignoreboth:erasedups
|
||||
shopt -s histappend
|
||||
# export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S | '
|
||||
|
||||
@@ -290,6 +290,10 @@ bar {
|
||||
# Toggle between dock mode and hide mode for i3 bar
|
||||
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.
|
||||
# Property Name Border BG Text Indicator Child Border
|
||||
#client.focused $base05 $base0D $base00 $base0D $base0D
|
||||
@@ -304,8 +308,8 @@ bindsym $mod+Shift+b bar mode toggle
|
||||
# tray_output none
|
||||
# }
|
||||
|
||||
# focus windowns using only keyboard
|
||||
# focus_follows_mouse no
|
||||
# focus windows using only keyboard
|
||||
focus_follows_mouse no
|
||||
|
||||
#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'"
|
||||
|
||||
24
.vimrc
24
.vimrc
@@ -229,8 +229,6 @@ nnoremap <buffer> <silent> <localleader>r :JupyterSendCell<CR>
|
||||
|
||||
"General vim config
|
||||
set title
|
||||
set noshowmode
|
||||
"set cmdheight=0
|
||||
set tabstop=8
|
||||
set softtabstop=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
|
||||
|
||||
"Mouse/trackpad pointer config
|
||||
"Mouse/trackpad pointer config see :help mouse
|
||||
" set mouse=a "already set by defaults.vim
|
||||
set mouse=n
|
||||
" OR try set mouse=r mouse=&
|
||||
" set mouse=nv
|
||||
"Disable mouse
|
||||
set mouse=
|
||||
|
||||
" Shortcuts for next or prev file like after vim *.py
|
||||
" :map v :n<enter>
|
||||
" :map V :N<enter>
|
||||
" or just use :n or :N followed by the dot . cmd!
|
||||
|
||||
|
||||
"Quick save config
|
||||
imap ;s <ESC>:update<enter>
|
||||
nmap ;s <ESC>:update<enter>
|
||||
nmap ;q <ESC>:quit<enter>
|
||||
"Quick save config with output message silencing
|
||||
imap <silent> ;s <Esc>:silent:update<enter>
|
||||
nmap <silent> ;s <Esc>:silent:update<enter>
|
||||
nmap ;q <Esc>:quit<enter>
|
||||
" imap jjw <ESC>:update<enter>
|
||||
"<CR> vs <enter> and running code
|
||||
|
||||
"Quick mode exit config
|
||||
" Two semicolons are easy to type. The `^ fixes the cursor position.
|
||||
imap ;; <ESC>`^
|
||||
imap ;; <Esc>`^
|
||||
inoremap <Tab> <Esc>`^
|
||||
|
||||
" Just press Space to enter insert mode while in normal mode.
|
||||
@@ -311,7 +309,7 @@ augroup resCur
|
||||
autocmd BufReadPost * call setpos(".", getpos("'\""))
|
||||
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://vi.stackexchange.com/questions/13692/prevent-focusgained-autocmd-running-in-command-line-editing-mode
|
||||
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI *
|
||||
@@ -387,7 +385,7 @@ function! ToggleHiddenAll()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
nnoremap <S-h> :call ToggleHiddenAll()<CR>
|
||||
nnoremap <silent> <S-h> :call ToggleHiddenAll()<CR>
|
||||
|
||||
" Configure color
|
||||
set background=dark
|
||||
|
||||
Reference in New Issue
Block a user