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.

36 lines
921 B

" General
set number " Show line numbers
set linebreak " Break lines at word (requires Wrap lines)
set showbreak=+++ " Wrap-broken line prefix
set textwidth=100 " Line wrap (number of cols)
set showmatch " Highlight matching brace
set visualbell " Use visual bell (no beeping)
" Use vim defaults (drop compatibility with vi)
set nocompatible
syntax on " Enable syntax highlight
" more powerfull backspace
set ruler " Show cursor position
set modeline " Enable modelines
set showcmd " Show incomplete commands
set ttymouse=xterm2 " Make mouse works inside screen terminal emulator
"Spell
au BufRead *.txt setlocal spell
au BufRead *.org setlocal spell
au BufRead *.md setlocal spell
set langmenu=en_US
" Autofix some mistakes
cab W w
cab Wq wq
cab wQ wq
cab WQ wq
cab Q q
" Plugins manager
call plug#begin()
" NerdTree
Plug 'preservim/NERDTree'
Plug 'tpope/vim-speeddating'
Plug ' jceb/vim-orgmode'
call plug#end()