diff options
author | Silvino Silva <silvino@bk.ru> | 2019-03-04 16:46:25 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2019-03-04 16:46:25 +0000 |
commit | e0a5c6deb7ca4845763083ae7b4f6901e36deefc (patch) | |
tree | baf772a443f48c3dfa6e7c88adc4f68cd82b1e4b /tools/conf/etc/skel/.vimrc | |
parent | fed632cea589a4fc730dc852538cb40ca6f559fa (diff) | |
parent | 947ffc14fd8f0987d094210659bbacc38c1637f5 (diff) | |
download | doc-e0a5c6deb7ca4845763083ae7b4f6901e36deefc.tar.gz |
release 0.4.3
Diffstat (limited to 'tools/conf/etc/skel/.vimrc')
-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> |