Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
- " /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
- " you can find below. If you wish to change any of those settings, you should
- " do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
- " everytime an upgrade of the vim packages is performed. It is recommended to
- " make changes after sourcing archlinux.vim since it alters the value of the
- " 'compatible' option.
- " This line should not be removed as it ensures that various options are
- " properly set to work with the Vim-related packages.
- runtime! archlinux.vim
- " If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
- " Or better yet, read /usr/share/vim/vim72/vimrc_example.vim or the vim manual
- " and configure vim to your own liking!
- " Set vim settings, not vi
- set nocompatible
- " Wrap long lines to window edge
- set wrap
- " Don't wrap words (wrap only at specific characters)
- set linebreak
- " Show line numbers
- set nu
- " Allow backspace over indentation, end of line and start of line
- set backspace=indent,eol,start
- " Tab is two spaces wide
- set tabstop=2
- " Indent is two spaces wide
- set shiftwidth=2
- " Insert tabs as spaces (to enter tab, use Ctrl+V then tab)
- set expandtab
- " Detect filetype and indent accordingly
- filetype plugin indent on
- " Indent like a C file
- set smartindent
- " Indent like the line before
- set autoindent
- " Syntax highlighting
- syntax on
- " Spell checking
- autocmd FileType tex setlocal spell
- " set spell
- " Incremental search
- set incsearch
- "Save and restore position of cursor
- autocmd BufReadPost * if line( "'\"") > 0 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement