<commit_before>" To activate, add the following to ~/.vimrc
" source $HOME/.vim/config.vim
"
" Add this before you include the config to enable light mode.
" let g:light_editor=1

" Make vim more useful. I think this drops vi compatibility.
" This allows vim to do a lot more and stray from it's roots.
set nocompatible

" Change the leader to something a bit easier to hit.
" Then remaps the reverse find command.
let mapleader=','
noremap \ ,

" Enable better indentation.
set autoindent smartindent
set smarttab
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab

if !exists('g:light_editor')
	" Include all of the bundle configuration.
	source $HOME/.vim/bundles.vim
endif

" Improve the colours.
set t_Co=256
syntax on
set background=dark
colorscheme custom

" Improve the backspace key.
set backspace=indent,eol,start

" Enable the matchit plugin.
runtime macros/matchit.vim

" Enable virtualenv.
if has("python") && !empty($VIRTUAL_ENV)
python << EOF
import os
import sys
a = os.environ['VIRTUAL_ENV'] + '/bin/activate_this.py'
execfile(a, dict(__file__ = a))
if 'PYTHONPATH' not in os.environ:
	os.environ['PYTHONPATH'] = ''
	os.environ['PYTHONPATH'] += ':' + os.getcwd()
	os.environ['PYTHONPATH'] += ':'.join(sys.path)
EOF
endif

" Make <C-A> and <C-X> increment and decrement all numbers as decimals.
set nrformats=

" Stop hyphens being regarded as a word separator.
set iskeyword+=-

" Disabled code folding. It can be weird sometimes.
set nofoldenable

" Increase the command line history length.
set history=1000

" Clears the search. (m)
nmap <silent> <leader>m :nohlsearch<CR>

" Corrects the spelling under the cursor with the first suggestion.
nmap <leader>z 1z=

" Rebuild the tags. (F5)
set tags+=.tags
map <F5> :!ctags -Rf ./.tags --python-kinds=-i --exclude=.git `cat .srclist`<CR><CR>

" Connect to screen. (F6)
map <F6> :!screen -rd<CR><CR>

" Add a line in the 81st column.
set colorcolumn=81

" Show the file name in the window title bar.
set title

" Enable line numbers.
set number

" Improve line breaking.
set nolist

" Show invisible characters.
set listchars=tab:▸\ ,trail:·
set list

" Improve screen clearing by using the background colour.
set t_ut=

" Configure code folding.
set foldmethod=manual

" Highlight searches.
set hlsearch<commit_msg>Improved the screen shortcut.<commit_after>" To activate, add the following to ~/.vimrc
" source $HOME/.vim/config.vim
"
" Add this before you include the config to enable light mode.
" let g:light_editor=1

" Make vim more useful. I think this drops vi compatibility.
" This allows vim to do a lot more and stray from it's roots.
set nocompatible

" Change the leader to something a bit easier to hit.
" Then remaps the reverse find command.
let mapleader=','
noremap \ ,

" Enable better indentation.
set autoindent smartindent
set smarttab
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab

if !exists('g:light_editor')
	" Include all of the bundle configuration.
	source $HOME/.vim/bundles.vim
endif

" Improve the colours.
set t_Co=256
syntax on
set background=dark
colorscheme custom

" Improve the backspace key.
set backspace=indent,eol,start

" Enable the matchit plugin.
runtime macros/matchit.vim

" Enable virtualenv.
if has("python") && !empty($VIRTUAL_ENV)
python << EOF
import os
import sys
a = os.environ['VIRTUAL_ENV'] + '/bin/activate_this.py'
execfile(a, dict(__file__ = a))
if 'PYTHONPATH' not in os.environ:
	os.environ['PYTHONPATH'] = ''
	os.environ['PYTHONPATH'] += ':' + os.getcwd()
	os.environ['PYTHONPATH'] += ':'.join(sys.path)
EOF
endif

" Make <C-A> and <C-X> increment and decrement all numbers as decimals.
set nrformats=

" Stop hyphens being regarded as a word separator.
set iskeyword+=-

" Disabled code folding. It can be weird sometimes.
set nofoldenable

" Increase the command line history length.
set history=1000

" Clears the search. (m)
nmap <silent> <leader>m :nohlsearch<CR>

" Corrects the spelling under the cursor with the first suggestion.
nmap <leader>z 1z=

" Rebuild the tags. (F5)
set tags+=.tags
map <F5> :!ctags -Rf ./.tags --python-kinds=-i --exclude=.git `cat .srclist`<CR><CR>

" Connect to screen. (F6)
map <F6> :!screen -R<CR><CR>

" Add a line in the 81st column.
set colorcolumn=81

" Show the file name in the window title bar.
set title

" Enable line numbers.
set number

" Improve line breaking.
set nolist

" Show invisible characters.
set listchars=tab:▸\ ,trail:·
set list

" Improve screen clearing by using the background colour.
set t_ut=

" Configure code folding.
set foldmethod=manual

" Highlight searches.
set hlsearch
{'fraction_non_alphanumeric': 0.10718183802663174, 'fraction_numerical': 0.008731717965509714, 'mean_word_length': 4.334109429569266, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3037019', 'n_tokens_mistral': 1601, 'n_tokens_neox': 1524, 'n_words': 572}