about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2019-03-04 16:29:53 +0000
committerSilvino Silva <silvino@bk.ru>2019-03-04 16:29:53 +0000
commitae082636f51217bd22a23b3b8f218aff450b81d8 (patch)
treedd41dfb6eb5073ed13594b1f3665d9aa58c121b5
parentd8ca8eb382059b22ae8a8cf17578713241a9a085 (diff)
downloaddoc-ae082636f51217bd22a23b3b8f218aff450b81d8.tar.gz
tmux and vimrc configuration files fixs
-rw-r--r--core/conf/skel/.tmux.conf2
-rw-r--r--tools/conf/etc/skel/.vimrc55
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 <F2> :tabnew
 map <F3> :tabprevious<CR>
 map <F4> :tabnext<CR>