dotfiles:vimrc
Differences
This shows you the differences between two versions of the page.
| dotfiles:vimrc [2015/01/28 14:33] – created warnaud | dotfiles:vimrc [2020/12/17 05:23] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Based on [[http:// | ||
| + | < | ||
| + | " Sets how many lines of history VIM has to remember | ||
| + | set history=300 | ||
| + | |||
| + | " Enable filetype plugin | ||
| + | " filetype plugin on | ||
| + | " filetype indent on | ||
| + | |||
| + | " 256 Colors | ||
| + | set t_Co=256 | ||
| + | |||
| + | " Set to auto read when a file is changed from the outside | ||
| + | set autoread | ||
| + | |||
| + | "set number | ||
| + | set ignorecase | ||
| + | set hlsearch | ||
| + | set showmatch " | ||
| + | set mat=2 " | ||
| + | set title " | ||
| + | set ttyfast | ||
| + | "set ls=2 " allways show status line | ||
| + | set tabstop=4 | ||
| + | set shiftwidth=4 | ||
| + | set ruler " | ||
| + | """""""""""""""""""""""""""""" | ||
| + | " => Statusline | ||
| + | """""""""""""""""""""""""""""" | ||
| + | " Always hide the statusline | ||
| + | set laststatus=2 | ||
| + | |||
| + | " Format the statusline | ||
| + | set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%{CurDir()}%h\ \ \ Line:\ %l/%L:%c | ||
| + | |||
| + | " | ||
| + | function! CurDir() | ||
| + | let curdir = substitute(getcwd(), | ||
| + | return curdir | ||
| + | endfunction | ||
| + | |||
| + | syntax enable " | ||
| + | |||
| + | " Default encoding | ||
| + | set encoding=utf8 | ||
| + | |||
| + | " Spelling | ||
| + | try | ||
| + | lang en_US | ||
| + | catch | ||
| + | endtry | ||
| + | |||
| + | set ffs=unix, | ||
| + | |||
| + | " Spell check for those files only | ||
| + | autocmd BufRead, | ||
| + | |||
| + | " Theme | ||
| + | set background=dark | ||
| + | let g: | ||
| + | colorscheme solarized | ||
| + | </ | ||
