From ae082636f51217bd22a23b3b8f218aff450b81d8 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Mon, 4 Mar 2019 16:29:53 +0000 Subject: tmux and vimrc configuration files fixs --- core/conf/skel/.tmux.conf | 2 +- tools/conf/etc/skel/.vimrc | 55 ++++++++++++++++++++++++++++++---------------- 2 files changed, 37 insertions(+), 20 deletions(-) diff --git a/core/conf/skel/.tmux.conf b/core/conf/skel/.tmux.conf index 4feb9a4..ee127e8 100644 --- a/core/conf/skel/.tmux.conf +++ b/core/conf/skel/.tmux.conf @@ -9,7 +9,7 @@ bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel # copy tmux's selection buffer into the primary X selection with PREFIX+CTRL+Y bind-key u run "tmux save-buffer - | xsel -ib" # copy primary X selection into tmux's selection buffer with PREFIX+CTRL+P -bind-key e run "xsel -o | tmux load-buffer -" +bind-key e run "xsel -ob | tmux load-buffer -" set-option -g set-titles on set-option -g set-titles-string '#S> #I.#P #W' diff --git a/tools/conf/etc/skel/.vimrc b/tools/conf/etc/skel/.vimrc index 9958538..2a45faf 100644 --- a/tools/conf/etc/skel/.vimrc +++ b/tools/conf/etc/skel/.vimrc @@ -37,22 +37,24 @@ set incsearch " do incremental searching if &t_Co > 2 || has("gui_running") syntax on set hlsearch + set background=dark colorscheme wombat256mod + " colorscheme desert endif -" + "" Only do this part when compiled with support for autocommands. -"if has("autocmd") +if has("autocmd") " " " Enable file type detection. " " Use the default filetype settings, so that mail gets 'tw' set to 72, " " 'cindent' is on in C files, etc. " " Also load indent files, to automatically do language-dependent indenting. -" filetype plugin indent on + filetype plugin indent on " " " Put these in an autocmd group, so that we can delete them easily. -" augroup vimrcEx -" au! + augroup vimrcEx + au! " " " For all text files set 'textwidth' to 78 characters. " autocmd FileType text setlocal textwidth=78 @@ -60,19 +62,18 @@ endif " " When editing a file, always jump to the last known cursor position. " " Don't do it when the position is invalid or when inside an event handler " " (happens when dropping a file on gvim). -" autocmd BufReadPost * -" \ if line("'\"") >= 1 && line("'\"") <= line("$") | -" \ exe "normal! g`\"" | -" \ endif -" -" augroup END -" -"else -" -" set autoindent " always set autoindenting on -" -"endif " has("autocmd") -" + autocmd BufReadPost * + \ if line("'\"") >= 1 && line("'\"") <= line("$") | + \ exe "normal! g`\"" | + \ endif + + augroup END + +else + set autoindent " always set autoindenting on + +endif " has("autocmd") + "" Convenient command to see the difference between the current buffer and the "" file it was loaded from, thus the changes you made. "" Only define it when not defined already. @@ -87,7 +88,23 @@ endif " " compatible). " set langnoremap "endif -" + +" Search down into subfolders +" Provides tab-completion for all file-related tasks +set path+=** + +" Display all matching files when we tab complete +set wildmenu + +" Better file browsing +let g:netrw_banner=0 " disable annoying banner +let g:netrw_browse_split=4 " open in prior window +let g:netrw_altv=1 " open splits to the right +let g:netrw_liststyle=3 " tree view +let g:netrw_list_hide=netrw_gitignore#Hide() +let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+' + + map :tabnew map :tabprevious map :tabnext -- cgit 1.4.1-2-gfad0