blob: b8b44f38d6c758fdaf74b5ef3c890bdbe2596a8e (
plain)
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
|
" Allows to have a .nvimrc per project folder
set exrc
syntax enable
let mapleader = ' '
inoremap <C-c> <esc>
nnoremap <Leader><CR> :so ~/.config/nvim/init.vim<CR>
let g:vimwiki_list = [{'path': '~/vimwiki/',
\ 'syntax': 'markdown', 'ext': '.md'}]
let g:gitgutter_map_keys = 0
" forward and backward search of current word
nnoremap * /\<<C-R>=expand('<cword>')<CR>\><CR>
nnoremap # ?\<<C-R>=expand('<cword>')<CR>\><CR>
vnoremap <leader>p "_dP
" remove whitespaces
autocmd BufWritePre * %s/\s\+$//e
augroup fmtphp
autocmd!
autocmd BufWritePre *.php undojoin | Neoformat
augroup END
filetype plugin indent on
autocmd FileType yaml setl indentkeys-=<:>
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" Has to be the last line for the .nvimrc per project
set secure
|