<commit_before>" Basic settings {{{
set nocompatible
set nobackup
set ignorecase
set smartcase
set incsearch
set hlsearch

set shiftwidth=4
set tabstop=4
set softtabstop=4
set expandtab
set ruler
set cursorline
set nowrap

set guioptions-=T

set autoindent

set nojoinspaces
" }}}

" Vundle {{{
source ~/.vim/vundle.vim
" }}}

" Resume basic settings {{{
filetype on
syntax on
filetype plugin on
filetype indent on
" }}}

" Syntax colouring {{{

set bg=dark
let g:solarized_visibility="low"
colorscheme solarized

" }}}

" Behaviour {{{
set foldmethod=marker
set foldcolumn=2

set undofile
set undodir=~/.vim/undo

set autoread
set autowrite

nnoremap <silent> <leader>v V`]
vnoremap < <gv
vnoremap > >gv
vnoremap = =gv

" Stay on word hit instead of jumping to next
nnoremap * *<C-O>

set list
set listchars=tab:▸-,trail:·,extends:»,precedes:«,nbsp:⍽

set formatoptions=acnqt

set colorcolumn=81

set switchbuf=usetab,newtab
" Speling {{{
set spell
set spelllang=en_gb
" }}}

let g:Powerline_symbols = 'fancy'
let g:ycm_confirm_extra_conf = 0
" }}}

" Filetype settings {{{
let g:is_bash=1

autocmd FileType make setlocal noexpandtab

autocmd BufNewFile,BufRead *.md set filetype=markdown

autocmd FileType html set wrap linebreak
autocmd FileType text set wrap linebreak
autocmd BufRead README set wrap linebreak
autocmd FileType markdown set wrap linebreak
autocmd FileType markdown setlocal textwidth=80

autocmd FileType cpp nnoremap <silent> <leader>b :make %:t:r<CR>
autocmd FileType cpp inoremap {<CR>  {<CR>}<Esc>O

" Lots of editors like Eclipse or R-Studio do this. I find it annoying.
"autocmd FileType cpp inoremap () ()<Esc>i
"autocmd FileType cpp inoremap {} {}<Esc>i
"autocmd FileType cpp inoremap [] []<Esc>i
"autocmd FileType cpp inoremap <> <><Esc>i

let vimrplugin_insert_mode_cmds = 0
let vimrplugin_assign_map = "<C-j>"

let g:tex_flavor = "latex"

autocmd FileType tex set wrap linebreak

autocmd FileType python set omnifunc=pythoncomplete#Complete

autocmd FileType ruby setlocal tabstop=2 shiftwidth=2
" }}}<commit_msg>Use Vim working directory for Vim-R<commit_after>" Basic settings {{{
set nocompatible
set nobackup
set ignorecase
set smartcase
set incsearch
set hlsearch

set shiftwidth=4
set tabstop=4
set softtabstop=4
set expandtab
set ruler
set cursorline
set nowrap

set guioptions-=T

set autoindent

set nojoinspaces
" }}}

" Vundle {{{
source ~/.vim/vundle.vim
" }}}

" Resume basic settings {{{
filetype on
syntax on
filetype plugin on
filetype indent on
" }}}

" Syntax colouring {{{

set bg=dark
let g:solarized_visibility="low"
colorscheme solarized

" }}}

" Behaviour {{{
set foldmethod=marker
set foldcolumn=2

set undofile
set undodir=~/.vim/undo

set autoread
set autowrite

nnoremap <silent> <leader>v V`]
vnoremap < <gv
vnoremap > >gv
vnoremap = =gv

" Stay on word hit instead of jumping to next
nnoremap * *<C-O>

set list
set listchars=tab:▸-,trail:·,extends:»,precedes:«,nbsp:⍽

set formatoptions=acnqt

set colorcolumn=81

set switchbuf=usetab,newtab
" Speling {{{
set spell
set spelllang=en_gb
" }}}

let g:Powerline_symbols = 'fancy'
let g:ycm_confirm_extra_conf = 0
" }}}

" Filetype settings {{{
let g:is_bash=1

autocmd FileType make setlocal noexpandtab

autocmd BufNewFile,BufRead *.md set filetype=markdown

autocmd FileType html set wrap linebreak
autocmd FileType text set wrap linebreak
autocmd BufRead README set wrap linebreak
autocmd FileType markdown set wrap linebreak
autocmd FileType markdown setlocal textwidth=80

autocmd FileType cpp nnoremap <silent> <leader>b :make %:t:r<CR>
autocmd FileType cpp inoremap {<CR>  {<CR>}<Esc>O

" Lots of editors like Eclipse or R-Studio do this. I find it annoying.
"autocmd FileType cpp inoremap () ()<Esc>i
"autocmd FileType cpp inoremap {} {}<Esc>i
"autocmd FileType cpp inoremap [] []<Esc>i
"autocmd FileType cpp inoremap <> <><Esc>i

let vimrplugin_insert_mode_cmds = 0
let vimrplugin_assign_map = "<C-j>"
let vimrplugin_vim_wd = 1

let g:tex_flavor = "latex"

autocmd FileType tex set wrap linebreak

autocmd FileType python set omnifunc=pythoncomplete#Complete

autocmd FileType ruby setlocal tabstop=2 shiftwidth=2
" }}}
{'fraction_non_alphanumeric': 0.09666505558240696, 'fraction_numerical': 0.00652489125181247, 'mean_word_length': 5.417054263565891, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2827232', 'n_tokens_mistral': 1620, 'n_tokens_neox': 1547, 'n_words': 476}