Merge branch 'master' of gitlab.com:marty-oehme/dotfiles

This commit is contained in:
Marty Oehme 2019-07-16 21:17:57 +02:00
commit c9e3b917f2
3 changed files with 14 additions and 5 deletions

View file

@ -283,6 +283,8 @@ let g:ale_linters = {
" PLUGIN: TMUXLINE
let g:airline_powerline_fonts=1
let g:airline_theme='raven'
let g:gruvbox_italic=1
colorscheme gruvbox
" disable automatically refreshing the mux statusbar since it breaks tmux

View file

@ -25,7 +25,7 @@ set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
set-window-option -g automatic-rename on
set-option -g set-titles on
set -g mouse on
set -g default-terminal screen-256color
set -g default-terminal xterm-256color
set -g status-keys vi
set -g history-limit 10000

View file

@ -411,6 +411,7 @@ nmap Q :q<cr>
" for now they use space for my leader key - so we can't switch panels with
" space, use tab for that
nnoremap <space> <nop>
nnoremap <space><space> t
" Start shell in current directory
nnoremap s :shell<cr>
@ -428,11 +429,17 @@ nnoremap o :!nvim <cr>
" Open file in the background using its default program
nnoremap gb :file &<cr>l
" Yank current directory path into the clipboard
nnoremap yd :!echo %d | xclip %i<cr>
" yank current directory path into the clipboard
nnoremap yd :!echo -n %d | xclip -selection "clipboard" %i<cr>
" Yank current file path into the clipboard
nnoremap yf :!echo %c:p | xclip %i<cr>
" yank current file path into the clipboard
nnoremap yf :!echo -n %c:p | xclip -selection "clipboard" %i<cr>
" yank current filename without path into the clipboard
nnoremap yn :!echo -n %c | xclip -selection "clipboard" %i<cr>
" yank root of current file's name into the clipboard
nnoremap yr :!echo -n %c:r | xclip -selection "clipboard" %i<cr>
" Mappings for faster renaming
nnoremap I cw<c-a>