From f4b03ade9fcba4801baec0fba796cf4465b8c24b Mon Sep 17 00:00:00 2001 From: TheK4n Date: Sat, 30 Jul 2022 22:11:21 +0300 Subject: [PATCH] vim --- sub/vim/vimrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/sub/vim/vimrc b/sub/vim/vimrc index dca526d..077ba8c 100644 --- a/sub/vim/vimrc +++ b/sub/vim/vimrc @@ -1,5 +1,4 @@ -set number "номер строки set ruler set laststatus=2 @@ -9,6 +8,10 @@ set clipboard=unnamedplus set shell=zsh +" +let g:mapleader = "," + +set cursorline nnoremap c :set cursorline! inoremap jk @@ -56,7 +59,7 @@ set incsearch set mousehide set mouse=a -set colorcolumn=120 +set colorcolumn=81 set scrolloff=7 set backup @@ -169,6 +172,8 @@ if (&filetype=='python') nnoremap :tabnew % :terminal python3 % G elseif (&filetype=='go') nnoremap :tabnew % :terminal go run % G +elseif (&filetype=='vim') + nnoremap :so % endif @@ -234,8 +239,8 @@ hi DiagnosticHint guifg=Grey -nnoremap ,ff Telescope find_files -nnoremap ,fg Telescope live_grep +nnoremap ff Telescope find_files +nnoremap fg Telescope live_grep luafile ~/.config/nvim/lua/init.lua