Macvim Vim For Mac
Posted : admin On 13.03.2020Installed the MacVim because can open the file and jump to the line in MacVim when Cmd-click the file:line in iTerm2. Is a mac wrap of Vim, now current version support Vim7.3. And revise the.vimrc as below, which can be shared with MacVim and native Vim.

' User Interface set guifont=Monaco:h14 set guioptions-=T set ruler set wildmenu ' Popup a window showing all matching command above command line when autocomplete. ' General ' Sets how many lines of history VIM has to remeber. Set history=100 ' backspace key behavior set backspace=eol,start,indent set wrap ' Set to auto read when a file is changed from the outside. Set autoread ' Jump to the last position when reopening a file if has('autocmd') autocmd BufReadPost.
Vim For Mac
if line(' ') 1 && line(' ') endif ' search set incsearch ' incremental search mode set hlsearch ' highlight search things set ignorecase ' ignore case when searching set smartcase ' only works when ignorecase on ' encoding set encoding=utf-8 set fileencodings=utf-8,latin-1,chinese ' Coding syntax on set number ' show line number set showmatch ' show matching brackets. Set matchtime=2 ' the length of time to show matching paren.
Macvim Vim For Mac Install
Set iskeyword+=,$,@,%,#,- ' don't linebreak when encounter these characters. Set tabstop=8 ' The number of spaces count for a TAB.

Set softtabstop=4 ' The number of spaces inserted when typing TAB. If not expandtab, type TAB twice, will get one TAB. Set shiftwidth=4 ' The number of spaces when auto-indent. Set expandtab ' Use the spaces only.
Set smarttab ' Insert appropriate spaces in front of line according to shiftwidth, tabstop, softtabstop. Set autoindent set smartindent 'set cindent ' cindent will disable smartindent, but only for C-like programming.
Set autowrite ' Automatically save before commands like:next and:make ' Loading the plugin and indentation rules according to the dectected filetype. If has('autocmd') filetype plugin indent on endif ' setup new filetype: jsfl autocmd BufRead,BufNewFile.jsfl set filetype=javascript.