diff options
| -rw-r--r-- | .config/terminator/config | 1 | ||||
| -rw-r--r-- | .globalgitignore | 1 | ||||
| -rw-r--r-- | .vimrc | 3 | ||||
| -rw-r--r-- | .zshrc | 11 |
4 files changed, 15 insertions, 1 deletions
diff --git a/.config/terminator/config b/.config/terminator/config index 3d79750..ac596ac 100644 --- a/.config/terminator/config +++ b/.config/terminator/config @@ -2,6 +2,7 @@ enabled_plugins = CommandNotify, CustomCommandsMenu, LaunchpadBugURLHandler, LaunchpadCodeURLHandler, APTURLHandler suppress_multiple_term_dialog = True [keybindings] + help = "" [profiles] [[default]] background_color = "#282828" diff --git a/.globalgitignore b/.globalgitignore index 1377554..bf345cf 100644 --- a/.globalgitignore +++ b/.globalgitignore @@ -1 +1,2 @@ *.swp +.vim-session @@ -148,6 +148,9 @@ nnoremap <M-j> <ESC>:m+1<CR> execute "set <M-k>=\ek" nnoremap <M-k> <ESC>:m-2<CR> + + " Make session file + nnoremap <F1> <ESC>:mksession! .vim-session<CR> " }}} " Omni complition {{{ @@ -305,7 +305,6 @@ alias lg="lazygit" alias q="exit" alias x="exit" -if [[ -x "$(command -v vimx)" ]]; then alias vim='vimx'; fi alias v="vim" alias cdg="cd ~/Programming/GitHub-repos/ && mcd" @@ -316,6 +315,16 @@ alias cds="cd ~/Programming/source/ && mcd" # Binds and alias-like functions # ------------------------------------------------------------------------------ +if [[ -x "$(command -v vimx)" ]]; then + vim () { + if [ -f ".vim-session" ] && [ -z "$1" ]; then + vimx -S .vim-session + else + vimx $@ + fi + } +fi + mexec () { for cmd in "${@[@]}"; do if ! [ -z "$cmd" ]; then |
