Compare commits

...

3 Commits

Author SHA1 Message Date
25815ca406 [vim] todos list 2022-08-21 16:46:22 +03:00
16d36a36e7 [vim] NERDTree hidden files enabled by default 2022-08-21 16:45:42 +03:00
65b8cd89a7 hotkey for file grep changed 2022-08-17 17:18:44 +03:00
2 changed files with 18 additions and 1 deletions

3
vim/README.md Normal file
View File

@@ -0,0 +1,3 @@
https://unix.stackexchange.com/questions/110251/how-to-put-current-line-at-top-center-bottom-of-screen-in-vim
https://www.thegeekstuff.com/2009/03/8-essential-vim-editor-navigation-fundamentals/
https://vi.stackexchange.com/questions/14403/how-to-go-to-previous-open-buffer-from-vim-command-line

View File

@@ -1,3 +1,6 @@
" TODO: fzf enable search through hidden files - https://www.reddit.com/r/neovim/comments/fzeccx/how_can_i_make_fzf_include_hidden_directories/
" TODO: fix fzf search the same dir in different windows https://vimways.org/2019/vim-and-the-working-directory/
" TODO: create readme file about navigation
filetype plugin indent on "Включает определение типа файла, загрузку...
"... соответствующих ему плагинов и файлов отступов
set encoding=utf-8 "Ставит кодировку UTF-8
@@ -9,6 +12,16 @@ set number relativenumber
set backspace=indent,eol,start
filetype plugin indent on
" tabs navigation
nnoremap <C-S-tab> :tabprevious<CR>
nnoremap <C-tab> :tabnext<CR>
nnoremap <C-t> :tabnew<CR>
inoremap <C-S-tab> <Esc>:tabprevious<CR>i
inoremap <C-tab> <Esc>:tabnext<CR>i
inoremap <C-t> <Esc>:tabnew<CR>i
nnoremap H gT
nnoremap L gt
" Changing <leader> key from \ to <space>
nnoremap <SPACE> <Nop>
let mapleader=" "
@@ -70,6 +83,7 @@ nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
highlight VertSplit cterm=none
let NERDTreeShowHidden=1
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
@@ -81,7 +95,7 @@ let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
nnoremap <silent> <Leader>b :Buffers<CR>
nnoremap <silent> <Leader>f :Files<CR>
nnoremap <silent> <Leader>cf :Rg<CR>
nnoremap <silent> <Leader>gr :Rg<CR>
nnoremap <silent> <Leader>/ :BLines<CR>
nnoremap <silent> <Leader>' :Marks<CR>
nnoremap <silent> <Leader>g :Commits<CR>