dotfilesClean dotfiles |
git clone git://git.dimitrijedobrota.com/dotfiles.git |
Log | Files | Refs | |
commit | cc8885416983860d560c8c1d808b3ad41b0a66c3 |
parent | caccab709a6992eb7c3fac2a78352966adbbdaeb |
author | Dimitrije Dobrota <mail@dimitrijedobrota.com> |
date | Fri, 21 Jul 2023 12:27:02 +0200 |
General VIM setting
Diffstat:M | .xdg/config/vim/vimrc | | | ++++++++++++++++++++++++++++++++++++++++++++++++++----- |
1 files changed, 50 insertions(+), 5 deletions(-)
diff --git a/.xdg/config/vim/vimrc b/.xdg/config/vim/vimrc
@@ -30,17 +30,62 @@ Plugin 'keremc/asyncomplete-clang.vim'
call vundle#end()
filetype plugin indent on
set ruler
set number
" GENERAL SETTING
" File settings
set encoding=utf8
set autoread
" Spelling
set spell
set spelllang=en_us
set spellsuggest=fast,20
set ignorecase
set smartcase
" Key remaps
let g:mapleader="\<space>"
noremap - :w<CR>:TestNearest<CR>
" Disable arrow keys
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
nnoremap <up> <nop>
" Editor look and feel
set cursorline
set history=10000
set incsearch
set list listchars=tab:\ \ ,trail:.
set nowrap
" Search
set hlsearch
set ignorecase
set incsearch
set smartcase
set list listchars=tab:\ \ ,trail:.
" Tabs and Spaces
set tabstop=4 " maximum width of actual tab character
set softtabstop=4
set shiftwidth=4 " the size of an indent
set expandtab " insert spaces instead of a tab character
" Panes
set splitbelow
set splitright
" Set command menu
set showcmd
set wildmenu
set wildmode=full
" Set line numbers
:set number relativenumber
:augroup numbertoggle
: autocmd!
: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
:augroup END
source <sfile>:h/clangd.vim