Vim: in IDEs & vimrc

This is post will be reguraly updated according to my vimrc configuration. The other benefit beside you can use it as well is that I can access it from anywhere.

When switching different tools, platforms and IDEs it usually gets confusing with all these keyboard shortcuts. So I like to use vim key binding. How to make it working:

And the rc file:

if has("gui_running")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h11
elseif has("gui_win32")
set guifont=Consolas:h9:cANSI
endif
endif

syntax on
set nowrap
set hlsearch
set number
set autoindent
set expandtab
set tabstop=4
set shiftwidth=4
set listchars=eol:$,tab:>·,trail:~,extends:>,precedes:<,space:␣
set list

colorscheme nord

set guioptions -=T

set shortmess-=S

vimrc on macOS when using macvim and homebrew:

/usr/local/Cellar/macvim/8.2-171_1/MacVim.app/Contents/Resources/vim/vimrc

/opt/homebrew/Cellar/macvim/8.2-171_1/MacVim.app/Contents/Resources/vim/runtime/colors

or

˜/.vimrc

Win:

C:\Users\USER\_vimrc
Share

Comments are closed.