Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
vimrc56 linesDownload Raw Back to etc
1" Setting some decent VIM settings for programming2" This source file comes from git-for-windows build-extra repository (git-extra/vimrc)3 4ru! defaults.vim                " Use Enhanced Vim defaults5set mouse=                      " Reset the mouse setting from defaults6aug vimStartup | au! | aug END  " Revert last positioned jump, as it is defined below7let g:skip_defaults_vim = 1     " Do not source defaults.vim again (after loading this system vimrc)8 9set ai                          " set auto-indenting on for programming10set showmatch                   " automatically show matching brackets. works like it does in bbedit.11set vb                          " turn on the "visual bell" - which is much quieter than the "audio blink"12set laststatus=2                " make the last line where the status is two lines deep so you can see status always13set showmode                    " show the current mode14set clipboard=unnamed           " set clipboard to unnamed to access the system clipboard under windows15set wildmode=list:longest,longest:full   " Better command line completion16 17" Show EOL type and last modified timestamp, right after the filename18" Set the statusline19set statusline=%f               " filename relative to current $PWD20set statusline+=%h              " help file flag21set statusline+=%m              " modified flag22set statusline+=%r              " readonly flag23set statusline+=\ [%{&ff}]      " Fileformat [unix]/[dos] etc...24set statusline+=\ (%{strftime(\"%H:%M\ %d/%m/%Y\",getftime(expand(\"%:p\")))})  " last modified timestamp25set statusline+=%=              " Rest: right align26set statusline+=%l,%c%V         " Position in buffer: linenumber, column, virtual column27set statusline+=\ %P            " Position in buffer: Percentage28 29if &term =~ 'xterm-256color'    " mintty identifies itself as xterm-compatible30  if &t_Co == 831    set t_Co = 256              " Use at least 256 colors32  endif33  " set termguicolors           " Uncomment to allow truecolors on mintty34endif35"------------------------------------------------------------------------------36" Only do this part when compiled with support for autocommands.37if has("autocmd")38    " Set UTF-8 as the default encoding for commit messages39    autocmd BufReadPre COMMIT_EDITMSG,MERGE_MSG,git-rebase-todo setlocal fileencoding=utf-840 41    " Remember the positions in files with some git-specific exceptions"42    autocmd BufReadPost *43      \ if line("'\"") > 0 && line("'\"") <= line("$")44      \           && &filetype !~# 'commit\|gitrebase'45      \           && expand("%") !~ "ADD_EDIT.patch"46      \           && expand("%") !~ "addp-hunk-edit.diff" |47      \   exe "normal! g`\"" |48      \ endif49 50      autocmd BufNewFile,BufRead *.patch set filetype=diff51 52      autocmd Filetype diff53      \ highlight WhiteSpaceEOL ctermbg=red |54      \ match WhiteSpaceEOL /\(^+.*\)\@<=\s\+$/55endif " has("autocmd")56 
codekingpro/portable-devtools · Team Ai