diff options
author | Silvino Silva <silvino@bk.ru> | 2019-03-04 16:29:53 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2019-03-04 16:29:53 +0000 |
commit | ae082636f51217bd22a23b3b8f218aff450b81d8 (patch) | |
tree | dd41dfb6eb5073ed13594b1f3665d9aa58c121b5 /tools/conf/etc | |
parent | d8ca8eb382059b22ae8a8cf17578713241a9a085 (diff) | |
download | doc-ae082636f51217bd22a23b3b8f218aff450b81d8.tar.gz |
tmux and vimrc configuration files fixs
Diffstat (limited to 'tools/conf/etc')
-rw-r--r-- | tools/conf/etc/skel/.vimrc | 55 |
1 files changed, 36 insertions, 19 deletions
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> |