-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
38 lines (32 loc) · 1.55 KB
/
init.vim
File metadata and controls
38 lines (32 loc) · 1.55 KB
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
source $HOME/.config/nvim/package_manager.vim
source $HOME/.config/nvim/_functions.vim
source $HOME/.config/nvim/code_formatter.vim
source $HOME/.config/nvim/autocomplete.vim
source $HOME/.config/nvim/grep.vim
source $HOME/.config/nvim/linting.vim
source $HOME/.config/nvim/undo.vim
source $HOME/.config/nvim/tree_directory.vim
source $HOME/.config/nvim/guiding_lines.vim
source $HOME/.config/nvim/status_line.vim
source $HOME/.config/nvim/typescript.vim
source $HOME/.config/nvim/javascript.vim
source $HOME/.config/nvim/golang.vim
source $HOME/.config/nvim/theme.vim
let mapleader=","
nnoremap <c-p> :GitFiles<CR>
nnoremap <leader>gb :Gblame<CR>
nnoremap <c-e> :NERDTreeToggle<CR>
" When the popup menu ("pum") is shown, then make these remaps.
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
inoremap <expr> <TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr> <S-TAB> pumvisible() ? "\<C-p>" : "\<S-TAB>"
set number " Show the line numbers on the left side.
set expandtab " Insert spaces when TAB is pressed.
set tabstop=2 " Render TABs using this many spaces.
set shiftwidth=2 " Indentation amount for < and > commands.
set cursorline " Highlights the current line cursor is on.
set ignorecase " Search will be case-insensitive.
set smartcase " Case Sensitive if your search pattern is uppercase, Case-Insentive otherwise.
set clipboard=unnamed " copy to the system clipboard
au BufNewFile,BufRead *.go setlocal noet ts=2 sw=2 sts=4
call SourceIfExists($HOME."/.config/nvim/local_overrides.vim")