56 lines
1 KiB
VimL
56 lines
1 KiB
VimL
set nocompatible
|
|
|
|
" Keybindings
|
|
let mapleader=' '
|
|
nnoremap <SPACE> <Nop>
|
|
vnoremap < <gv
|
|
vnoremap > >gv
|
|
map <Up> <Nop>
|
|
map <Right> <Nop>
|
|
map <Down> <Nop>
|
|
map <Left> <Nop>
|
|
|
|
"" Vim Config
|
|
" Set completeopt to have a better completion experience
|
|
set completeopt=menu,noinsert
|
|
" Avoid showing message extra message when using completion
|
|
set shortmess=a
|
|
" Add clipboard support
|
|
set clipboard=unnamedplus
|
|
|
|
" Enable syntax highlighting
|
|
syntax on
|
|
filetype on
|
|
|
|
" Intendation
|
|
set tabstop=4
|
|
set softtabstop=4
|
|
set shiftwidth=4
|
|
set expandtab
|
|
set autoindent
|
|
|
|
" UTF-8
|
|
set encoding=utf-8
|
|
set fileencodings=utf-8
|
|
set fileformats=unix,dos,mac
|
|
|
|
" Enable term color
|
|
set tgc
|
|
|
|
" Enable line number
|
|
set number
|
|
set relativenumber
|
|
|
|
"" Plugins
|
|
call plug#begin('~/.vim/plugged')
|
|
Plug 'ghifarit53/tokyonight-vim'
|
|
Plug 'mfussenegger/nvim-dap'
|
|
Plug 'mrcjkb/rustaceanvim'
|
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
|
Plug 'junegunn/fzf.vim'
|
|
call plug#end()
|
|
|
|
"" Theme
|
|
let g:tokyonight_style='night'
|
|
let g:tokyonight_enable_italic=0
|
|
colorscheme tokyonight
|