Skip to content
Snippets Groups Projects
Commit 28530826 authored by Antoine Marteau's avatar Antoine Marteau
Browse files

init

parents
No related branches found
No related tags found
No related merge requests found
./plugged
init.vim 0 → 100644
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set relativenumber
set nowrap
set smartcase
set nobackup
set incsearch
set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg=lightgrey
autocmd BufNewFile,BufReadPost *.pro set filetype=cpp
"Pugins
call plug#begin('~/.config/nvim/plugged')
Plug 'vim-airline/vim-airline' " status bar (needs special fonts)
Plug 'ryanoasis/vim-devicons' " various symbols (linux, rust, python, ...)
Plug 'gruvbox-community/gruvbox'
Plug 'ThePrimeagen/vim-be-good'
call plug#end()
colorscheme gruvbox
let g:airline_powerline_fonts = 1
let g:airline#extensions#ale#enabled = 1
"desactive les flèches directionelles
noremap <Up> <nop>
inoremap <Up> <nop>
noremap <Down> <nop>
inoremap <Down> <nop>
noremap <Right> <nop>
inoremap <Right> <nop>
noremap <Left> <nop>
inoremap <Left> <nop>
"Normal mode dans terminal
tnoremap <A-q> <C-\><C-n>
"LeaderKey
let mapleader = " "
nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>j :wincmd j<CR>
nnoremap <leader>k :wincmd k<CR>
nnoremap <leader>l :wincmd l<CR>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment