Worked on tmux and vimrc
This commit is contained in:
parent
0ca84b44d6
commit
c544e55eba
@ -4,5 +4,10 @@ set -g prefix Home
|
|||||||
# Keep Ctrl+B available as an alternative.
|
# Keep Ctrl+B available as an alternative.
|
||||||
set -g prefix2 C-b
|
set -g prefix2 C-b
|
||||||
|
|
||||||
|
# Hook that runs :q! in all panes before a session is killed
|
||||||
|
# to avoid Vim swapfiles.
|
||||||
|
#set-hook -g
|
||||||
|
|
||||||
|
|
||||||
# Reload config.
|
# Reload config.
|
||||||
bind M-r source-file ~/.tmux.conf
|
bind M-r source-file ~/.tmux.conf
|
||||||
@ -30,11 +30,10 @@ set encoding=utf8
|
|||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
|
||||||
" Make tabs as wide as two spaces
|
" Make tabs as wide as two spaces
|
||||||
set tabstop=2
|
set tabstop=2 shiftwidth=0 softtabstop=2 noexpandtab
|
||||||
|
|
||||||
" Copy indentation from previous line
|
" Copy indentation from previous line
|
||||||
set smartindent
|
set autoindent nosmartindent nocindent indentexpr=
|
||||||
set autoindent
|
|
||||||
|
|
||||||
" Show the current mode
|
" Show the current mode
|
||||||
set showmode
|
set showmode
|
||||||
@ -45,11 +44,12 @@ set title
|
|||||||
" Show the (partial) command as it’s being typed
|
" Show the (partial) command as it’s being typed
|
||||||
set showcmd
|
set showcmd
|
||||||
|
|
||||||
" Centralize backups, swapfiles and undo history
|
" Centralize backups, swapfiles and undo history;
|
||||||
set backupdir=~/.vim/backups
|
" double slashes enable collision-avoidance.
|
||||||
set directory=~/.vim/swaps
|
set backupdir=~/.vim/backups//
|
||||||
|
set directory=~/.vim/swaps//
|
||||||
if exists("&undodir")
|
if exists("&undodir")
|
||||||
set undodir=~/.vim/undo
|
set undodir=~/.vim/undo//
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" :W sudo saves the file (useful for handling the permission-denied error)
|
" :W sudo saves the file (useful for handling the permission-denied error)
|
||||||
Loading…
x
Reference in New Issue
Block a user