This is a collection of dotfiles and scripts for my bspwm setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
624 B

" General
setlocal cmdheight=1
setlocal colorcolumn=81
setlocal textwidth=80
" Document structuring
nnoremap ;be i\begin{(<>)}<CR><Tab><CR>\end{(<>)}<Esc>kk^
nnoremap ;s i\section{}<Return>(<>)<Esc>k$i
" Text formatting
inoremap ;b \textbf{}(<>)<Esc>T{i
inoremap ;i \textit{}(<>)<Esc>T{i
inoremap ;u \underline{}(<>)<Esc>T{i
inoremap ;e \emph{}(<>)<Esc>T{i
" Next section
noremap <silent> .. <Esc>/(<>)<Enter>"_c4l
" Enable/disable spell check
noremap <F7> <Esc>:setlocal spell spelllang=en_us,nl<CR>
noremap <F8> <Esc>:setlocal nospell<CR>
" Start spell check when vim is run
autocmd VimEnter * call feedkeys("\<F7>")