====== My cfg: Vim ======
\\
===== Console =====
**/usr/local/etc/vim/vimrc**
let g:is_posix = 1
let g:skip_defaults_vim = 1
set nocompatible " Use Vim settings, rather then Vi settings
set hidden " Hide buffers when they are abandoned
set backspace=indent,eol,start " allow backspacing over everything
set hlsearch " highlight the last used search pattern.
set autoindent " always set auto indenting on
set lbr " Wrap at word
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned
set history=200 " keep 200 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set wildmenu " display completion matches in a status line
set t_te=
set ts=4
set paste
set number
set fileencodings=ucs-bom,utf-8,latin1
filetype on
filetype plugin indent on
syntax on
set background=dark
set laststatus=2
set statusline=
set statusline+=%<\ " cut at start
set statusline+=[%n%H%M%R%W]\ " flags and buf no
set statusline+=%y\ " file type
set statusline+=%-20t\ " path
set statusline+=%=[%l,%c]\ " line, column
set statusline+=%P " page
===== gvim | macvim =====
**vimrc** in gvim folder
\\
**(.)gvimrc** in home or gvim folder
let g:is_posix = 1
let g:skip_defaults_vim = 1
set nocompatible " Use Vim settings, rather then Vi settings
set hidden " Hide buffers when they are abandoned
set backspace=indent,eol,start " allow backspacing over everything
set hlsearch " highlight the last used search pattern.
set autoindent " always set auto indenting on
set lbr " Wrap at word
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned
set history=200 " keep 200 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set wildmenu " display completion matches in a status line
set t_te=
set ts=40
set paste
set number
set fileencodings=ucs-bom,utf-8,latin1
filetype plugin indent on
syntax on
set laststatus=2
set statusline=
set statusline+=%<\ " cut at start
set statusline+=[%n%H%M%R%W]\ " flags and buf no
set statusline+=%y\ " file type
set statusline+=%-20t\ " path
set statusline+=%=[%l,%c]\ " line, column
set statusline+=%P " page
colorscheme darkblue
set guifont=Hermit:h16
To change the font name/size:
* Start a graphical vim session.
* Do :e $MYGVIMRC Enter.
* Use the graphical font selection dialog to select a font.
* Type :set guifont= Tab Enter .
* Copy the line and paste in the config.
* Save and Exit
Adding a shell entry: **Edit with vim**
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\Shell\Vim]
@="Edit with &Vim"
"Icon"="\"C:\\MyProgs\\text\\vim82\\gvim.exe\""
[HKEY_CLASSES_ROOT\*\Shell\Vim\command]
@="\"C:\\MyProgs\\text\\vim82\\gvim.exe\" \"%1\""
Note that:
.gvimrc is read by gvim
.vimrc is read by vim
---\\ return to gimbo wiki [[:start|home page]]~~NOCACHE~~