-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
45 lines (39 loc) · 868 Bytes
/
.ideavimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
let mapleader=" "
""" Common settings -------------------------
set completeopt="menu,menuone,noselect"
set cursorline
set expandtab
set hlsearch
set ignorecase
set incsearch
set list
set mouse="a"
set number
set relativenumber
set scrolloff=4
set shiftround
set shiftwidth=2
set showmode
set smartindent
set splitbelow
set splitright
set tabstop=2
set updatetime=200
set wrap=false
""" Neovim mappings
inoremap kj <esc>
imap <esc> :noh<cr><esc>
nmap <esc> :noh<cr><esc>
vnoremap < <gv
vnoremap > >gv
nmap <leader>w :w<cr><esc>
nmap <leader>- <c-w>s
nmap <leader>| <c-w>v
nmap <leader>q :q<cr>
xnoremap p "_dP
nmap <leader>sf <Action>(GotoFile)
nmap <leader>ss <Action>(TextSearchAction)
nmap <leader>gd <Action>(GotoDefinition)
nmap <leader>gD <Action>(GotoDeclaration)
nmap <leader>gI <Action>(GotoImplementation)
nmap <leader>gy <Action>(GotoTypeDeclaration)