2019-04-16 16:31:01 +00:00
|
|
|
" -- Settings --------------------------------------------
|
|
|
|
set lbr " automatically wraps text
|
|
|
|
set formatoptions=l " prevents the breaking up of words
|
|
|
|
set breakindent " indent for single-line wrap
|
|
|
|
set breakindentopt=shift:3 " indent amout for single-line wrap
|
2019-04-04 22:03:35 +00:00
|
|
|
|
2019-04-16 16:31:01 +00:00
|
|
|
let &t_Co=256 " use 256-color
|
2019-04-04 22:03:35 +00:00
|
|
|
|
2019-04-16 16:31:01 +00:00
|
|
|
set number " show line numbers
|
|
|
|
syntax on " detect syntax
|
|
|
|
set autoindent " match indentation with next line
|
|
|
|
set smartindent " match indentation with syntax
|
2019-04-04 22:03:35 +00:00
|
|
|
|
2019-04-16 16:31:01 +00:00
|
|
|
set spelllang=en " spell check language is english
|
|
|
|
set spellfile=$RC_DIR/en.utf-8.add " spell file
|
2019-04-04 22:03:35 +00:00
|
|
|
|
|
|
|
|
2019-04-16 16:31:01 +00:00
|
|
|
" -- Key bindings ----------------------------------------
|
2019-04-04 22:03:35 +00:00
|
|
|
|
2019-04-16 16:31:01 +00:00
|
|
|
" <SPACE> to execute macro on q
|
|
|
|
:nnoremap <Space> @q
|
|
|
|
|
|
|
|
" Q to replace current line/selection with bash execution
|
|
|
|
:noremap Q !!$SHELL<CR>
|
|
|
|
:vnoremap Q !$SHELL<CR>
|